/**
 * Kapela — Style : Menus déroulants, fenêtres flottantes et affichage mobile
 * Auteur : Jacks Ngalangala
 */

/* Menus déroulants et fenêtres flottantes */
.pop {
  position: absolute;
  z-index: 40;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-pop);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 240px;
}
.pop.pad {
  padding: 16px;
  gap: 10px;
  width: 300px;
}
.pi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-ui);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.pi:hover {
  background: var(--line2);
}
.pi.on {
  background: var(--dark);
  color: var(--dark-t);
}
.ph {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mobile */
.mhead,
.mtabs,
.msheet {
  display: none;
}
@media (max-width: 860px) {
  .app {
    flex-direction: column !important;
  }
  .side,
  .top {
    display: none !important;
  }
  .mhead {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--surf);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 15;
  }
  .mhead .est {
    margin-left: auto;
    text-align: right;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
  }
  .mhead .est .n {
    font-size: 14px;
    font-weight: 700;
  }
  .mhead .est .s {
    font-size: 12px;
    color: var(--muted);
  }
  .mtabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: var(--surf);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mt {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0 2px;
  }
  .mt.on {
    color: var(--ink);
  }
  .mt.on svg {
    color: var(--acc);
  }
  .msheet {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.35);
    align-items: flex-end;
  }
  .msheet > div {
    background: var(--surf);
    width: 100%;
    border-radius: var(--r-pop) var(--r-pop) 0 0;
    padding: 18px 16px 90px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 85vh;
    overflow-y: auto;
  }
  .mgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mgi {
    min-height: 80px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px;
    background: var(--bg);
    cursor: pointer;
  }
  .mgi.on {
    background: var(--dark);
    color: var(--dark-t);
    border-color: var(--dark);
  }
  .page {
    padding: 18px 16px 96px;
    gap: 18px;
  }
}
