/* Interface-local styles for admin/interfaces/firewall/style.css */

.firewall-header-row {
    margin-bottom: 8px;
}

#firewall-action-modal-validation {
    text-align: left;
}

.firewall-rule-modal-dialog .modal-body {
    padding-top: 1rem;
}

.firewall-rule-form {
    text-align: left;
}

.firewall-rule-form__tabs {
    border-bottom: 1px solid #e6eaed;
    gap: 8px;
}

.firewall-rule-form__tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #4d6675;
    font-weight: 600;
    padding: 10px 14px;
}

.firewall-rule-form__tabs .nav-link.active,
.firewall-rule-form__tabs .nav-link:hover,
.firewall-rule-form__tabs .nav-link:focus {
    color: #064f72;
    background: transparent;
    border-color: #064f72;
}

.firewall-rule-form__section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 16px;
}

.firewall-rule-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: span 12;
}

.firewall-rule-form__field label {
    font-size: 13px;
    font-weight: 600;
    color: #163245;
}

.firewall-rule-form__field--col-6 {
    grid-column: span 6;
}

.firewall-rule-form__field--full {
    grid-column: 1 / -1;
}

.firewall-rule-form__textarea {
    min-height: 120px;
}

.firewall-rule-form__textarea--tall {
    min-height: 200px;
    max-height: 400px;
    overflow-y: hidden;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.firewall-rule-form__tab-intro {
    text-align: left;
}

.firewall-rule-target-mode-field {
    margin-top: 17px;
    margin-bottom: 12px;
}

.firewall-rule-form__status-table th,
.firewall-rule-form__status-table td {
    vertical-align: top;
}

.firewall-rule-row-description {
    color: #8c9cab;
}

.firewall-rule-status-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.firewall-rule-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.firewall-rule-status-pill i {
    font-size: 12px;
}

.firewall-rule-status-pill--confirmed {
    color: #17603a;
    background: #e7f7ee;
    border-color: #bfe7cc;
}

.firewall-rule-status-pill--pending {
    color: #8a5a00;
    background: #fff4d6;
    border-color: #f3d188;
}

.firewall-rule-status-pill--partial {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fdba74;
}

.firewall-rule-status-pill--denied {
    color: #9f1239;
    background: #ffe4ea;
    border-color: #f9a8be;
}

.firewall-rule-status-pill--unknown {
    color: #475569;
    background: #eef2f7;
    border-color: #cbd5e1;
}

.firewall-rule-status-pill--awaiting-removal {
    color: #5b4a1f;
    background: #f5f0e1;
    border-color: #d9ccb0;
}

@media (max-width: 767px) {
    .firewall-rule-form__section-grid {
        grid-template-columns: 1fr;
    }

    .firewall-rule-form__field,
    .firewall-rule-form__field--col-6 {
        grid-column: 1 / -1;
    }
}
