.alarm-rules-window
{
    display: flex;
    flex-direction: column;

    height: 100%;

    background: #111827;

    color: white;
}

.alarm-rules-form
{
    padding: 16px;

    border-bottom: 1px solid #29303d;
}

.alarm-rules-title
{
    font-size: 15px;
    font-weight: 600;

    margin-bottom: 20px;
}

.alarm-rule-row
{
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.alarm-rule-row label
{
    width: 100px;

    font-size: 13px;
}

.alarm-rule-row input,
.alarm-rule-row select
{
    flex: 1;

    height: 38px;

    background: #0f172a;

    color: white;

    border: 1px solid rgba(255,255,255,0.24);

    border-radius: 6px;

    padding: 0 10px;

    outline: none;
}

.alarm-rule-row input:focus,
.alarm-rule-row select:focus
{
    border-color: #5eead4;
}

.alarm-rule-actions
{
    display: flex;
    justify-content: flex-end;

    margin-top: 24px;
}

.alarm-rules-table
{
    flex: 1;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.alarm-rules-header
{
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        1fr
        70px;

    padding: 12px;

    background: #0f172a;

    border-bottom: 1px solid #29303d;

    color: #5eead4;

    font-size: 12px;
    font-weight: 600;
}

.alarm-rules-list
{
    flex: 1;

    overflow-y: auto;
}

.alarm-rule-item
{
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        1fr
        70px;

    align-items: center;

    min-height: 40px;

    padding: 0 12px;

    border-bottom: 1px solid #29303d;

    font-size: 12px;

    color: rgba(255,255,255,0.75);
}

.alarm-rule-item:nth-child(even)
{
    background: #0f172a;
}

.alarm-rule-delete-btn
{
    width: 28px;
    height: 28px;

    border: none;

    border-radius: 6px;

    background: transparent;

    color: #f87171;

    cursor: pointer;
}

.alarm-rule-delete-btn:hover
{
    background: rgba(248,113,113,0.15);
}