/* Report 73 - Share button and its floating panel (markup: partials/share-button.blade.php, behaviour: wm-share.js).
   The panel is absolutely positioned: opening it never moves or resizes the page. Colours from the WEBOMETRICS palette. */
.wms-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.wms-row > nav { flex: 1 1 auto; min-width: 0; }
.wms { position: relative; flex: none; margin-top: 2px; }
/* pill: label + a link-blue chip holding the share icon. Hover: the pill lifts 1px with a soft shadow, the chip brightens and
   the icon turns slightly; transforms and colours only, so nothing around the button moves. */
.wms-btn {
    display: inline-flex; align-items: center; gap: .6rem; height: 38px; padding: 0 4px 0 1rem; margin: 0;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1; color: #003366; white-space: nowrap;
    background: #fff; border: 1px solid #d5dee8; border-radius: 19px; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wms-btn__chip {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 28px;
    color: #fff; background: #1a66b8; border-radius: 14px;
    transition: background-color .2s ease;
}
.wms-btn__icon { display: block; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.wms-btn:hover { transform: translateY(-1px); border-color: #b9c8d8; box-shadow: 0 6px 16px -8px rgba(0, 51, 102, .45); }
.wms-btn:hover .wms-btn__chip, .wms-btn[aria-expanded="true"] .wms-btn__chip { background: #1f74cf; }
.wms-btn:hover .wms-btn__icon { transform: rotate(-12deg) scale(1.12); }
.wms-btn:active { transform: translateY(0); box-shadow: none; }
.wms-btn:focus-visible { outline: 2px solid #1a66b8; outline-offset: 2px; }
.wms-btn[aria-expanded="true"] { border-color: #1a66b8; }
.wms-panel {
    position: absolute; z-index: 980; top: calc(100% + 8px); inset-inline-end: 0; width: 248px; max-width: calc(100vw - 32px);
    padding: .4rem; background: #fff; border: 1px solid #dde3ea; border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(0, 32, 64, .28), 0 4px 10px rgba(0, 32, 64, .08);
    opacity: 0; transform: translateY(-4px); transition: opacity .14s ease, transform .14s ease;
}
.wms-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.wms-panel.is-open { opacity: 1; transform: none; }
.wms-item {
    display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .45rem .65rem; margin: 0;
    font: inherit; font-size: 15px; color: #0b2f55; text-align: start; text-decoration: none !important;
    background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.wms-item:hover, .wms-item:focus-visible { background: #eef3f8; color: #003366; outline: none; }
.wms-item:focus-visible { box-shadow: inset 0 0 0 2px #003366; }
.wms-item__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 7px; color: #fff; }
.wms-item__icon svg { width: 16px; height: 16px; fill: currentColor; }
.wms-sep { height: 1px; margin: .3rem .4rem; background: #edf1f5; }
.wms-status { min-height: 0; padding: 0 .65rem; font-size: 13px; color: #198754; }
.wms-status:not(:empty) { padding: .25rem .65rem .35rem; }
/* phones: only the blue chip (the label stays available to screen readers) */
@media (max-width: 575.98px) {
    .wms-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border: 0; border-radius: 20px; background: transparent; }
    .wms-btn__chip { width: 40px; height: 40px; border-radius: 20px; }
    .wms-btn:hover { box-shadow: none; }
    .wms-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .wms-btn, .wms-btn__chip, .wms-btn__icon, .wms-panel { transition: none; }
    .wms-btn:hover, .wms-btn:hover .wms-btn__icon, .wms-panel { transform: none; }
}
