/* =========================================================
   FILE: /public_html/assets/css/modules/pdf/image.css
   ROLE: Root stylesheet entry for the new image subsystem
   PURPOSE: Owns only ordered imports for isolated image styles
   ========================================================= */
@import url("./image-edit/image-core.css");
@import url("./image-edit/image-flow.css");
@import url("./image-edit/image-overlay.css");
@import url("./image-edit/image-toolbar.css");
@import url("./image-edit/image-crop.css");
@import url("./image-edit/image-caption.css");

/* -------------------------
   Toolbar Image mini menu
------------------------- */
.ipdf-imgmenu{
  position: fixed;
  z-index: 100050;
  min-width: 170px;
  width: max-content;
  max-width: min(220px, calc(100vw - 24px));
  padding: var(--ipdf-menu-shell-padding, 6px);
  background: var(--ipdf-menu-shell-bg, #ffffff);
  border: 1px solid var(--ipdf-menu-shell-border, rgba(32, 32, 32, 0.12));
  border-radius: var(--ipdf-menu-shell-radius, 2px);
  box-shadow: var(--ipdf-menu-shell-shadow, 0 10px 22px rgba(15, 23, 42, 0.08));
  font: 400 13px/1.25 system-ui,-apple-system,Segoe UI,Arial;
}

.ipdf-imgmenu::before{
  display: none;
  content: none;
}

.ipdf-imgmenu-row{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ipdf-imgmenu-urlrow{
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(32, 32, 32, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.ipdf-imgmenu-urlrow[hidden]{
  display: none !important;
}

.ipdf-imgmenu-btn{
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-radius: var(--ipdf-menu-row-radius, 2px);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--ipdf-menu-row-ink, #202020);
  font: 400 13px/1.2 system-ui,-apple-system,Segoe UI,Arial;
  white-space: nowrap;
  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease;
}

.ipdf-imgmenu-btn:hover{
  background: var(--ipdf-menu-row-hover, rgb(243, 244, 247));
  border-color: transparent;
  color: var(--ipdf-menu-row-ink, #202020);
}

.ipdf-imgmenu-btn.is-primary{
  min-width: 72px;
  background: #2e1065;
  color: #ffffff;
  border-color: #2e1065;
  justify-content: center;
  font-weight: 400;
}

.ipdf-imgmenu-btn.is-primary:hover{
  background: #4c1d95;
  border-color: #4c1d95;
  color: #ffffff;
}

.ipdf-imgmenu .material-symbols-outlined.ipdf-imgmenu-icon{
  font-size: 16px;
  line-height: 1;
}

.ipdf-imgmenu-label{
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.ipdf-imgmenu-input{
  min-width: 0;
  min-height: 32px;
  border-radius: var(--ipdf-menu-row-radius, 2px);
  border: 1px solid var(--ipdf-menu-shell-border, rgba(32, 32, 32, 0.12));
  padding: 0 var(--ipdf-menu-row-pad-x, 10px);
  outline: none;
  background: #ffffff;
  font-size: 13px;
}

.ipdf-imgmenu-input:focus{
  border-color: rgba(32, 32, 32, 0.22);
  box-shadow: none;
}
