/* Menú administrativo compacto de la intranet. */
.koe-admin-country{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 8px 0 14px;
  border:1px solid #c4b5fd;
  border-radius:999px;
  background:#fff;
  color:#5b21b6;
  box-shadow:0 8px 24px rgba(76,29,149,.1);
}
.koe-admin-country[hidden]{
  display:none;
}
.koe-admin-country label{
  margin:0;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
}
.koe-admin-country select{
  max-width:150px;
  min-height:30px;
  padding:0 28px 0 9px;
  border:0;
  border-radius:999px;
  background-color:#f5f3ff;
  color:#4c1d95;
  font-size:.79rem;
  font-weight:700;
  cursor:pointer;
}
.koe-admin-country select:focus-visible{
  outline:3px solid rgba(124,58,237,.28);
  outline-offset:2px;
}
.koe-admin-dropdown-menu{
  width:min(760px,calc(100vw - 32px));
  min-width:0;
  max-height:min(76vh,560px);
  padding:14px;
  overflow-x:hidden;
  overflow-y:auto;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.koe-admin-dropdown.is-open .koe-admin-dropdown-menu{
  display:grid;
}
.koe-admin-menu-item{
  min-width:0;
  min-height:68px;
  padding:12px 13px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
  color:#334155;
  font-size:.79rem;
  font-weight:700;
  line-height:1.25;
  box-shadow:0 5px 14px rgba(15,23,42,.045);
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease;
}
.koe-admin-menu-item:hover{
  transform:translateY(-2px);
  border-color:#c4b5fd;
  background:#f5f3ff;
  color:#6d28d9;
  box-shadow:0 10px 22px rgba(76,29,149,.1);
}
.koe-admin-menu-item.is-active{
  border-color:#a78bfa;
  background:#ede9fe;
  color:#6d28d9;
  box-shadow:0 8px 20px rgba(109,40,217,.12);
}
.koe-admin-menu-item svg,
.koe-admin-menu-item>.koe-intranet-icon,
.koe-admin-menu-item>i{
  width:22px;
  height:22px;
  flex:0 0 22px;
  color:#7c3aed;
}
.koe-admin-menu-item>i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.koe-admin-menu-item:nth-child(3n+2) svg,
.koe-admin-menu-item:nth-child(3n+2)>.koe-intranet-icon,
.koe-admin-menu-item:nth-child(3n+2)>i{
  color:#0a66c2;
}
.koe-admin-menu-item:nth-child(3n) svg,
.koe-admin-menu-item:nth-child(3n)>.koe-intranet-icon,
.koe-admin-menu-item:nth-child(3n)>i{
  color:#0f9f68;
}
@media (max-width:1100px){
  .koe-admin-dropdown-menu{
    width:min(540px,calc(100vw - 24px));
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:680px){
  .koe-admin-country{
    padding-left:10px;
  }
  .koe-admin-country label{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  .koe-admin-country select{
    width:88px;
    min-width:0;
    max-width:88px;
  }
  .koe-admin-dropdown-label,
  .koe-view-toggle span{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  .koe-admin-dropdown-btn,
  .koe-view-toggle{
    width:38px;
    padding:0;
  }
  .koe-admin-dropdown-btn .chevron-icon{
    display:none;
  }
  .koe-admin-dropdown-menu{
    right:-10px;
    width:min(330px,calc(100vw - 20px));
    max-height:72vh;
    grid-template-columns:1fr;
    gap:2px;
  }
  .koe-admin-menu-item{
    min-height:56px;
    padding:10px 12px;
  }
}
/* Keep controls from shrinking into neighbouring navigation links. */
.koe-topbar { box-sizing:border-box; gap:14px; }
.koe-topbar > :not(.koe-topbar__links) { flex-shrink:0; }
.koe-nav-pill { flex-shrink:0; }
.koe-topbar :is(a,button,select):focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
@media (max-width:1450px) {
  .koe-topbar { padding:10px 18px; gap:10px; }
  .koe-topbar__links { gap:6px; }
  .koe-nav-pill { padding:0 11px; font-size:.8rem; gap:6px; }
  .koe-admin-country { gap:4px; padding-left:9px; }
  .koe-admin-country select { max-width:115px; }
  .koe-view-toggle { padding:0 10px; }
}
@media (max-width:1200px) {
  .koe-topbar-wrap { position:sticky; padding:6px 10px; }
  .koe-topbar { flex-wrap:wrap; gap:8px; padding:9px 12px; }
  .koe-topbar__brand { margin-right:auto; }
  .koe-topbar__brand img { height:30px; }
  .koe-topbar__links {
    order:10; flex:0 0 100%; width:100%; box-sizing:border-box;
    margin:0; padding:5px 2px; gap:6px;
    overflow-x:auto; overflow-y:hidden; scrollbar-width:thin;
  }
  .koe-nav-pill { min-height:36px; }
  .koe-admin-dropdown-menu {
    position:fixed; top:calc(var(--koe-topbar-bottom, 110px) + 6px);
    right:16px; width:min(660px,calc(100vw - 32px));
    max-height:calc(100dvh - var(--koe-topbar-bottom, 110px) - 22px);
    grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:9px;
  }
  .koe-admin-menu-item { min-height:48px; padding:8px 10px; border-radius:10px; font-size:.76rem; }
}
@media (max-width:680px) {
  .koe-topbar { gap:6px; padding:8px; }
  .koe-topbar__brand img { height:30px; }
  .koe-admin-country { padding:0 3px; min-height:36px; }
  .koe-admin-country select { width:80px; max-width:80px; padding-left:5px; font-size:.74rem; }
  .koe-admin-dropdown-btn, .koe-view-toggle, .koe-user-pill { width:36px; height:36px; min-height:36px; }
  .koe-admin-dropdown-menu { right:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .koe-admin-menu-item { gap:7px; overflow-wrap:anywhere; }
  .koe-admin-menu-item svg, .koe-admin-menu-item>.koe-intranet-icon, .koe-admin-menu-item>i { width:18px; height:18px; flex-basis:18px; }
}
/* Mobile navigation disclosure. */
.koe-nav-dots { display:none; }
@media (max-width:680px) {
  .koe-nav-dots {
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; padding:0; border:1px solid #dbe3ef;
    border-radius:50%; background:#fff; color:#123baf; cursor:pointer;
    font-size:18px; font-weight:800; letter-spacing:1px;
  }
  .koe-nav-dots[aria-expanded="true"] { background:#eef3ff; border-color:#2563eb; }
  .koe-topbar__links {
    display:none; position:fixed; left:16px; right:16px;
    top:calc(var(--koe-topbar-bottom, 60px) + 6px);
    width:auto; margin:0; padding:10px; border:1px solid #e2e8f0;
    border-radius:14px; background:#fff; box-shadow:0 20px 50px rgba(15,23,42,.18);
    max-height:calc(100dvh - var(--koe-topbar-bottom, 60px) - 22px);
    overflow-y:auto; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
  }
  .koe-topbar__links.is-open { display:grid; }
  .koe-topbar__links .koe-nav-pill { min-height:44px; border-radius:10px; justify-content:flex-start; }
}
@media (max-width:360px) {
  .koe-topbar { gap:4px; }
  .koe-topbar__brand img { height:30px; }
  .koe-admin-country select { width:64px; max-width:64px; }
}

.koe-topbar__brand img { margin:10px; }
.koe-admin-menu-item.koe-admin-birthday-reset{width:auto;max-width:calc(100% - 16px);min-height:30px;margin:6px 8px 2px;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:#526485;font:500 11px/1.4 Poppins,Arial,sans-serif;text-align:left;cursor:pointer}
.koe-admin-menu-item.koe-admin-birthday-reset:hover{background:#edf4ff;color:#124da8}
.koe-admin-menu-item.koe-admin-birthday-reset:focus-visible{outline:2px solid #1559c7;outline-offset:-2px}

/* Compact administration: public web, intranet and shared configuration. */
.koe-admin-dropdown.is-open #koeAdminMenu{display:block}
#koeAdminMenu{width:min(480px,calc(100vw - 32px));padding:12px;max-height:min(76dvh,650px)}
#koeAdminMenu .koe-admin-tabs{display:flex;gap:4px;background:#f1f5fb;padding:4px;border-radius:10px;margin-bottom:10px}
.koe-admin-tabs button{flex:1;min-width:0;min-height:38px;border:0;border-radius:7px;background:transparent;color:#52617b;font:600 12px/1.3 Poppins,Arial,sans-serif;cursor:pointer;padding:7px}
.koe-admin-tabs button[aria-selected="true"]{background:#fff;color:#0736bf;box-shadow:0 2px 5px #10225012}
.koe-admin-search{display:block;margin:0 0 10px}
.koe-admin-search input{width:100%;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:8px;min-height:38px;padding:8px 11px;background:#fff;color:#102250;font:400 12px Poppins,Arial,sans-serif}
#koeAdminMenu .koe-admin-menu-group{padding:0;margin:0;border:0}
#koeAdminMenu .koe-admin-menu-group-items{display:flex;flex-direction:column;gap:2px}
#koeAdminMenu .koe-admin-menu-item{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 10px;margin:0;max-width:100%;border:0;border-radius:7px;background:transparent;box-shadow:none;transform:none;color:#334155;font-size:12px;font-weight:500;line-height:1.5;text-decoration:none}
#koeAdminMenu .koe-admin-menu-item:hover{background:#f0f4ff;color:#0736bf;box-shadow:none;transform:none}
#koeAdminMenu .koe-admin-menu-item.is-active{background:#eaf0ff;color:#0736bf;font-weight:700}
#koeAdminMenu .koe-admin-menu-item :is(svg,i,.koe-intranet-icon){width:18px;height:18px;flex:0 0 18px;font-size:15px}
#koeAdminMenu .koe-admin-menu-heading{display:none}
#koeAdminMenu.is-searching .koe-admin-menu-heading{display:block;margin:12px 10px 6px}
#koeAdminMenu .koe-admin-menu-item--portadas{display:flex;gap:10px}
.koe-admin-menu-item--portadas>span{min-width:0}
.koe-admin-menu-item--portadas small{display:block;font-size:10px;line-height:1.4;color:#61718c;font-weight:400;margin-top:1px}
.koe-admin-tools{border-top:1px solid #e3e9f1;margin-top:8px;padding-top:8px}
.koe-admin-tools summary{cursor:pointer;padding:8px 10px;color:#61718c;font:500 11px Poppins,Arial,sans-serif}
.koe-admin-search-empty{margin:16px 10px;color:#61718c;font:400 12px Poppins,Arial,sans-serif}
#koeAdminMenu [hidden]{display:none!important}
@media(max-width:680px){#koeAdminMenu{width:calc(100vw - 32px);max-height:calc(100dvh - var(--koe-topbar-bottom,110px) - 22px)}#koeAdminMenu .koe-admin-menu-item{min-height:44px}.koe-admin-tabs button{font-size:11px}}

/* Related tools share a heading; empty permission-filtered groups disappear. */
.koe-admin-dropdown-menu .koe-admin-menu-group{grid-column:1/-1;min-width:0;padding:0;margin:0}
.koe-admin-menu-group[hidden]{display:none!important}
.koe-admin-menu-heading{margin:5px 2px 9px;padding:0;color:#52617b;font:800 11px/1.4 Poppins,Arial,sans-serif;letter-spacing:.065em;text-transform:uppercase}
.koe-admin-menu-group+.koe-admin-menu-group{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:4px}
.koe-admin-menu-group-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.koe-admin-menu-group-items .koe-admin-birthday-reset{grid-column:1/-1;margin:0;max-width:100%}
@media(max-width:1100px){.koe-admin-menu-group-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.koe-admin-menu-group-items{grid-template-columns:1fr;gap:6px}.koe-admin-menu-heading{margin-top:2px}.koe-admin-menu-group+.koe-admin-menu-group{padding-top:12px}}
