.events-section .form-group {
    position: relative;
}

.events-section .form-group:focus {
    border: 3px solid#F3EEFF;
}

.events-section textarea {
    border-color: #eaecef;
    box-sizing: border-box;
    height: 100%;
    padding-right: 54px;
    resize: none;
    width: 100%;
}

.events-section textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0;
}

.events-section button.create {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    border-color: #eaecef !important;
}

.events-section.with-events button.create {
    border-radius: 0 0 5px 0;
    border-top: 0 !important;
}

.events-section.with-events textarea {
    border-radius: 0 0 5px 5px;
    border-top: 0 !important;
}

.events-section.without-events button.create {
    border-radius: 0 5px 5px 0;
}

.events-section.without-events textarea {
    border-radius: 5px;
}

.events-section.without-events .events {
    border: 0 !important;
}

.events-section .events {
    background-color: #f8f9fa;
    border-color: #eaecef !important;
    border-radius: 5px 5px 0 0;
    border-bottom: 0 !important;
}

.events-section .event {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 5px;
}

.events-section .toggle-status-container {
    border-top: 1px solid #e8ecee;
}

.events-section .toggle-status {
    border-radius: 1em 0 0em 1em;
    padding: 0.5em 1em;
    background-color: white;
    border: 1px solid #e8ecee;
    border-top: 0;
    display: inline-block;
    border-bottom: 0;
    border-right: 0;
}

.events-section .toggle-status .custom-control {
    min-height: 0;
}

.events-section .toggle-status label {
    user-select: none;
}

.events-section .toggle-status .custom-switch .custom-control-label {
    padding: 0;
}

.events-section .toggle-status .custom-switch .custom-control-label::before,
.events-section .toggle-status .custom-switch .custom-control-label::after {
    margin-top: -2px;
}

.events-section .toggle-status .custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: #6c757d;
    background-color: #6c757d;
}

.events-section .btn-expand-container {
    font-size: 80%;
}

.events-section .btn-expand {
    background-color: #f8f9fa;
    border: 1px solid #eaecef;
    border-top: none;
    color: #6c757d;
    border-radius: 0 0 5px 5px;
    font-size: 80%;
    padding-left: 2.5em;
    padding-right: 2.5em;
}

.events-section .event-status .badge {
    font-weight: normal
}

.events-section .event-status .badge-ignored {
    background-color: #ccc;
}

.events-section .event-status .badge-new {
    background-color: #8fafc7;
}

.events-section .event-status .badge-priority {
    background-color: #ffc107
}

.events-section .event-status .badge-investigate {
    background-color: #666;
}

.events-section .event-status .badge-alerts {
    background-color: #dc3545;
}

.events-section .event-status .badge-open {
    background-color: #8fafc7;
}

/* Tab form styles */
.tab-form .tab-button.active {
    border-color: #10b981 !important;
    color: #059669 !important;
}
