/* ===================================================
   SISTEM PENGELOLAAN INVENTARIS SLB NEGERI TALUN (SIPINTAR)
   File: css/style.css (Desain Responsif, Bebas Bug & Tumpukan)
   =================================================== */

/* 0. RESET DASAR & BODY */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ===================================================
   1. KEPALA HALAMAN (HEADER PERSIS DI TENGAH)
   =================================================== */
.Header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background-color: #164d78;
  color: white;
  z-index: 40;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.judul-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.judul-app {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-header {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  display: inline-block;
  flex-shrink: 0;
}

.sub-judul-app {
  font-size: 13px;
  font-weight: 500;
  color: #e0f2fe;
  letter-spacing: 0.1px;
  margin-top: 2px;
  line-height: 1.2;
  text-align: center;
}

.tombol-hamburger {
  display: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 45;
}

/* ===================================================
   2. SIDEBAR (MENU SAMPING 250px)
   =================================================== */
.menu-samping {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 250px;
  background-color: #1f2937;
  color: #f3f4f6;
  overflow-y: auto;
  z-index: 60;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
}

.judul-logo {
  padding: 20px 16px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #374151;
  letter-spacing: 0.5px;
}

.daftar-menu {
  list-style: none;
  margin: 0;
  padding: 12px;
}

.daftar-menu li {
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.daftar-menu > li:not(.punya-submenu) {
  padding: 12px 14px;
  margin-bottom: 5px;
  font-size: 14px;
}

.daftar-menu > li:not(.punya-submenu):hover,
.induk-menu:hover,
.kepala-submenu:hover,
.anak-menu li:hover {
  background-color: #374151;
  color: white;
}

.daftar-menu > li:not(.punya-submenu).aktif {
  background-color: #164d78;
  font-weight: bold;
  color: white;
}

/* SUBMENU KELAS & KATEGORI */
.daftar-menu > li.punya-submenu {
  padding: 0;
  margin-bottom: 5px;
}

.induk-menu,
.kepala-submenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.panah,
.panah-submenu {
  transition: transform 0.2s;
  font-size: 12px;
}

.punya-submenu.terbuka .panah,
.punya-submenu.terbuka .panah-submenu {
  transform: rotate(90deg);
}

.punya-submenu.anak-aktif > .induk-menu,
.punya-submenu.anak-aktif .kepala-submenu {
  background-color: #2b394b;
  border-left: 4px solid #38bdf8;
  font-weight: bold;
}

.anak-menu {
  display: none;
  list-style: none;
  margin: 4px 0 6px 0;
  padding: 0;
}

.punya-submenu.terbuka .anak-menu {
  display: block;
}

.anak-menu li {
  padding: 9px 12px 9px 34px;
  margin-bottom: 2px;
  font-size: 13.5px;
  color: #cbd5e1;
  transition: 0.15s;
}

.anak-menu li:hover {
  background-color: #374151;
  color: #38bdf8;
}

.anak-menu li.aktif {
  background-color: #164d78;
  color: white;
  font-weight: bold;
}

/* ===================================================
   3. KONTEN UTAMA
   =================================================== */
.konten-utama {
  margin-left: 250px;
  padding: 85px 30px 105px 30px;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.latar-belakang {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  backdrop-filter: blur(2px);
}

/* ===================================================
   4. TAMPILAN HALAMAN DENAH INTERAKTIF
   =================================================== */
.kartu-denah-banner {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  border-left: 6px solid #164d78;
}

.bar-kontrol-denah {
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* KOTAK INSTRUKSI PROPORSIONAL & ELEGAN */
.badge-petunjuk-denah {
  font-size: 13px;
  font-weight: 600;
  color: #034f7a;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border: 1.5px solid #38bdf8;
  padding: 7px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.12);
  line-height: 1.3;
}

.ikon-petunjuk-denah {
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.4));
}

.teks-petunjuk-denah {
  font-weight: 700;
}

.grup-tombol-kontrol-denah {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-kontrol-denah {
  background-color: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-kontrol-denah:hover {
  background-color: #f1f5f9;
  border-color: #164d78;
  color: #164d78;
}

.pembungkus-scroll-denah {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.wadah-foto-denah {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: #e2e8f0;
  border: 2px solid #cbd5e1;
}

.wadah-foto-denah img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.lapisan-hotspot-denah {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.tombol-ruang-denah {
  position: absolute;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  user-select: none;
  border-radius: 5px;
  border-width: 2px;
  border-style: solid;
  backdrop-filter: blur(2px);
}

/* Kategori Ruangan Denah */
.tombol-ruang-denah.kat-kelas {
  background-color: rgba(29, 78, 216, 0.88);
  border-color: #60a5fa;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.35);
}
.tombol-ruang-denah.kat-kelas:hover {
  background-color: rgba(30, 64, 175, 0.98);
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.6);
}

.tombol-ruang-denah.kat-terapi {
  background-color: rgba(5, 150, 105, 0.88);
  border-color: #6ee7b7;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}
.tombol-ruang-denah.kat-terapi:hover {
  background-color: rgba(4, 120, 87, 0.98);
  border-color: #a7f3d0;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.6);
}

.tombol-ruang-denah.kat-sarana {
  background-color: rgba(219, 39, 119, 0.88);
  border-color: #f472b6;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.35);
}
.tombol-ruang-denah.kat-sarana:hover {
  background-color: rgba(190, 24, 93, 0.98);
  border-color: #fbcfe8;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.6);
}

.tombol-ruang-denah:hover {
  transform: scale(1.05);
  z-index: 25;
}

.tombol-ruang-denah:active {
  transform: scale(0.98);
}

.konten-ruang-denah {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1px 2.5px;
  box-sizing: border-box;
  pointer-events: none;
}

.nomor-ruang-denah {
  font-size: clamp(8.5px, 0.72vw, 10.5px);
  font-weight: 800;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.5px 3.5px;
  border-radius: 3.5px;
  line-height: 1;
  margin-bottom: 1.5px;
  letter-spacing: 0.1px;
  flex-shrink: 0;
}

.nama-ruang-denah {
  color: #ffffff;
  font-size: clamp(9px, 0.76vw, 11.2px);
  font-weight: 700;
  line-height: 1.14;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  word-break: break-word;
  text-align: center;
  max-height: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

/* UKURAN FONT SPESIALISASI PC & LAPTOP */
@media (min-width: 1024px) {
  .nomor-ruang-denah {
    font-size: 10px;
    padding: 0.5px 4px;
    margin-bottom: 1.5px;
  }
  .nama-ruang-denah {
    font-size: 11px;
    line-height: 1.15;
  }
}

@media (min-width: 1280px) {
  .nomor-ruang-denah {
    font-size: 10.5px;
    padding: 1px 4.5px;
    margin-bottom: 2px;
  }
  .nama-ruang-denah {
    font-size: 11.5px;
    line-height: 1.16;
  }
}

@media (min-width: 1440px) {
  .nomor-ruang-denah {
    font-size: 11px;
    padding: 1px 5px;
    margin-bottom: 2px;
  }
  .nama-ruang-denah {
    font-size: 12px;
    line-height: 1.16;
  }
}

.popover-blueprint {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 30;
  border: 1px solid #334155;
  text-align: center;
}

.popover-blueprint::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

/* TOOLTIP CERDAS KE BAWAH */
.popover-blueprint.popover-bawah {
  bottom: auto !important;
  top: calc(100% + 8px) !important;
}

.popover-blueprint.popover-bawah::after {
  top: auto !important;
  bottom: 100% !important;
  border-color: transparent transparent #0f172a transparent !important;
}

.tombol-ruang-denah:hover .popover-blueprint {
  display: block;
  animation: fadeInPopover 0.18s ease-out;
}

@keyframes fadeInPopover {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.popover-no {
  display: inline-block;
  background: #0284c7;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-right: 4px;
}

.popover-nama {
  font-weight: 700;
  font-size: 12px;
  color: #f8fafc;
}

.popover-kategori {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.bar-filter-kategori {
  display: flex;
  gap: 8px;
  margin: 24px 0 14px 0;
  flex-wrap: wrap;
  align-items: center;
}

.btn-tab-filter {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-tab-filter:hover {
  border-color: #164d78;
  color: #164d78;
  background-color: #f8fafc;
}

.btn-tab-filter.aktif {
  background-color: #164d78;
  color: white;
  border-color: #164d78;
  box-shadow: 0 2px 8px rgba(22, 77, 120, 0.25);
}

.judul-bagian-denah {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-denah-ruangan {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.kartu-pintas-ruangan {
  position: relative;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.kartu-pintas-ruangan:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(22, 77, 120, 0.12);
  border-color: #164d78;
  background: #f8fafc;
}

.badge-pintas-no {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 10px;
}

.ikon-pintas {
  font-size: 26px;
  margin: 6px 0 6px 0;
}

.nama-pintas {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

/* ===================================================
   5. KARTU DETAIL RUANGAN
   =================================================== */
.kartu-ruangan {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
  border-left: 6px solid #164d78;
}

.wadah-foto-ruangan {
  position: relative;
  width: 280px;
  height: 190px;
  flex-shrink: 0;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wadah-foto-ruangan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wadah-foto-ruangan:hover img {
  transform: scale(1.05);
}

.tombol-slide-ruang {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: 0.2s;
  z-index: 5;
}

.tombol-slide-ruang:hover {
  background: rgba(22, 77, 120, 0.95);
  transform: translateY(-50%) scale(1.12);
}

.slide-ruang-prev { left: 8px; }
.slide-ruang-next { right: 8px; }

.badge-jumlah-foto {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 4;
}

.foto-placeholder {
  color: #64748b;
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

.detail-ruangan {
  flex-grow: 1;
}

.detail-ruangan h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #0f172a;
}

.info-baris {
  margin: 6px 0;
  font-size: 14px;
  color: #475569;
}

.info-baris strong {
  color: #1e293b;
  display: inline-block;
  width: 150px;
}

.wadah-statistik {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.chip-stat {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.chip-total { background-color: #e0f2fe; color: #0369a1; }
.chip-baik { background-color: #dcfce7; color: #15803d; }
.chip-rusak-ringan { background-color: #fef9c3; color: #a16207; }
.chip-rusak-berat { background-color: #fee2e2; color: #b91c1c; }

/* ===================================================
   6. TOOLBAR & TABEL INVENTARIS
   =================================================== */
.toolbar-tabel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-tabel h3 {
  margin: 0;
  font-size: 18px;
  color: #1e293b;
}

.input-cari {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  width: 260px;
  transition: 0.2s;
}

.input-cari:focus {
  border-color: #164d78;
  box-shadow: 0 0 0 3px rgba(22, 77, 120, 0.15);
}

.wadah-tabel {
  background: white;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 750px;
}

th {
  background-color: #164d78;
  color: white;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  vertical-align: top;
}

.kolom-keterangan {
  min-width: 250px;
  max-width: 500px;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
  vertical-align: top;
}

/* WADAH KETERANGAN BERSTRUKTUR PERSIS SEPERTI DI SPREADSHEET */
.wadah-keterangan-hierarki {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.8px;
  line-height: 1.5;
  color: #1e293b;
}

.ket-baris-teks {
  color: #0f172a;
  line-height: 1.5;
}

.ket-baris-nomor {
  color: #0f172a;
  font-weight: 600;
  margin-top: 1px;
  line-height: 1.5;
}

.ket-baris-subpoin {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-left: 18px; /* Indentasi ke dalam untuk sub-poin strip (-) */
  line-height: 1.45;
}

.ket-sub-tanda {
  flex-shrink: 0;
  color: #475569;
  font-weight: 700;
}

.ket-sub-isi {
  color: #334155;
  word-break: break-word;
}

.ket-baris-jarak {
  height: 8px; /* Jarak renggang antar nomor 1 dan nomor 2 */
}

tr:hover td {
  background-color: #f8fafc;
}

/* THUMBNAIL FOTO DI DALAM TABEL */
.wadah-thumb-tabel {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  cursor: pointer;
  vertical-align: middle;
}

.foto-alat-thumb,
.foto-tabel-mini,
table td img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 8px;
  object-fit: cover;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  transition: transform 0.2s;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wadah-thumb-tabel:hover .foto-alat-thumb,
.wadah-thumb-tabel:hover .foto-tabel-mini,
.wadah-thumb-tabel:hover img {
  transform: scale(1.12);
}

.badge-multi-foto {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #164d78;
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.badge-kondisi {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.kondisi-baik { background: #dcfce7; color: #166534; }
.kondisi-rusak-ringan { background: #fef9c3; color: #854d0e; }
.kondisi-rusak-berat { background: #fee2e2; color: #991b1b; }
.kondisi-lain { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.teks-satuan {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #e2e8f0;
  padding: 1.5px 6px;
  border-radius: 6px;
  margin-left: 3px;
  display: inline-block;
  vertical-align: middle;
}

/* ===================================================
   7. DOCK NAVIGASI MELAYANG DI BAWAH (3 TOMBOL)
   =================================================== */
.wadah-navigasi-bawah {
  position: fixed !important;
  bottom: max(22px, calc(10px + env(safe-area-inset-bottom, 0px))) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  z-index: 100 !important;
  user-select: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.modal-terbuka .wadah-navigasi-bawah,
body:has(#modal-cari-ruang[style*="flex"]) .wadah-navigasi-bawah,
body:has(#modal-cari-alat[style*="flex"]) .wadah-navigasi-bawah,
body:has(#modal-foto[style*="flex"]) .wadah-navigasi-bawah {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 20px) !important;
}

.tombol-nav-bawah {
  background: linear-gradient(135deg, #164d78 0%, #0f3553 100%) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  padding: 11px 22px !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.22s ease !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}

.tombol-alat-melayang {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
  border-color: rgba(165, 180, 252, 0.5) !important;
}

.tombol-cari-melayang {
  background: linear-gradient(135deg, #0d9488 0%, #115e59 100%) !important;
  border-color: rgba(94, 234, 212, 0.5) !important;
}

.tombol-nav-bawah:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42) !important;
  border-color: white !important;
}

.tombol-alat-melayang:hover {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45) !important;
}

.tombol-cari-melayang:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.45) !important;
}

.tombol-nav-bawah:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.ikon-nav-bawah {
  font-size: 17px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tombol-nav-bawah:hover .ikon-nav-bawah {
  transform: scale(1.18);
}

.teks-nav-bawah {
  font-size: 14px;
  white-space: nowrap;
}

/* ===================================================
   8. MODAL PENCARIAN CEPAT RUANGAN & PERALATAN
   =================================================== */
.modal-cari-ruang {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 20px 16px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.modal-cari-kotak {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  animation: slideDownModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownModal {
  from { opacity: 0; transform: translateY(-18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-cari-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  gap: 12px;
}

.modal-cari-ikon {
  font-size: 20px;
  color: #64748b;
}

.input-cari-ruangan {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15.5px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
}

.input-cari-ruangan::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.tombol-tutup-cari {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
  transition: 0.15s;
}

.tombol-tutup-cari:hover {
  color: #ef4444;
  background-color: #fee2e2;
}

.hasil-cari-ruangan {
  overflow-y: auto;
  max-height: 60vh;
  padding: 8px;
  scrollbar-width: thin;
  overscroll-behavior-y: contain;
}

.item-hasil-cari {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 3px;
}

.item-hasil-cari:hover {
  background-color: #f0f9ff;
  transform: translateX(3px);
}

.item-hasil-kiri {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-hasil-no {
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 5px;
  min-width: 24px;
  text-align: center;
}

.item-hasil-ikon {
  font-size: 18px;
  line-height: 1;
}

.item-hasil-nama {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.item-hasil-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.item-hasil-badge.badge-kat-kelas {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.item-hasil-badge.badge-kat-terapi {
  background-color: #d1fae5;
  color: #059669;
}

.item-hasil-badge.badge-kat-sarana {
  background-color: #fce7f3;
  color: #db2777;
}

.kosong-cari-ruangan {
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

/* MODAL PENCARIAN PERALATAN */
.modal-cari-alat-kotak {
  max-width: 640px;
}

.modal-cari-alat-header {
  border-bottom: 1.5px solid #e0e7ff;
  background-color: #f5f3ff;
}

.modal-cari-alat-header .modal-cari-ikon {
  color: #6366f1;
}

.bar-info-cari-alat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 6px;
}

.hint-pilih-alat {
  color: #4f46e5;
  font-weight: 500;
}

.hasil-cari-alat-daftar {
  padding: 6px 8px;
  max-height: 62vh;
}

.item-hasil-alat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 2px;
}

.item-hasil-alat:hover {
  background-color: #f5f3ff;
  transform: translateX(3px);
}

.thumb-hasil-alat-wadah {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.thumb-hasil-alat {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-alat-placeholder {
  font-size: 22px;
  color: #94a3b8;
}

.info-hasil-alat {
  flex: 1;
  min-width: 0;
}

.nama-hasil-alat {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-hasil-alat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.badge-ruang-alat {
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-kondisi-alat {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-kondisi-alat.kondisi-baik { background-color: #dcfce7; color: #15803d; }
.badge-kondisi-alat.kondisi-rusak-ringan { background-color: #fef9c3; color: #a16207; }
.badge-kondisi-alat.kondisi-rusak-berat { background-color: #fee2e2; color: #b91c1c; }

/* ===================================================
   9. MODAL LIGHTBOX FOTO BESAR
   =================================================== */
.wadah-loading {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #164d78;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: putar 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes putar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-foto {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
  overscroll-behavior: contain;
}

.modal-isi {
  position: relative;
  max-width: 90%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wadah-gambar-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.modal-isi img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.6);
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.nav-modal {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 60;
}

.nav-modal:hover {
  background: rgba(22, 77, 120, 0.95);
  border-color: white;
  transform: translateY(-50%) scale(1.1);
}

.nav-modal-prev { left: -30px; }
.nav-modal-next { right: -30px; }

.info-modal {
  margin-top: 14px;
  text-align: center;
}

.caption-modal {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.counter-modal {
  color: #94a3b8;
  font-size: 13.5px;
  margin-top: 5px;
  font-weight: 500;
}

.tombol-tutup-modal {
  position: absolute;
  top: -40px;
  right: -10px;
  color: white;
  font-size: 34px;
  cursor: pointer;
  z-index: 65;
  transition: 0.2s;
}

.tombol-tutup-modal:hover {
  color: #f87171;
  transform: scale(1.15);
}

/* ========================================================
   10. HALAMAN LOGIN RESMI
   ======================================================== */
.layar-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 45%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.kartu-login {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  text-align: center;
  animation: munculKartuLogin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes munculKartuLogin {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.kartu-login.goyang-error {
  animation: goyangErrorLogin 0.45s ease-in-out;
}

@keyframes goyangErrorLogin {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.logo-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.logo-sekolah-login {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(11, 19, 43, 0.16));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.logo-sekolah-login:hover {
  transform: scale(1.06);
}

.header-login {
  margin-bottom: 22px;
}

.judul-login {
  font-size: 23px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.5px;
  margin: 0 0 6px 0;
}

.subjudul-login {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.subjudul-login strong {
  color: #0f172a;
  letter-spacing: 0.3px;
}

.pesan-login {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.4;
}

.pesan-login.pesan-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.pesan-login.pesan-sukses {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}

.grup-input-login {
  text-align: left;
  margin-bottom: 16px;
}

.grup-input-login label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.kotak-input-login {
  position: relative;
  display: flex;
  align-items: center;
}

.ikon-input-login {
  position: absolute;
  left: 13px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.kotak-input-login input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14.5px;
  color: #0f172a;
  background-color: #f8fafc;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.kotak-input-login input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.tombol-lihat-password {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 16px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
  z-index: 2;
}

.tombol-lihat-password:hover {
  background-color: #e2e8f0;
}

.opsi-login {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 10px 0 20px 0;
}

.label-ingat-saya {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.label-ingat-saya input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2563eb;
}

.tombol-masuk-login {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.tombol-masuk-login:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.tombol-masuk-login:active {
  transform: translateY(0);
}

.tombol-masuk-login:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.spinner-kecil {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: putarSpinnerLogin 0.8s linear infinite;
  display: inline-block;
}

@keyframes putarSpinnerLogin {
  to { transform: rotate(360deg); }
}

.footer-login {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.petunjuk-login {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 6px 0;
}

.petunjuk-login code {
  background-color: #f1f5f9;
  color: #1e3a8a;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-family: monospace;
  font-size: 12.5px;
  border: 1px solid #e2e8f0;
}

.hak-cipta-login {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.menu-spreadsheet {
  margin-top: 6px !important;
  background-color: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.menu-spreadsheet:hover {
  background-color: rgba(16, 185, 129, 0.24) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  padding-left: 18px !important;
}

.badge-menu-eksternal {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.menu-gdrive {
  margin-top: 6px !important;
  background-color: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  color: #7dd3fc !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.menu-gdrive:hover {
  background-color: rgba(56, 189, 248, 0.24) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  padding-left: 18px !important;
}

.badge-menu-gdrive {
  font-size: 11px;
  background: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

.btn-buka-sheet-card {
  background-color: #10b981;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-buka-sheet-card:hover {
  background-color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.menu-logout {
  margin-top: 28px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  color: #fca5a5 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.menu-logout:hover {
  background-color: rgba(239, 68, 68, 0.16) !important;
  color: #fecaca !important;
  padding-left: 22px !important;
}

.wadah-aplikasi-utama {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ===================================================
   11. RESPONSIVITAS LAYAR HP (< 768px)
   =================================================== */
@media (max-width: 768px) {
  .tombol-hamburger { display: block; }

  .Header {
    height: auto;
    min-height: 70px;
    padding: 10px 6px;
    justify-content: center;
  }

  .judul-header {
    align-items: center;
    text-align: center;
    padding: 0 46px;
    box-sizing: border-box;
    width: 100%;
  }

  .judul-app {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .logo-header {
    width: 23px;
    height: 23px;
  }

  .sub-judul-app {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #e0f2fe;
    text-align: center;
    margin-top: 2px;
    white-space: normal;
  }

  .menu-samping {
    top: 70px;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
  }

  .menu-samping.terbuka-mobile { transform: translateX(0); }
  .latar-belakang.aktif { display: block; }

  .konten-utama {
    margin-left: 0;
    padding: 82px 0 100px 0;
  }

  .kartu-denah-banner {
    padding: 12px 0 16px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .pembungkus-scroll-denah {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 4px 8px 12px 8px;
    box-sizing: border-box;
  }

  .pembungkus-scroll-denah::-webkit-scrollbar {
    height: 6px;
  }
  .pembungkus-scroll-denah::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
  }
  .pembungkus-scroll-denah::-webkit-scrollbar-thumb {
    background: #0284c7;
    border-radius: 4px;
  }

  .wadah-foto-denah {
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .wadah-foto-denah img {
    width: 100%;
    height: auto;
    display: block;
  }

  .wadah-foto-denah.mode-zoom {
    width: 750px !important;
    min-width: 750px !important;
    max-width: 750px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }

  .wadah-foto-denah.mode-zoom img {
    width: 750px !important;
  }

  .bar-kontrol-denah {
    margin: 0 0 10px 0;
    padding-left: 8px;
    padding-right: 8px;
    gap: 8px;
  }

  .badge-petunjuk-denah {
    width: 100%;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    box-sizing: border-box;
    gap: 6px;
    justify-content: flex-start;
    border-width: 1px;
  }

  .ikon-petunjuk-denah {
    font-size: 15px;
  }

  .grup-tombol-kontrol-denah {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
  }

  .btn-kontrol-denah {
    padding: 7px 11px;
    font-size: 12px;
    border-radius: 8px;
  }

  .btn-kontrol-denah.aktif {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  }

  .tombol-ruang-denah {
    border-width: 1px;
    border-radius: 4px;
  }
  .konten-ruang-denah {
    padding: 0.5px 1px;
    overflow: hidden;
  }
  .nomor-ruang-denah {
    font-size: 6px;
    padding: 0.5px 2px;
    margin-bottom: 0.5px;
    border-radius: 3px;
    line-height: 1;
  }
  .nama-ruang-denah {
    font-size: 6px;
    font-weight: 600;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
  }

  .wadah-foto-denah.mode-zoom .nomor-ruang-denah {
    font-size: 7.5px;
    padding: 0.5px 3px;
    margin-bottom: 1px;
  }
  .wadah-foto-denah.mode-zoom .nama-ruang-denah {
    font-size: 7.5px;
    -webkit-line-clamp: 4;
    line-height: 1.05;
  }

  .popover-blueprint {
    min-width: 135px;
    max-width: 200px;
    padding: 6px 10px;
  }

  .popover-nama { font-size: 11px; }

  .bar-filter-kategori {
    padding: 0 10px;
    gap: 6px;
  }

  .btn-tab-filter {
    font-size: 11.5px;
    padding: 6px 11px;
  }

  .judul-bagian-denah {
    padding: 0 12px;
    margin: 18px 0 10px 0;
    font-size: 15px;
  }

  .grid-denah-ruangan {
    padding: 0 10px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .kartu-pintas-ruangan {
    min-height: 72px;
    padding: 10px 6px;
  }

  .nama-pintas { font-size: 11.5px; }

  .kartu-ruangan {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 10px 18px 10px;
    padding: 14px;
  }

  .wadah-foto-ruangan {
    width: 100%;
    height: 190px;
  }

  .toolbar-tabel { padding: 0 10px; }
  .wadah-tabel { margin: 0 10px; }
  .info-baris strong { width: 120px; }
  .input-cari { width: 100%; }

  .wadah-navigasi-bawah {
    bottom: max(14px, calc(6px + env(safe-area-inset-bottom, 0px))) !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 98% !important;
  }

  .tombol-nav-bawah {
    padding: 9px 13px !important;
    font-size: 12.5px !important;
    gap: 5px !important;
  }

  .ikon-nav-bawah { font-size: 15px !important; }
  .teks-nav-bawah { font-size: 12.5px !important; }

  .modal-cari-ruang {
    padding: 20px 10px 15px 10px;
  }

  .modal-cari-header { padding: 12px 14px; }
  .input-cari-ruangan { font-size: 14.5px; }

  .nav-modal {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .nav-modal-prev { left: 5px; }
  .nav-modal-next { right: 5px; }
  .tombol-tutup-modal { top: -35px; right: 0; }
}

@media (max-width: 480px) {
  .tombol-ruang-denah {
    border-width: 1px;
    border-radius: 3px;
  }
  .nomor-ruang-denah {
    font-size: 5px;
    padding: 0 1.5px;
    margin-bottom: 0;
  }
  .nama-ruang-denah {
    font-size: 5px;
    line-height: 1.0;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .wadah-foto-denah.mode-zoom .nomor-ruang-denah {
    font-size: 7.5px;
    padding: 0.5px 3px;
    margin-bottom: 1px;
  }
  .wadah-foto-denah.mode-zoom .nama-ruang-denah {
    font-size: 8px;
    line-height: 1.05;
    letter-spacing: normal;
  }

  .kartu-login {
    padding: 28px 20px 22px 20px;
    border-radius: 16px;
  }
  .judul-login { font-size: 21px; }

  .wadah-navigasi-bawah {
    bottom: max(12px, calc(5px + env(safe-area-inset-bottom, 0px))) !important;
    gap: 5px !important;
  }
  .tombol-nav-bawah {
    padding: 8px 11px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
  }
  .teks-nav-bawah { font-size: 11.5px !important; }
  .ikon-nav-bawah { font-size: 13.5px !important; }
}
