/* ==========================================================================
   FlowDesk Dialog Header Actions
   Varianten aus docs/Voransicht - HeaderActions-Layout (FdResizableDialog).html

   Variante 1: AuditHistory  = HTML + PDF + E-Mail + Druck + Trenner + WindowControls
   Variante 2: None          = nur WindowControls, kein Trenner
   Variante 3: Export        = PDF + E-Mail + Druck + Trenner + WindowControls
   Variante 4: SinglePdf     = PDF + Trenner + WindowControls

   Icon-Attribute werden zentral von FdHeaderActionButton gerendert.
   ========================================================================== */

.modal-content.fd-resizable {
    position: relative;
}

.fd-window-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.fd-header-actions {
    position: absolute;
    top: 10px;
    right: 116px;
    display: flex;
    gap: 6px;
    z-index: 10;
    align-items: center;
}

.fd-header-actions::after {
    content: '';
    width: 1px;
    height: 20px;
    background: var(--fd-border);
    margin-left: 6px;
}

.fd-window-control {
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--fd-surface);
    border: 1px solid var(--fd-border);
    border-radius: 6px;
    color: var(--fd-text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fd-window-control svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.fd-window-control svg *,
.fd-window-control svg path,
.fd-window-control svg rect,
.fd-window-control svg line,
.fd-window-control svg polyline,
.fd-window-control svg polygon,
.fd-window-control svg circle {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fd-window-control:hover {
    background: var(--fd-bg);
    color: var(--fd-text-primary);
    border-color: var(--fd-primary);
}

.fd-window-control:focus-visible {
    outline: 2px solid var(--fd-primary);
    outline-offset: 2px;
}

.fd-window-control:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.fd-window-control:disabled:hover {
    background: var(--fd-surface);
    color: var(--fd-text-secondary);
    border-color: var(--fd-border);
}

.fd-window-control.fd-window-control-active {
    color: var(--fd-primary);
    border-color: var(--fd-primary);
}

.fd-resizable .modal-close,
.fd-resizable .btn-close {
    display: none !important;
}
