/* Screen-only interaction layer. Never controls hidden/disabled states or printed GMP content. */
@media screen {
  :root {
    --vp-action-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23173447' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-save: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h12l4 4v14H3V3h2zm2 0v6h10V3M7 21v-7h10v7' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-save-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h12l4 4v14H3V3h2zm2 0v6h10V3M7 21v-7h10v7' fill='none' stroke='%23173447' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3v18h17M8 16v-5m5 5V6m5 10V9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --vp-action-chart-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3v18h17M8 16v-5m5 5V6m5 10V9' fill='none' stroke='%23173447' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --vp-action-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-download-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5' fill='none' stroke='%23173447' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3zM3 6l9 7 9-7' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
    --vp-action-mail-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3zM3 6l9 7 9-7' fill='none' stroke='%23173447' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  :is(.content,dialog,.modal,.topbar) .btn,
  :is(.workspace,.collabbar,.topbar,dialog,.startup-card) .button {
    border-radius: 11px;
    line-height: 1.4;
    font-weight: 700;
  }
  body.authenticated .btn.vp-action-prominent,
  body .button.vp-action-prominent {
    min-height: 47px;
    max-width: 100%;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(130deg,var(--blue),var(--navy-2,var(--navy)));
    box-shadow: 0 4px 10px #173b5b22, inset 0 1px 0 #ffffff35;
    font-size: calc(13px * var(--ui-scale,1));
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap:break-word;
  }
  body .btn.success.vp-action-prominent {
    background: linear-gradient(130deg,var(--green,#16784a),#105d39);
    color: #fff;
  }
  .vp-action-prominent::before {
    content: "";
    display: inline-block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    vertical-align: -4px;
    /* Imagen de fondo en lugar de máscara: en algunos equipos (Chrome en Android y PC) el ícono con máscara
       parpadeaba al escribir en los formularios, porque el navegador lo volvía a componer con cada cambio. */
    background: var(--vp-action-icon,var(--vp-action-arrow)) center / contain no-repeat;
  }
  .button.vp-action-prominent::before { margin-right: 8px; }
  .vp-action-prominent[data-vp-action="create"]::before { content: none; }
  .vp-action-prominent[data-vp-action="save"] { --vp-action-icon: var(--vp-action-save); }
  .vp-action-prominent[data-vp-action="analyze"] { --vp-action-icon: var(--vp-action-chart); }
  .vp-action-prominent[data-vp-action="export"] { --vp-action-icon: var(--vp-action-download); }
  .vp-action-prominent[data-vp-action="mail"] { --vp-action-icon: var(--vp-action-mail); }
  .vp-action-prominent[data-vp-action="upload"] { --vp-action-icon: var(--vp-action-download); }
  .vp-action-prominent[data-vp-action="upload"]::before { transform: rotate(180deg); }
  body :is(.btn,.button).vp-action-prominent:disabled,
  body :is(.btn,.button).vp-action-prominent[aria-disabled="true"] { box-shadow: none; }
  body :is(.btn,.button).vp-action-prominent:hover:not(:disabled):not([aria-disabled="true"]) {
    box-shadow: 0 5px 14px #173b5b30, inset 0 1px 0 #ffffff4a;
    filter: brightness(1.035);
  }
  :is(.btn,.button).secondary:not(.vp-action-prominent), .button.ghost {
    border-color: color-mix(in srgb,var(--navy) 32%,var(--paper,#fff));
  }
  :is(button,a,label.btn).vp-action-prominent:focus-visible,
  .button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
  }
  /* Existing upload controls keep the native picker, restrictions and drop handlers. */
  .vp-file-drop {
    padding: 14px 16px;
    border-width: 2px;
    border-radius: 14px;
    border-color: color-mix(in srgb,var(--blue) 48%,#fff);
    background: color-mix(in srgb,var(--blue) 5%,#fff);
    color: var(--navy);
  }
  .vp-file-drop .vp-file-drop-button { min-height: 52px; }
  .vp-file-drop-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    color: #fff;
    background: var(--blue);
  }
  .vp-file-drop-copy strong { color: var(--navy); font-size: calc(14px * var(--ui-scale,1)); }
  .vp-file-drop-hint { margin-left: 51px; }
  .vp-file-drop:focus-within, .vp-file-drop.vp-file-drop-over {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px color-mix(in srgb,var(--blue) 14%,transparent);
  }
  .vp-file-drop .vp-file-drop-button:focus-visible { outline-color: var(--navy); }
}
@media screen and (hover: hover) and (pointer: fine) {
  :is(.btn,.button):not(.danger):not(.orange):not(:disabled):not([aria-disabled="true"]):hover { border-color: var(--blue); }
  .vp-file-drop:hover { border-color: var(--blue); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  :is(.btn,.button,.vp-file-drop-button,.med-tab,.ari-tab) {
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
  }
  /* Opacity only: transformed module containers would alter fixed dialogs and sticky toolbars. */
  .section.active { animation: vp-module-reveal .28s ease-out; }
  .section.active > .vp-module-header .vp-module-icon { animation: vp-module-icon-reveal .34s ease-out; }
  #appShell:not([hidden]) > .workspace { animation: vp-module-reveal .2s ease-out; }
  .med-shell :is(#medProductCard,#medAttributeEditor,#medResults):not([hidden]) { animation: vp-module-reveal .18s ease-out; }
  dialog[open], .med-dialog:not([hidden]) .med-dialog-card { animation: vp-dialog-reveal .15s ease-out; }
  @keyframes vp-module-reveal { from { opacity: .75; } to { opacity: 1; } }
  @keyframes vp-dialog-reveal { from { opacity: .85; } to { opacity: 1; } }
  @keyframes vp-module-icon-reveal { from { opacity:.55; } to { opacity:1; } }
}
@media screen and (prefers-reduced-motion: reduce) {
  :is(.btn,.button,.vp-file-drop,.vp-file-drop-button,.med-tab,.ari-tab),
  .section.active, .section.active > .vp-module-header .vp-module-icon, #appShell > .workspace, dialog[open], .med-dialog .med-dialog-card {
    animation: none !important;
    transition: none !important;
  }
  :is(.btn,.button):active, :is(.btn,.button):hover { transform: none !important; }
}
@media screen and (max-width: 560px) {
  body :is(.btn,.button).vp-action-prominent { padding: 11px 14px; }
  .vp-file-drop { padding: 12px; }
  .vp-file-drop-hint { margin-left: 0; }
}

@media screen {
 body.vp-workspace.authenticated .content .section .btn.vp-action-prominent[data-vp-action="create"],
 body.vp-workspace :is(dialog,.modal,.med-dialog) .btn.vp-action-prominent[data-vp-action="create"] {
  background:color-mix(in srgb,var(--module-accent,var(--blue,#2676b8)) 65%,#102335) !important;
  color:#fff !important;border:2px solid var(--module-accent,var(--blue,#2676b8));
  box-shadow:0 4px 12px color-mix(in srgb,var(--module-accent,var(--blue,#2676b8)) 30%,transparent);
 }
 .ari-import-rows {max-height:48vh;overflow:auto;border:1px solid #abbcc7;padding:12px;border-radius:12px;}
 .ari-import-rows details {padding:10px;border-bottom:1px solid #d3dfe5;}
 .ari-import-rows summary {font-weight:700;cursor:pointer;}
 #vpFollowupEntryDialog .matrix-head {position:relative;padding-right:52px;}
 #vpFollowupEntryDialog .vp-pending-close {position:absolute;top:0;right:0;font-size:24px;min-width:42px;}
}
