/* Mikrotik Drive RSC — kotak masuk backup .rsc, tiruan tampilan Gmail.
   Ditulis ulang 2026-11-08 atas permintaan pemilik ("semirip mungkin").
   Latar PUTIH apa pun tema CRM. Semua selector diawali .gm / #page-mikrotik_drive
   sehingga mustahil bocor ke halaman CRM lain.

   Acuan ukuran Gmail: tinggi baris 40px, teks 14px, biru #1a73e8,
   teks sekunder #5f6368, garis #e0e0e0 / #f1f3f4, baris terbaca #f2f6fc,
   pil "Tulis" #c2e7ff, item terpilih #d3e3fd. */

#page-mikrotik_drive .card { background: #fff; color: #202124; }
#page-mikrotik_drive .card > .row h2 { color: #202124; }

.gm {
  --biru: #1a73e8;
  --abu: #5f6368;
  --garis: #e0e0e0;
  --garis-tipis: #f1f3f4;
  --hover: #f5f6f7;
  --terbaca: #f2f6fc;
  background: #fff;
  color: #202124;
  font-family: Roboto, "Google Sans", Arial, system-ui, sans-serif;
  font-size: 14px;
  border: 1px solid var(--garis);
  border-radius: 8px;
  overflow: hidden;
}

/* =========================================================== bilah atas === */
.gm-top {
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 10px 0 6px; background: #fff;
  border-bottom: 1px solid var(--garis-tipis);
}
.gm-burger, .gm-ikon {
  border: 0; background: transparent; color: var(--abu);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1; flex: 0 0 auto;
}
.gm-burger:hover, .gm-ikon:hover { background: rgba(32,33,36,.059); color: #202124; }
.gm-logo { display: flex; align-items: center; gap: 7px; margin-right: 10px; flex: 0 0 auto; }
/* Tanda "M" kini satu berkas SVG (assets/img/mikrotik-drive-logo.svg) supaya
   seragam dengan tombol menu dan judul halaman. Aturan di bawah hanya mengatur
   ukuran/perataan; gambarnya sendiri tidak diwarnai dari sini. */
.mdrive-logo { display: inline-block; flex: 0 0 auto; }
#page-mikrotik_drive h2 .mdrive-logo { vertical-align: -4px; }
.gm-logo .kata { font-size: 21px; color: #5f6368; letter-spacing: -.3px; }

.gm-cari-bungkus { flex: 1 1 auto; max-width: 720px; }
.gm-cari {
  display: flex; align-items: center; gap: 6px;
  background: #eaf1fb; border-radius: 8px; height: 46px; padding: 0 6px 0 4px;
  transition: background .15s, box-shadow .15s;
}
.gm-cari:focus-within { background: #fff; box-shadow: 0 1px 1px 0 rgba(65,69,73,.3), 0 1px 3px 1px rgba(65,69,73,.15); }
.gm-cari input {
  flex: 1 1 auto; border: 0; background: transparent; outline: 0;
  font-size: 15px; color: #202124; min-width: 0;
}
.gm-cari input::placeholder { color: #5f6368; }
.gm-topkanan { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.gm-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #1a73e8; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  font-weight: 500; margin-left: 6px; flex: 0 0 auto;
}

/* ============================================================== badan ===== */
.gm-badan { display: flex; align-items: stretch; min-height: 470px; background: #fff; }

/* ------------------------------------------------------------ nav kiri --- */
.gm-side { flex: 0 0 256px; padding: 8px 0 10px; background: #fff; }
.gm-tulis {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 8px 0 16px 10px; padding: 0 24px 0 18px; height: 48px;
  border: 0; border-radius: 24px; background: #c2e7ff; color: #001d35;
  font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
.gm-tulis:hover { background: #b0dcfb; box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.gm-tulis .pensil { font-size: 17px; }

.gm-item {
  display: flex; align-items: center; gap: 0;
  width: calc(100% - 10px); height: 32px; padding: 0 12px 0 26px;
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  border-radius: 0 16px 16px 0; text-align: left; font-size: 14px; color: #202124;
}
.gm-item:hover { background: var(--hover); }
.gm-item.on { background: #d3e3fd; color: #041e49; font-weight: 700; }
.gm-item .ik { width: 20px; margin-right: 18px; text-align: center; flex: 0 0 20px; font-size: 14px; }
.gm-item .nm { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-item .ct { font-size: 12px; color: var(--abu); font-weight: 400; flex: 0 0 auto; }
.gm-item.on .ct { color: #041e49; font-weight: 700; }
.gm-pisah { height: 1px; background: var(--garis-tipis); margin: 9px 10px 9px 0; }
.gm-judul-label {
  padding: 8px 12px 6px 26px; font-size: 14px; color: var(--abu);
}
.gm-penyimpanan { padding: 14px 20px 0 26px; font-size: 12px; color: var(--abu); }
.gm-penyimpanan .pita { height: 4px; border-radius: 2px; background: #dadce0; margin: 7px 0 6px; overflow: hidden; }
.gm-penyimpanan .pita > i { display: block; height: 100%; background: var(--biru); }

/* Kotak masa simpan: memberi tahu kapan berkas dibuang sendiri, ala CCTV. */
.gm-retensi {
  margin-top: 10px; padding: 9px 11px; border-radius: 8px;
  background: #f1f3f4; color: #3c4043; font-size: 11.5px; line-height: 1.6;
}
.gm-retensi b { color: #202124; font-weight: 500; }
.gm-retensi .lewat { color: #c5221f; }
.gm-retensi button {
  margin-top: 7px; border: 1px solid var(--garis); background: #fff; color: var(--biru);
  font-family: inherit; font-size: 11.5px; border-radius: 12px; padding: 4px 11px; cursor: pointer;
}
.gm-retensi button:hover { background: #e8f0fe; }

/* --------------------------------------------------------------- utama --- */
.gm-utama { flex: 1 1 auto; min-width: 0; border-left: 1px solid var(--garis-tipis); background: #fff; }

/* tab ala Gmail: Utama / Berlampiran / Peringatan */
.gm-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--garis-tipis); }
.gm-tab {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 20px;
  border: 0; border-bottom: 3px solid transparent; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--abu); cursor: pointer; font-weight: 500;
  min-width: 150px; max-width: 280px;
}
.gm-tab:hover { background: var(--hover); }
.gm-tab.on { color: var(--biru); border-bottom-color: var(--biru); }
.gm-tab .ik { font-size: 16px; }
.gm-tab .ct { margin-left: auto; font-size: 12px; font-weight: 700; }

/* baris alat */
.gm-alat {
  display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 16px 0 10px;
  color: var(--abu); font-size: 12.5px;
}
.gm-alat .spacer { flex: 1 1 auto; }
/* Kotak centang: tombol sungguhan, tiga keadaan seperti Gmail
   (kosong / sebagian tercentang / semua tercentang). */
.gm-cek {
  position: relative; width: 18px; height: 18px; padding: 0;
  border: 2px solid #5f6368; border-radius: 2px; background: #fff;
  cursor: pointer; flex: 0 0 auto; box-sizing: border-box;
}
.gm-cek:hover { border-color: #202124; }
.gm-cek.on, .gm-cek.sebagian { background: #1a73e8; border-color: #1a73e8; }
/* tanda centang digambar dengan border, bukan gambar: tidak ada aset tambahan */
.gm-cek.on::after {
  content: ''; position: absolute; left: 4px; top: 0px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gm-cek.sebagian::after {
  content: ''; position: absolute; left: 2px; top: 6px;
  width: 10px; height: 0; border-top: 2px solid #fff;
}
.gm-kotakcek { margin: 0 2px 0 6px; }

/* Kotak centang + caret, padanan dropdown "Pilih" di Gmail. */
.gm-cekgrup { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; margin-right: 6px; }
.gm-caret {
  border: 0; background: transparent; color: #5f6368; cursor: pointer;
  width: 20px; height: 24px; border-radius: 4px; font-size: 11px; line-height: 1; padding: 0;
}
.gm-caret:hover { background: rgba(32,33,36,.08); color: #202124; }
.gm-menu {
  position: absolute; top: 28px; left: 0; z-index: 30; min-width: 176px;
  background: #fff; border-radius: 4px; padding: 6px 0;
  box-shadow: 0 2px 6px 2px rgba(60,64,67,.15), 0 1px 2px 0 rgba(60,64,67,.3);
  display: flex; flex-direction: column;
}
.gm-menu button {
  border: 0; background: transparent; text-align: left; font-family: inherit;
  font-size: 13px; color: #202124; padding: 7px 18px; cursor: pointer; white-space: nowrap;
}
.gm-menu button:hover { background: #f1f3f4; }
.gm-hal { font-size: 12.5px; color: var(--abu); margin: 0 6px; white-space: nowrap; }

/* pilihan jumlah per halaman */
.gm-per {
  border: 1px solid var(--garis); background: #fff; color: #3c4043; font-family: inherit;
  font-size: 12px; border-radius: 14px; padding: 4px 8px; cursor: pointer; outline: 0;
}
.gm-per:hover { background: var(--hover); }

/* nomor halaman: 1 2 … 7 [8] 9 … 20 */
.gm-hal-nomor { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.gm-hal-nomor .nomor {
  min-width: 28px; height: 28px; padding: 0 6px; border: 0; background: transparent;
  color: #3c4043; font-family: inherit; font-size: 12.5px; border-radius: 14px; cursor: pointer;
}
.gm-hal-nomor .nomor:hover { background: rgba(32,33,36,.08); }
.gm-hal-nomor .nomor.on {
  background: var(--biru); color: #fff; font-weight: 500; cursor: default;
}
.gm-hal-nomor .jeda { color: var(--abu); padding: 0 2px; font-size: 12.5px; }

/* baris nomor halaman di bawah daftar */
.gm-bawah {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px 14px; border-top: 1px solid var(--garis-tipis);
  font-size: 12.5px; color: var(--abu); flex-wrap: wrap;
}

/* ----------------------------------------------------- daftar email ----- */
/* Bilah aksi massal: menggantikan baris alat begitu ada yang dipilih,
   persis perilaku Gmail. */
.gm-massal {
  display: flex; align-items: center; gap: 6px; height: 48px;
  padding: 0 16px 0 10px; background: #fff;
  border-bottom: 1px solid var(--garis-tipis); flex-wrap: nowrap; overflow-x: auto;
}
.gm-massal .jml { font-size: 13px; color: #202124; font-weight: 500; margin: 0 10px 0 4px; white-space: nowrap; }
.gm-massal .spacer { flex: 1 1 auto; }
.gm-massal button.tbl {
  border: 1px solid var(--garis); background: #fff; color: #3c4043; font-family: inherit;
  border-radius: 16px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.gm-massal button.tbl:hover { background: var(--hover); }
.gm-massal button.tbl.bahaya { color: #d93025; border-color: #f5c2bd; }
.gm-massal button.tbl.bahaya:hover { background: #fce8e6; }
.gm-massal .pil {
  font-size: 12px; color: var(--biru); background: #e8f0fe; border: 1px solid #d2e3fc;
  border-radius: 12px; padding: 4px 10px; cursor: pointer; white-space: nowrap;
}
.gm-massal .pil:hover { background: #d9e7fd; }

.gm-list { border-top: 1px solid var(--garis-tipis); }
.gm-baris {
  display: flex; align-items: center; height: 40px; padding: 0 16px 0 10px;
  border-bottom: 1px solid var(--garis-tipis); cursor: pointer; position: relative;
  background: var(--terbaca); color: #5f6368;
}
.gm-baris.belum { background: #fff; color: #202124; font-weight: 700; }
.gm-baris:hover {
  box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  z-index: 2; background: #fff;
}
.gm-baris .gm-cek { margin-right: 8px; }
/* Baris terpilih: biru muda seperti Gmail, menang atas gaya baca/belum/hover. */
.gm-baris.pilih, .gm-baris.pilih:hover { background: #c2dbff; }
.gm-baris.pilih .lbl { background: #fff; border-color: #a8c7fa; }
.gm-baris .bint {
  border: 0; background: transparent; cursor: pointer; flex: 0 0 auto;
  width: 24px; font-size: 16px; color: #dadce0; padding: 0; line-height: 1;
}
.gm-baris .bint.on { color: #f4b400; }
.gm-baris .penting { flex: 0 0 24px; text-align: center; color: #dadce0; font-size: 15px; }
.gm-baris .penting.on { color: #f4b400; }
.gm-baris .pengirim {
  flex: 0 0 180px; padding-right: 12px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.gm-baris .pokok {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-right: 12px;
}
.gm-baris .pokok .cup { color: #5f6368; font-weight: 400; }
.gm-baris .lbl {
  flex: 0 0 auto; font-size: 11px; font-weight: 500; color: #3c4043; background: #e8f0fe;
  border: 1px solid #d2e3fc; border-radius: 4px; padding: 1px 6px; margin-right: 8px; white-space: nowrap;
}
.gm-baris .klip { flex: 0 0 auto; color: var(--abu); font-size: 12px; margin-right: 10px; font-weight: 400; }
.gm-baris .tgl { flex: 0 0 76px; text-align: right; font-size: 12px; }
/* Gmail: saat hover, tanggal diganti tombol aksi */
.gm-baris .aksi { display: none; flex: 0 0 auto; gap: 2px; }
.gm-baris:hover .tgl { display: none; }
.gm-baris:hover .aksi { display: flex; }
.gm-baris .aksi button {
  border: 0; background: transparent; color: var(--abu); width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
}
.gm-baris .aksi button:hover { background: rgba(32,33,36,.1); color: #202124; }

.gm-kosong { text-align: center; padding: 76px 24px; color: var(--abu); font-weight: 400; }
.gm-kosong .besar { font-size: 48px; margin-bottom: 16px; }
.gm-kosong b { color: #202124; font-size: 16px; font-weight: 500; }

/* -------------------------------------------------------- baca email ---- */
.gm-baca { padding: 8px 0 32px; }
.gm-baca-alat { display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 16px 0 8px; }
.gm-baca-alat .spacer { flex: 1 1 auto; }
.gm-baca-isi { padding: 6px 32px 0 72px; }
.gm-baca-isi h3 {
  margin: 0 0 18px; font-size: 22px; font-weight: 400; color: #202124; line-height: 1.3;
}
.gm-baca-isi h3 .lbl {
  font-size: 11px; font-weight: 500; color: #3c4043; background: #e8f0fe;
  border: 1px solid #d2e3fc; border-radius: 4px; padding: 2px 7px; vertical-align: 3px; margin-left: 8px;
}
.gm-kirim { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.gm-kirim .av {
  width: 40px; height: 40px; border-radius: 50%; background: #5f6368; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto;
}
.gm-kirim .ket { flex: 1 1 auto; min-width: 0; }
.gm-kirim .nm { font-size: 14px; font-weight: 700; color: #202124; }
.gm-kirim .nm span { font-weight: 400; color: var(--abu); font-size: 12.5px; }
.gm-kirim .ke { font-size: 12.5px; color: var(--abu); margin-top: 2px; }
.gm-kirim .wkt { font-size: 12.5px; color: var(--abu); flex: 0 0 auto; white-space: nowrap; }
.gm-tubuh { font-size: 14px; line-height: 1.62; color: #202124; white-space: pre-wrap; margin-bottom: 26px; }

.gm-lampiran { border-top: 1px solid var(--garis-tipis); padding-top: 16px; }
.gm-lampiran .tajuk { font-size: 13px; color: var(--abu); margin-bottom: 10px; }
.gm-kartu {
  display: inline-flex; align-items: stretch; width: 272px; max-width: 100%; height: 72px;
  border: 1px solid var(--garis); border-radius: 4px; margin: 0 12px 12px 0;
  background: #fff; overflow: hidden; position: relative;
}
.gm-kartu:hover { box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.gm-kartu .thumb {
  flex: 0 0 72px; background: #f1f3f4; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-right: 1px solid var(--garis);
}
.gm-kartu .ket { flex: 1 1 auto; min-width: 0; padding: 10px 10px 8px; display: flex; flex-direction: column; }
.gm-kartu .nm { font-size: 13px; font-weight: 500; color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-kartu .sub { font-size: 11.5px; color: var(--abu); margin-top: 2px; line-height: 1.35; }
.gm-kartu .tbl { margin-top: auto; display: flex; gap: 4px; }
.gm-kartu .tbl button {
  border: 0; background: transparent; color: var(--biru); font-family: inherit;
  font-size: 11.5px; font-weight: 500; cursor: pointer; padding: 2px 6px; border-radius: 4px;
}
.gm-kartu .tbl button:hover { background: #e8f0fe; }

/* --------------------------------------------------- kesiapan RouterBoard */
.gm-info {
  margin: 0; padding: 14px 24px; background: #e8f0fe; color: #174ea6;
  font-size: 13px; line-height: 1.65; border-bottom: 1px solid #d2e3fc;
}
.gm-info code { background: #fff; border: 1px solid #d2e3fc; border-radius: 3px; padding: 1px 5px; font-size: 12px; color: #c5221f; }
.gm-rb { display: grid; grid-template-columns: repeat(auto-fill, minmax(308px, 1fr)); gap: 14px; padding: 18px 24px 26px; }
.gm-rbkartu { border: 1px solid var(--garis); border-radius: 8px; padding: 14px 16px; background: #fff; }
.gm-rbkartu:hover { box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.gm-rbkartu h4 { margin: 0 0 9px; font-size: 15px; font-weight: 500; color: #202124; display: flex; align-items: center; gap: 8px; }
.gm-rbkartu .b { font-size: 12.5px; color: #3c4043; margin: 4px 0; }
.gm-rbkartu .b i { color: var(--abu); font-style: normal; }
.gm-rbkartu .tbl { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.gm-rbkartu .tbl button {
  border: 1px solid var(--garis); background: #fff; color: var(--biru); font-family: inherit;
  border-radius: 16px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-weight: 500;
}
.gm-rbkartu .tbl button:hover { background: #f8fbff; border-color: #c6dafc; }
.gm-rbkartu .tbl button.bahaya { color: #d93025; }
.gm-rbkartu .tbl button.bahaya:hover { background: #fce8e6; border-color: #f5c2bd; }

.gm-chip { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.gm-chip.ok   { background: #e6f4ea; color: #137333; }
.gm-chip.warn { background: #fef7e0; color: #b06000; }
.gm-chip.bad  { background: #fce8e6; color: #c5221f; }

/* ---------------------------------------------------------- modal ------- */
.gm-modal { position: fixed; inset: 0; background: rgba(32,33,36,.6); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 22px; }
.gm-modal.hidden { display: none; }
.gm-modal .kotak { background: #fff; color: #202124; border-radius: 8px;
  width: min(1040px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 50px rgba(0,0,0,.4); font-family: Roboto, Arial, sans-serif; }
.gm-modal .kepala { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--garis-tipis); }
.gm-modal .kepala .t { font-weight: 500; font-size: 14px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-modal .kepala .spacer { flex: 1 1 auto; }
.gm-modal .kepala button { border: 1px solid var(--garis); background: #fff; color: #3c4043;
  border-radius: 16px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.gm-modal .kepala button:hover { background: var(--hover); }
/* ---- dialog Minta Backup (pilih banyak RB) ---- */
.gm-modal.gm-dlg .kotak { width: min(620px, 100%); }
.gm-modal.gm-dlg pre { padding: 0; font-family: Roboto, Arial, sans-serif; font-size: 13.5px; white-space: normal; }
.gm-dlg-alat {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--garis-tipis); flex-wrap: wrap;
}
.gm-dlg-alat .jml { font-size: 13px; color: #202124; font-weight: 500; }
.gm-dlg-alat .spacer { flex: 1 1 auto; }
.gm-dlg-alat .pil {
  font-size: 11.5px; color: var(--biru); background: #e8f0fe; border: 1px solid #d2e3fc;
  border-radius: 12px; padding: 4px 10px; cursor: pointer; white-space: nowrap;
}
.gm-dlg-alat .pil:hover { background: #d9e7fd; }
.gm-dlg-list { max-height: 52vh; overflow: auto; }
.gm-dlg-baris {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px; cursor: pointer;
  border-bottom: 1px solid #f1f3f4; font-size: 13px; color: #202124;
}
.gm-dlg-baris:hover { background: var(--hover); }
.gm-dlg-baris.on { background: #c2dbff; }
.gm-dlg-baris .nm { font-weight: 500; flex: 0 0 132px; }
.gm-dlg-baris .hst { color: var(--abu); font-size: 12px; flex: 0 0 128px; }
.gm-dlg-baris .akh { color: var(--abu); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.gm-dlg-baris .akh i { color: #b06000; font-style: normal; }
.gm-dlg-hasil { padding: 6px 0; max-height: 56vh; overflow: auto; }
.gm-dlg-hasil .baris { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px;
  border-bottom: 1px solid #f1f3f4; }
.gm-dlg-hasil .baris .ik { width: 18px; text-align: center; font-weight: 700; }
.gm-dlg-hasil .baris.ok .ik { color: #137333; }
.gm-dlg-hasil .baris.bad .ik { color: #c5221f; }
.gm-dlg-hasil .baris .nm { font-weight: 500; flex: 0 0 132px; }
.gm-dlg-hasil .baris .ps { color: var(--abu); font-size: 12px; }

.gm-modal pre { margin: 0; padding: 16px 20px; overflow: auto; flex: 1 1 auto;
  font-family: ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55; white-space: pre; background: #fff; color: #202124; }

/* ---------------------------------------------------------- layar kecil - */
@media (max-width: 1000px) {
  .gm-side { flex-basis: 210px; }
  .gm-baris .pengirim { flex-basis: 140px; }
  .gm-baca-isi { padding-left: 24px; padding-right: 20px; }
}
@media (max-width: 860px) {
  .gm-badan { flex-direction: column; }
  .gm-side { flex: 1 1 auto; width: 100%; border-bottom: 1px solid var(--garis-tipis); }
  .gm-item { width: auto; display: inline-flex; border-radius: 16px; margin: 0 4px 4px 10px; padding: 0 14px; }
  .gm-item .ik { margin-right: 10px; }
  .gm-utama { border-left: 0; }
  .gm-logo .kata, .gm-tab .ct { display: none; }
  .gm-baris .lbl, .gm-baris .penting { display: none; }
  .gm-massal button.tbl { padding: 6px 10px; font-size: 12px; }
  .gm-per { display: none; }
  .gm-hal { font-size: 11.5px; margin: 0 2px; }
  .gm-hal-nomor .nomor { min-width: 24px; padding: 0 4px; }
  .gm-baris .pengirim { flex-basis: 104px; }
  .gm-baris .pokok .cup { display: none; }
  .gm-tab { min-width: 0; padding: 0 14px; }
}

/* ===================================================== SETTING > SMB ===== *
 * Menu gear di nav kiri + halaman setelan. Latar tetap putih ala Gmail
 * Settings: judul kecil, grup berkotak tipis, medan 1 kolom di ponsel.      */

.gm-subitem-bungkus { padding: 2px 0 4px; }
.gm-subitem {
  display: flex; align-items: center; width: calc(100% - 10px);
  height: 30px; padding: 0 12px 0 44px; margin-right: 10px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 0 16px 16px 0; color: #202124;
  font: 400 13.5px/30px Roboto, "Google Sans", Arial, system-ui, sans-serif;
  text-align: left;
}
.gm-subitem:hover { background: var(--hover); }
.gm-subitem.on { background: #d3e3fd; color: #041e49; font-weight: 700; }
.gm-subitem .ik { width: 18px; margin-right: 14px; text-align: center; flex: 0 0 18px; font-size: 13px; }
.gm-subitem .nm { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gm-set { padding: 16px 22px 26px; background: #fff; color: #202124; }
.gm-set-kepala {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--garis); padding-bottom: 8px; margin-bottom: 14px;
}
.gm-set-kepala h3 { margin: 0; font: 400 20px/1.3 Roboto, "Google Sans", Arial, system-ui, sans-serif; color: #202124; }
.gm-set-tab { display: flex; gap: 2px; margin-left: auto; }
.gm-set-tab button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 14px; font-size: 13px; color: var(--abu);
  border-bottom: 3px solid transparent; border-radius: 0;
}
.gm-set-tab button:hover { color: #202124; background: var(--hover); }
.gm-set-tab button.on { color: var(--biru); border-bottom-color: var(--biru); font-weight: 500; }

.gm-set-kartu-baris { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.gm-set-kartu {
  flex: 1 1 190px; min-width: 170px; padding: 10px 12px;
  border: 1px solid var(--garis); border-radius: 8px; background: #fff;
}
.gm-set-kartu i { display: block; font-style: normal; font-size: 11.5px; color: var(--abu);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.gm-set-kartu b { font-size: 13.5px; font-weight: 500; word-break: break-word; }
.gm-set-kartu.ok   { border-left: 3px solid #188038; }
.gm-set-kartu.warn { border-left: 3px solid #f29900; }
.gm-set-kartu.bad  { border-left: 3px solid #d93025; }

.gm-set-grup { border: 1px solid var(--garis); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.gm-set-grup h4 { margin: 0 0 10px; font: 500 14px/1.3 Roboto, Arial, system-ui, sans-serif; color: #202124; }
.gm-set-medan { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 16px; margin: 10px 0; }
.gm-set-medan label { display: block; font-size: 12px; color: var(--abu); margin-bottom: 4px; }
.gm-set-medan input {
  width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px;
  border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #202124;
  font: 400 13.5px Roboto, Arial, system-ui, sans-serif;
}
.gm-set-medan input:focus { outline: 0; border-color: var(--biru); box-shadow: 0 0 0 1px var(--biru) inset; }
.gm-set-sakelar { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin: 8px 0; cursor: pointer; }
.gm-set-sakelar input { width: 16px; height: 16px; accent-color: #1a73e8; cursor: pointer; }
.gm-set-catatan { font-size: 12.5px; color: var(--abu); line-height: 1.55; margin-top: 4px; }
.gm-set .redup { color: #80868b; font-weight: 400; }

.gm-set-tombol { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.gm-set-tombol button {
  border: 1px solid #dadce0; background: #fff; color: #1a73e8;
  padding: 0 16px; height: 34px; border-radius: 4px; cursor: pointer;
  font: 500 13.5px Roboto, Arial, system-ui, sans-serif;
}
.gm-set-tombol button:hover { background: #f6fafe; border-color: #c6dafc; }
.gm-set-tombol button.utama { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.gm-set-tombol button.utama:hover { background: #1b66c9; }

.gm-set-hasil { margin: 10px 0 0; font-size: 13px; }
.gm-set-hasil > div { padding: 10px 12px; border-radius: 6px; background: #f1f3f4; color: #202124; }
.gm-set-hasil > div.ok  { background: #e6f4ea; border-left: 3px solid #188038; }
.gm-set-hasil > div.bad { background: #fce8e6; border-left: 3px solid #d93025; }
.gm-set-hasil ul { margin: 8px 0 0; padding-left: 18px; }
.gm-set-hasil li { margin: 2px 0; }
.gm-set-hasil li i { font-style: normal; color: var(--abu); display: inline-block; min-width: 118px; }
.gm-set-bad { padding: 10px 12px; border-radius: 6px; background: #fce8e6; border-left: 3px solid #d93025;
  font-size: 13px; margin: 10px 0; }

.gm-set-tabel { overflow: auto; }
.gm-set-tabel table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gm-set-tabel th {
  text-align: left; font-weight: 500; color: var(--abu); padding: 6px 8px;
  border-bottom: 1px solid var(--garis); white-space: nowrap;
}
.gm-set-tabel td { padding: 6px 8px; border-bottom: 1px solid var(--garis-tipis); vertical-align: top; }
.gm-set-tabel td.jalur { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; }
.gm-set-tabel tr:hover td { background: var(--hover); }

@media (max-width: 760px) {
  .gm-set { padding: 12px 12px 20px; }
  .gm-set-medan { grid-template-columns: 1fr; }
  .gm-set-kartu { flex: 1 1 100%; }
}

/* ------------------------------------- SETTING > GOOGLE DRIVE (tambahan) -- */

/* Tombol merusak (putuskan sambungan) dibedakan jelas tanpa jadi norak. */
.gm-set-tombol button.bahaya { color: #c5221f; border-color: #f3c0bd; }
.gm-set-tombol button.bahaya:hover { background: #fce8e6; border-color: #e8a9a4; }
.gm-set-tombol button[disabled] { color: #9aa0a6; border-color: #e8eaed; cursor: not-allowed; background: #f8f9fa; }
.gm-set-tombol button[disabled]:hover { background: #f8f9fa; border-color: #e8eaed; }

/* Panduan Google Cloud: tertutup dulu supaya panel tidak panjang. */
.gm-set-panduan { padding: 0; }
.gm-set-panduan > summary {
  cursor: pointer; padding: 13px 16px; font: 500 13.5px Roboto, Arial, system-ui, sans-serif;
  color: var(--biru); list-style: none; border-radius: 8px;
}
.gm-set-panduan > summary::-webkit-details-marker { display: none; }
.gm-set-panduan > summary::before { content: '▸ '; color: var(--abu); }
.gm-set-panduan[open] > summary::before { content: '▾ '; }
.gm-set-panduan > summary:hover { background: var(--hover); }
.gm-set-panduan ol { margin: 4px 16px 10px; padding-left: 22px; font-size: 13px; line-height: 1.75; }
.gm-set-panduan ol li { margin: 5px 0; }
.gm-set-panduan code {
  background: #f1f3f4; border-radius: 3px; padding: 1px 5px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all;
}
.gm-set-panduan .gm-set-catatan { margin: 0 16px 14px; }
.gm-set-hasil a { color: var(--biru); }
.gm-set-kartu b span { font-weight: 500; }

/* Lencana label RouterBoard (SVG bulat biru) di nav kiri. Dipasang sebagai
   <img> di dalam .ik yang sudah punya lebar tetap, jadi cukup diatur agar
   mengisi kotak itu dan sejajar dengan ikon emoji pada item lain. */
.gm-item .ik .gm-ik-rb {
  width: 17px; height: 17px; display: block; margin: 0 auto;
  vertical-align: middle;
}
/* Logo MikroTik sudah punya cincin terang sendiri di tepinya, jadi tidak
   perlu ditambah cincin lagi saat barisnya terpilih - cukup dibulatkan supaya
   sudut piksel tidak terlihat di atas latar biru muda. */
.gm-item.on .ik .gm-ik-rb { border-radius: 50%; }

/* Logo Telegram & Google Drive. Dipakai di tiga tempat dengan ukuran berbeda:
   submenu nav kiri (slot ikon 18px), tab di kepala panel, dan tombol aksi.
   Dibuat sedikit lebih kecil dari slotnya supaya sebaris rapi dengan emoji
   yang masih dipakai item lain (SMB, Simpan, Uji sambungan). */
.gm-subitem .ik .gm-ik-logo { width: 16px; height: 16px; display: block; margin: 0 auto; }
.gm-set-tab button .gm-ik-logo,
.gm-set-tombol button .gm-ik-logo {
  width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px;
}
