.policies-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

.policy-card {
    margin: 0 10px 10px 0;
    padding: 20px 18px;
    color: #1A237E;
    background-color: #D9FDFE;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease-in-out;
}

.policy-header {
    display: flex;
    justify-content: space-between;
}

.policy-title {
    font-size: 18px;
    font-weight: bold;
}

.policy-date {
    padding: 5px 10px;
    background-color: #1AB9D2;
    color: #FFFFFF;
    border-radius: 15px;
}

.policy-date.expire-date {
    background-color: #C60B0B;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
}

.policy-body{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formula {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 5px 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease-in-out;
}

.formula-title {
    font-size: 16px;
    font-weight: bold;
}


.roles {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 5px 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease-in-out;
}

.policy-title {
    font-size: 16px;
    font-weight: bold;
}

.role-table {
    border-collapse: separate;
    border-spacing: 5px 10px;
    width: 100%;
}

.role-table,
.role-table th,
.role-table td {
    border: none !important;
}

.role-table-tr {
    margin: 5px;
}

.role-table-td {
    color: rgb(26, 35, 126) !important;
}

.role-coefficient {
    display: block;
    text-align: center;
    background-color: #27DBE1 !important;
    padding: 10px;
    border-radius: 15px !important;
    color: white;

}

.role-paymentRule {
    background-color: #6C7EE1 !important;
    text-align: center;
    color: white !important;
    border-radius: 15px;
}

/*policy modal*/
.div-policy-modal {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 20px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease-in-out;
}

.div-policy-header {
    display: flex;
    justify-content: space-between;
}

#policyRole-table,
#policyRole-table th,
#policyRole-table td {
    border: none !important;
}

.tef-table-th {
    color: #1A237E !important;
    font-size: 1rem;
}

.btn-modal-create,
.btn-modal-save,
.btn-modal-close {
    background-color: #A57EFB;
    width: 150px;
    height: 40px;
    border-radius: 10px;
    color: white;
    border: none;
}

.btn-modal-close {
    background-color: #6C7EE1;
}

.button-policy {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border: none;
    height: 1.5rem;
    background: linear-gradient(90deg, #6C7EE1 20%, #27DBE1 100%);
    padding: 15px;
    border-radius: 10px;
}

.button-policy span {
    color: white;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

.formula-text{
    white-space: nowrap;
    background-color: #E9ECFF;
    color: #1A237E;
    border-radius: 15px;

}

.formula-text-variable{
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 10px;
    margin: 5px;
}

select.form-select-sm {
    min-width: 250px;
    white-space: normal;
    text-wrap: wrap;
}

select.form-select-sm option {
    white-space: normal !important;
    word-break: break-word;
    padding: 5px 10px;
}


@media (max-width: 575.98px) {
    .policies-wrapper {
        grid-template-columns: 1fr;

    }

}

@media (max-width: 768px) {
    .policies-wrapper {
        grid-template-columns: 1fr;

    }
}

@media (max-width: 992px) {
    .policies-wrapper {
        grid-template-columns: 1fr;

    }
}

@media (min-width: 1200px) {

}
