.af-bni-form-wrapper {
    max-width: 420px;
    margin: auto;
    padding: 20px;
    font-family: system-ui, sans-serif;
}

#af-bni-form label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
}

#af-bni-form input,
#af-bni-form select,
#af-bni-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 5px;
    font-family: "Inter", Sans-serif !important;
}

#af-bni-form input[type=date] {
    width: auto !important;
}

#af-bni-form button {
    margin-top: 25px;
    background: #b50000;
    color: #fff;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 14px;
    font-size: 16px;
}

.type-fields {
    display: none;
}

.af-bni-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.type-btn {
    background: #eeeeee !important;          /* 👈 grau */
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #2e2e2e !important;
}

.type-btn .icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.5;
}

.type-btn .label {
    font-size: 14px;
    font-weight: 600;
}


.type-btn.active {
    background: #b50000 !important;          /* 🔴 nur aktiv */
    color: #ffffff !important;
    border-color: #b50000;
    box-shadow: 0 6px 14px rgba(181, 0, 0, 0.25);
}

.type-btn.active .icon {
    opacity: 1;
}


.af-bni-type-selector.has-selection .type-btn:not(.active) {
    background: #f3f3f3;
    color: #aaa;
}


/* Touch Feedback */
.type-btn:active {
    transform: scale(0.97);
}

.af-bni-form-wrapper button[type=submit] {
    cursor: pointer;
}

.af-bni-form-wrapper button[type=submit]:hover {
    background-color: green !important;
}

.af-bni-table-wrapper {
    margin-top: 20px;
}

.af-bni-filter select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.af-bni-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.af-bni-table th,
.af-bni-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.af-bni-table th {
    font-weight: 600;
    background: #f7f7f7;
}


.af-bni-filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 20px;
}


.af-bni-filter-grid button {
    background: #b50000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
}

.af-bni-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.af-bni-stats .stat {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.af-bni-stats .label {
    font-size: 13px;
    color: #666;
    display: block;
}

.af-bni-stats .value {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
    display: block;
}

.af-bni-locked {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.af-bni-filter-grid select,
.af-bni-filter-grid input[type="date"],
.af-bni-filter-grid button {
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    box-sizing: border-box;
}

.af-bni-filter-grid select,
.af-bni-filter-grid input[type="date"] {
    background: #f4f4f4;
    border: 1px solid #ddd;
    color: #333;
}

.af-bni-filter-grid button {
    background: #b50000;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.af-bni-filter-grid input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}

.af-bni-filter-grid select:focus,
.af-bni-filter-grid input[type="date"]:focus {
    outline: none;
    border-color: #b50000;
    background: #fff;
}
