﻿body {
}


/* GridView in VertragAuswahl.aspx */
.gv-vertraege {
    width: 100%;
    border: 1px solid #d1d5db;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1.5rem;
}

    .gv-vertraege th,
    .gv-vertraege td {
        text-align: left;
        padding-left: 12px;
        padding-right: 12px;
    }

    .gv-vertraege th {
        padding-top: 14px;
        padding-bottom: 14px;
        background-color: #f3f4f6;
        color: #374151;
        font-weight: 600;
        font-size: 1.7rem;
    }

    .gv-vertraege td {
        /*padding-top: 2px;*/
        /*padding-bottom: 2px;*/
        vertical-align: middle;
        color: #374151;
        
    }


    /* Hover (dezent) */
    .gv-vertraege tr:hover {
        background-color: #f9fafb;
    }

    .gv-vertraege .mwf-button:not(.mwf-button--cancel) {
        height: auto;
        width: auto;
        min-width: 160px;
        padding: 0.55rem 1.2rem; /* größer & angenehmer */
        font-size: 1.6rem; /* normale Dialoggröße */
        font-weight: 400;
        border-radius: 9999px; /* voller Halbkreis / Pill */
        line-height: 1.25;
    }

    /* Alternative Back-Variante mit dunklem Hintergrund */
    .gv-vertraege .mwf-button.mwf-button--back-alt {
        background: #231647;
    }

    .gv-vertraege .mwf-button.mwf-button--back-alt:hover,
    .gv-vertraege .mwf-button.mwf-button--back-alt:focus {
        background: #231647;
    }



.gv-vertraege {
    max-height: 70vh;
    overflow-y: auto;
}


/* Spaltenbreiten */
.col-kennzeichen {
    width: 120px;
    min-width: 80px;
}

.col-status {
    width: 120px;
    min-width: 80px;
}

.col-action {
    width: auto;
}

/* Textausrichtung */
.align-left {
    text-align: left;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start; /* ⬅ statt center */
}

/* Mobile Feinschliff */
@media (max-width: 768px) {

    .gv-vertraege thead {
        display: none;
    }

    .gv-vertraege,
    .gv-vertraege tbody,
    .gv-vertraege tr,
    .gv-vertraege td {
        display: block;
        width: 100%;
    }

        .gv-vertraege tr {
            background: #fff;
            margin-bottom: 16px;
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,.08);
        }

        .gv-vertraege td > [data-label] {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
        }

            .gv-vertraege td > [data-label]::before {
                content: attr(data-label);
                font-weight: 600;
                color: #555;
                margin-right: 12px;
                white-space: nowrap;
            }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-vertrag {
        width: 100%;
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

/* Popup selbst */
.popup {
    min-width: 320px;
    max-width: 400px;
    padding: 20px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    /* sichtbar */
    .popup.show {
        opacity: 1;
        transform: scale(1);
    }

    /* Typen */
    .popup.info {
        background: #ffffff;
        color: #1f2937;
        border-top: 6px solid #c5281c; /* Generali-Rot */
    }

    .popup.success {
        background: #e6f4ea;
        color: #0f5132;
        border-top: 6px solid #198754;
    }

    .popup.error {
        background: #fdecea;
        color: #842029;
        border-top: 6px solid #dc3545;
    }

.hidden {
    display: none;
}

