/* =============================================================
   DZ Show Hide  —  dz-show-hide.css
   ============================================================= */

/* ---- Wrapper ---- */
.dz-sh-wrap {
    margin: 0.5em 0;
}

/* ---- Base trigger (shared by all views) ---- */
.dz-sh-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: none;
    background: transparent;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    user-select: none;
}
.dz-sh-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}
.dz-sh-trigger:hover {
    opacity: 0.82;
}
.dz-sh-trigger:active {
    transform: scale(0.97);
}

/* ---- Button variants ---- */
.dz-sh-button-blue,
.dz-sh-button-red,
.dz-sh-button-green,
.dz-sh-button-orange {
    padding: 7px 14px;
    border-radius: 4px;
    border: none;
    color: #fff !important;
    font-size: 14px;
}
.dz-sh-button-blue   { background-color: #3b82f6; }
.dz-sh-button-red    { background-color: #ef4444; }
.dz-sh-button-green  { background-color: #22c55e; }
.dz-sh-button-orange { background-color: #f97316; }

.dz-sh-button-blue:hover   { background-color: #2563eb; }
.dz-sh-button-red:hover    { background-color: #dc2626; }
.dz-sh-button-green:hover  { background-color: #16a34a; }
.dz-sh-button-orange:hover { background-color: #ea6c06; }

/* ---- Link variants ---- */
.dz-sh-link,
.dz-sh-link-inline {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dz-sh-link-list {
    display: block;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid currentColor;
}

/* ---- Icons ---- */
.dz-sh-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.dz-sh-svg {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.25s ease;
    overflow: visible;
}

/* Arrow rotates when open */
.dz-sh-trigger[aria-expanded="true"] .dz-sh-svg-arrow {
    transform: rotate(180deg);
}

/* Zoom: hide the vertical bar ("+") when open → becomes "−" */
.dz-sh-zoom-v {
    transition: opacity 0.2s ease;
}
.dz-sh-trigger[aria-expanded="true"] .dz-sh-zoom-v {
    opacity: 0;
}

/* Eye: show strike-through line when closed, hide when open */
.dz-sh-eye-line {
    transition: opacity 0.2s ease;
}
.dz-sh-trigger[aria-expanded="true"] .dz-sh-eye-line {
    opacity: 0;
}

/* ---- Collapsible content panel ---- */
.dz-sh-content {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
/* hidden attribute used for initial state; JS removes it and sets max-height */
.dz-sh-content[hidden] {
    display: block !important; /* override browser default so transition works */
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden;
}
.dz-sh-content.dz-sh-open {
    visibility: visible;
    max-height: 4000px;   /* large enough for any content */
    opacity: 1;
}

/* end */
