/* ILECO III — shared styles for the added features:
   tool buttons, password eye, suggestion list, On hold, menu icons. Works with or without base.css. */

/* ---------- bottom-left: the switch PLAIN | GLASS and "Install app" ---------- */
.galamiton {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  align-items: flex-start;
} /* from the bottom: PLAIN | GLASS, Report a problem, Install app */
#temasw {
  display: inline-flex;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--navy, #12202e);
  background: #fff8dc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
#temasw button {
  border: 0;
  background: transparent;
  color: var(--navy, #12202e);
  padding: 9px 13px;
  font:
    800 11px/1 Inter,
    system-ui,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.14em;
  cursor: pointer;
}
#temasw button + button {
  border-left: 1px solid rgba(18, 32, 46, 0.35);
}
#temasw button[aria-pressed='true'] {
  background: var(--navy, #12202e);
  color: var(--amber, #f2a900);
}
#temasw button:focus-visible {
  outline: 2px solid #1f6bff;
  outline-offset: -2px;
}
.gal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--navy, #12202e);
  background: var(--navy, #12202e);
  color: var(--amber, #f2a900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font:
    700 12px Inter,
    system-ui,
    sans-serif;
}
.gal-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gal-btn[hidden] {
  display: none;
}
.field-page .galamiton {
  left: 10px;
  bottom: 10px;
}
.field-page {
  padding-bottom: 64px;
}
body:has(.galamiton) footer.foot {
  padding-left: 150px;
}
@media print {
  .galamiton,
  .hold-ui,
  .kombo-lista {
    display: none !important;
  }
}

/* ---------- password eye ---------- */
.mata-balot {
  position: relative;
  display: block;
}
.mata-balot input {
  width: 100%;
  padding-right: 44px !important;
}
.mata-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft, #5b6672);
  cursor: pointer;
}
.mata-btn:hover {
  background: rgba(18, 32, 46, 0.07);
  color: var(--navy, #12202e);
}
.mata-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- suggestion list ---------- */
.kombo-lista {
  position: absolute;
  z-index: 80;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #d9d4c7);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(18, 32, 46, 0.18);
  font-size: 14px;
}
.kombo-lista li {
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kombo-lista li:hover,
.kombo-lista li.on {
  background: var(--amber-tint, #fff4d6);
  color: var(--navy, #12202e);
}

/* ---------- On hold ---------- */
.hold-ui {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font:
    700 11px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.6;
}
.hold-mini {
  border: 1px dashed rgba(18, 32, 46, 0.35);
  background: transparent;
  color: var(--ink-soft, #5b6672);
}
.hold-mini:hover {
  border-style: solid;
  border-color: #c2410c;
  color: #9a3412;
}
.hold-tag {
  border: 1px solid #c2410c;
  background: #ffedd5;
  color: #9a3412;
}
.item .top2 .hold-ui {
  margin-left: auto;
}
.item .top2 .hold-ui + .pill,
.item .top2 .pill + .hold-ui {
  margin-left: 6px;
}
.hold-dlg {
  width: min(440px, 92vw);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(18, 32, 46, 0.35);
  color: var(--ink, #12202e);
}
.hold-dlg::backdrop {
  background: rgba(18, 32, 46, 0.45);
  backdrop-filter: blur(2px);
}
.hold-porma {
  padding: 22px;
}
.hold-porma h3 {
  font:
    600 20px 'Space Grotesk',
    Inter,
    sans-serif;
  margin: 0 0 2px;
}
.hold-cn {
  margin: 0 0 14px;
  font:
    600 13px 'IBM Plex Mono',
    monospace;
  color: var(--ink-soft, #5b6672);
}
.hold-karon {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffedd5;
  border: 1px solid #fdba74;
  font-size: 13px;
}
.hold-karon b {
  display: block;
  color: #9a3412;
  margin-bottom: 2px;
}
.hold-porma label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.hold-porma label small {
  font-weight: 400;
  color: var(--ink-soft, #5b6672);
}
.hold-porma textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line, #d9d4c7);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}
.hold-porma textarea:focus {
  outline: 2px solid var(--amber, #f2a900);
  outline-offset: 1px;
}
.hold-sayop {
  min-height: 18px;
  margin: 8px 0 4px;
  color: var(--red, #b3261e);
  font-weight: 600;
  font-size: 13px;
}
.hold-butones {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.hold-butones .btn {
  padding: 9px 14px;
  border-radius: 8px;
  font:
    600 14px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
  border: 1px solid var(--navy, #12202e);
}
.hold-butones .btn.ghost {
  background: transparent;
  color: var(--navy, #12202e);
  border-color: var(--line, #d9d4c7);
}
.hold-butones .btn.dark {
  background: var(--navy, #12202e);
  color: #fff;
}
.hold-butones .hold-buhian {
  color: #9a3412;
  border-color: #fdba74;
}
.hold-butones [hidden] {
  display: none;
}

/* ---------- menu icons ---------- */
nav.rail .nav-ico {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -4px;
  margin-right: 9px;
}
nav.rail button,
nav.rail a {
  display: flex;
  align-items: center;
}
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font:
    700 11px Inter,
    sans-serif;
  color: #fff;
  background: #c2410c;
}
.nav-badge.red {
  background: var(--red, #b3261e);
}
.nav-badge[hidden] {
  display: none;
}
.hold-ui::before {
  content: '';
  width: 6px;
  height: 8px;
  margin-right: 5px;
  flex: none;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-sizing: border-box;
}

/* ---------- field crew: the location help window and the iPhone install steps ---------- */
.loc-dlg {
  width: min(420px, 92vw);
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.4);
  color: var(--ink, #1c2233);
}
.loc-dlg::backdrop {
  background: rgba(20, 33, 61, 0.5);
  backdrop-filter: blur(2px);
}
.loc-porma {
  padding: 22px;
}
.loc-porma h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--navy, #14213d);
}
.loc-teksto p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft, #5b6275);
}
.loc-butones {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
.loc-butones .btn {
  padding: 11px 16px;
  border-radius: 10px;
  font:
    700 14.5px 'Segoe UI',
    system-ui,
    sans-serif;
  cursor: pointer;
  border: 1px solid var(--navy, #14213d);
}
.loc-butones .btn.dark {
  background: var(--navy, #14213d);
  color: var(--amber, #ffc72c);
}
.loc-butones .btn.ghost {
  background: transparent;
  color: var(--navy, #14213d);
  border-color: var(--line, #eadca8);
}

/* field crew: no PLAIN | GLASS switch (always PLAIN) */
html.field-mode #temasw,
body.field-page #temasw {
  display: none !important;
}
html.field-mode .galamiton,
body.field-page .galamiton {
  gap: 6px;
}
html.field-mode .galamiton .gal-btn,
body.field-page .galamiton .gal-btn {
  height: 30px;
  font-size: 11.5px;
  padding: 0 10px;
}

/* field crew: the one-time notice that the location is shared */
.loc-notice {
  position: fixed;
  left: 50%;
  top: calc(10px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 1000;
  width: min(440px, 94vw);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--navy, #14213d);
  color: #fff;
  font:
    600 13px/1.4 'Segoe UI',
    system-ui,
    sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.loc-notice button {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--amber, #ffc72c);
  color: var(--navy, #14213d);
  font:
    800 12.5px 'Segoe UI',
    system-ui,
    sans-serif;
  cursor: pointer;
}

/* ---------- Report a problem (isumbong.js) ---------- */
.gal-sumbong {
  background: #fff;
  color: var(--navy, #14213d);
  border-color: var(--navy, #14213d);
}
.gal-sumbong svg {
  width: 16px;
  height: 16px;
}
.gal-sumbong:hover {
  background: var(--amber, #ffc72c);
}
html.field-mode .gal-sumbong span,
body.field-page .gal-sumbong span {
  display: none;
}
.sumbong-text {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line, #eadca8);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}
.sumbong-text:focus {
  outline: 2px solid var(--amber, #ffc72c);
  outline-offset: 1px;
}
.sumbong-note {
  margin: 6px 0;
  font-size: 13px;
  color: var(--ink-soft, #5b6275);
}
.sumbong-sayop {
  min-height: 16px;
  margin: 4px 0;
  color: #9b2c1f;
  font-weight: 600;
  font-size: 13px;
}

/* the bottom-left toolbar: its buttons are stacked, so it stays narrow under the menu */
.galamiton > * {
  flex: none;
}

/* the order of the toolbar, from the bottom up (column-reverse): the look switch, then Report a problem, then Install app */
#temasw {
  order: 1;
}
.gal-sumbong {
  order: 2;
}
.gal-install {
  order: 3;
}

/* ---------- login page: the eye button must not break the pill shape of the password box ----------
   (.cfield is a row: icon + input. The wrapper of the eye button takes the place of the input, so it must fill the row
   and carry the white background itself; the input inside it is transparent.) */
.cfield .mata-balot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.74);
}
.crystal .cfield .mata-balot input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  padding-right: 46px !important;
}
.cfield .mata-btn {
  right: 8px;
}
