:root {
    --redmain: #df3633;
    --reddark: #bd2f2c;
    --redwhite: #ec504e;
    --bluetitle: #4640de;
    --widthAlert: 400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p {
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
input[type="file"] {
    height: auto;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group {
    flex-wrap: nowrap !important;
}
/* table */
table.table {
    min-height: 250px;
}

table.table tr th {
    text-align: center;
}
table.table tr td {
    text-align: center;
    vertical-align: middle;
}
table.table-sm {
    min-height: auto;
}

/* sizes */
.width-200 {
    width: 200px;
}

/* titles */
.generalTitle {
    font-size: 2.3rem;
    font-weight: 659;
}
.title {
    color: var(--reddark);
    font-weight: 700;
}
.currencyStyle {
    color: var(--reddark);
    font-size: 1.8rem;
    font-weight: 800;
    font-size: 14px;
}
.yes_no_radio {
    display: none;
}

.yes_no_radio:checked + label {
    background-color: #007bff;
    color: #fff;
}
.lowkey_text {
    color: #777;
    font-weight: 300;
    font-size: 12px;
}

.background_th,
[id^="quote_25_down_"],
[id*=" quote_25_down_"] {
    background-color: #457be7 !important;
}

/* forms */
.section_title {
    color: black;
    font-weight: 600;
    font-size: 1.35rem;
}

.subsection_title {
    font-size: 1.3rem;
    color: black;
    font-weight: 600;
}
.subsection_title svg {
    width: 10;
    height: 10;
    color: yellow;
}
.required::before {
    content: "*";
    color: red;
    margin-right: 5px;
}
.btn_alter {
    font-weight: 400;
    background-color: #474747;
    width: 100px;
    height: 35px;
    border: 2px solid rgb(88 88 88);
    color: white;
    border-radius: 3.6px;
    transition: all 0.15s ease-in;
}
.btn_alter:hover {
    box-shadow: 1px 1px 6px rgb(154, 154, 154);
    border: 2px solid rgb(118, 118, 118);
    background-color: rgb(101, 101, 101);
}
.btn_alter:disabled {
    box-shadow: 1px 1px 6px rgb(154, 154, 154);
    background-color: grey;
    border: 2px solid rgb(88 88 88);
}
.btn_save_form {
    font-weight: 400;
    background-color: var(--redmain);
    width: 100px;
    height: 35px;
    border: 2px solid rgb(238, 87, 87);
    color: white;
    border-radius: 3.6px;
    transition: all 0.15s ease-in;
}
.btn_save_form.green {
    background-color: rgb(10 159 26 / 98%);
    border: 2px solid rgb(66 214 74);
}

.btn_save_form:hover {
    box-shadow: 1px 1px 6px rgb(154, 154, 154);
    background-color: var(--reddark);
}
.btn_save_form.green:hover {
    box-shadow: 1px 1px 6px rgb(154, 154, 154);
    background-color: rgba(2, 113, 13, 0.98);
}
.btn_save_form:disabled {
    box-shadow: 1px 1px 6px rgb(154, 154, 154);
    background-color: grey;
    border: 2px solid rgb(70, 69, 69);
}
.validated {
    background-color: #e2b2b1;
}
.btn_selected {
    background-color: #0d6efd;
    color: #fff;
}
.btn_selected.red {
    background-color: var(--redmain);
    color: #fff;
}
input[type="radio"].validated + label {
    background-color: #e2b2b1;
}

.forms {
    padding: 1rem 4rem;
    width: 50%;
    transition: width 0.2s ease-out;
}
#rater {
    transition: all 0.2s ease-out;
}
.forms_h1 {
    padding: 1.2rem 4rem 0rem 3.4rem;
    font-size: 1.55rem;
    transition: text-align 0.2s ease-out;
}
.form_sections_progress {
    position: fixed;
    right: 13%;
    top: 50%;
    width: 370px;
    transform: scale(1) translateY(-50%);
    opacity: 1034;
    z-index: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.form_sections_progress.hide {
    right: -100vw;
    visibility: hidden;
    opacity: 0;
}

.form_btn_container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 6rem;
    height: 88px;
    border-top: 1px solid rgb(191, 191, 191);
    background: repeating-linear-gradient(
        145deg,
        rgb(255, 255, 255),
        rgb(255, 255, 255) 2px,
        rgb(239, 239, 239) 0px,
        rgb(239, 239, 239) 4px
    );
}

.check-list {
    list-style-type: none;
    background-color: white;
    margin: 0;
    border-radius: 5px;
    width: 100%;
    border: solid 2px #cbcbcbd9;
    padding: 0.5rem 0.5rem;
    box-shadow: 1px 2px 14px 1px rgba(172, 172, 172, 0.458);
}
.checklist_li.checked {
    font-weight: 600;
}
.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.check-list i {
    display: inline-block;
    width: 15px;
    height: 15px;
    text-align: center;
    color: green;
}
.check-list .fa-circle-check {
    position: absolute;
    left: 0px;
    bottom: 7px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.checklist_li.checked .fa-circle-check {
    opacity: 1;
}

.checklist_li:hover {
    cursor: pointer;
    box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.1);
}
label:not(.form-check-label):not(.custom-file-label) {
    font-weight: 500;
}
/* notification / alerts */
div#notification {
    display: flex;
    align-items: center;
    width: var(--widthAlert);
    position: fixed;
    right: 2%;
    transform: translateX(0);
    top: 60px;
    z-index: 30000;
    transition: transform 0.8s ease-in;
}
#notification.alert-danger {
    background-color: #f8c2c6;
    color: #721c24;
    border-color: #d9717b;
}
div#notification_two {
    display: flex;
    align-items: center;
    width: var(--widthAlert);
    position: fixed;
    right: 2%;
    transform: translateX(0);
    top: 148px;
    z-index: 30000;
    transition: transform 0.8s ease-in;
}

/* client profile */
#client_profile_v2 .nav-pills .nav-link.active {
    background-color: var(--reddark);
}
#client_profile_v2 .nav-pills .nav-link:not(.active):hover {
    color: var(--reddark);
}

#cp_submissions_table {
    margin: 0 auto 0 auto !important;
}


#client_profile {
    display: none;

    .subsection_title {
        font-size: 1.5rem;
        i {
            font-size: 1.2rem;
        }
    }
}
.actions_menu p {
    margin-bottom: 0;
    font-weight: 600;
}
.actions_menu .btn {
    width: auto;
    color: white;
}
.actions_menu .btn.dropdown-toggle {
    width: auto;
    color: white;
}
.cp_policies_tables select {
    max-width: 140px;
    display: inline-block;
}
table#cp_submissions_table {
    table-layout: fixed;
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
#cp_submissions_table.table tr th, #cp_submissions_table.table tr td {
    text-align: center;
    vertical-align: middle;
}
#cp_submissions_table.table tr th input,
#cp_submissions_table.table tr td input {
    text-align: center;
    vertical-align: middle;
}
#cp_submissions_table th:nth-child(5),
#cp_submissions_table td:nth-child(5) {
    width: 88px;
}
#cp_submissions_table th:nth-child(2),
#cp_submissions_table td:nth-child(2){
    min-width: 140px;
    text-wrap: auto;
}
#cp_submissions_table th:nth-child(1),
#cp_submissions_table td:nth-child(1),
#cp_submissions_table th:nth-child(4),
#cp_submissions_table td:nth-child(4),
#cp_submissions_table th:nth-child(3),
#cp_submissions_table td:nth-child(3)
{
    min-width: 120px;
}
.full_quote_tbody tr th {
    vertical-align: middle !important;
}

.drop_container {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hover suave para botones */
.drop_container .btn:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

#client_actions_modal {
    width: auto;
}

#general_modal {
    max-width: 500px;
    transition: max-width 0.3s ease-in-out;
}

#policy_update_table thead th {
    white-space: nowrap; /* Evita el salto de línea */
}

/* actions menu */
#actionsMenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
}

#actionsMenu .ac_btn {
    background-color: transparent;
    border: none;
    padding: 10px;
    color: black;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 4px;
    border-left: solid 4px transparent;
}
#actionsMenu .ac_btn:hover {
    border-left: solid 4px var(--reddark);
    background-color: rgb(212, 212, 212);
}
/* sweetalert buttons */
button.swal2-cancel.swal2-styled {
    width: auto;
    height: 56px;
    font-size: 14.8px;
    font-weight: 700;
    padding: 0.8rem 1.4rem !important;
}
.swal2-confirm.swal2-styled {
    width: 167px;
    height: 56px;
    font-size: 16px;
}
/* background modal */

#modal {
    display: none;
    background-color: #1f1f1fba;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    text-align: -webkit-center;
}
#modal form label {
    font-weight: 600;
}

/* loops */
.loop_wrapper {
    margin: 5px 0 0 0;
    border-left: 2px solid rgba(255, 193, 7, 0.53);
    padding: 10px 0 10px 20px;
    max-width: 660px;
}

.loop_wrapper_v2 {
    margin: 5px 0 0 0;
    border-left: 2px solid rgba(255, 193, 7, 0.53);
    padding: 10px 0 10px 20px;
    width: 660px;
}

button.remove_loop {
    background: transparent;
    border: 0px;
}

/* end */

/* buttons */
button.btn_helper {
    background: var(--reddark);
    color: white;
    border: 1px solid rgb(158, 1, 1);
    font-size: 13px;
}
button.btn_helper:hover {
    box-shadow: 1px 1px 6px rgb(154, 154, 154);
    background-color: #c54c4a;
    color: white;
    font-weight: 400;
}
#cp_submissions_table .row-policy {
    cursor: pointer;
}
#btn_back_create_submissions {
    display: hidden;
}
.onhover {
    transition: all 0.1s ease;
}
.list-group-item.onhover.recent_client:hover,
.list-group-item.onhover.recent_business:hover,
.list-group-item.onhover.recent_viewed_business:hover
 {
    background-color: #eaeaea;
    cursor: pointer;
}

.onhover:hover {
    box-shadow: 0 0.1rem 1rem rgb(0 0 0 / 17%);
}
.btnModalHide {
    position: fixed;
    right: 11.94%;
    top: 50%;
    transform: translateY(-50%);
    height: 64px;
    z-index: 1036;
    transition: all 0.2s ease;
}
.btnModalHide.hide {
    position: fixed;
    bottom: 20px;
    right: 0px;
}

.disabledBtn {
    background-color: #e0e0e0;
    color: #e6e6e6;
    border-color: #d0d0d0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.75;
}
.disabledBtn.btn_selected {
    background-color: #5d7ba9;
}

#cp_24hour td,
#cp_first_option td,
#cp_second_option td,
#cp_third_option td {
    vertical-align: middle;
}

#ticketTypeButtons .btn {
    margin-bottom: 12px;
    border-radius: 5px;
}

#ticketTypeButtons {
    padding: 15px;
    width: 100%;
}

.url_cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ellipsis_text {
    max-width: 255px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.description_cell {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 150px;
    word-break: break-word;
}
.text_table_sm {
    font-size: 13px;
}
.text_table_sm::first-letter {
    text-transform: uppercase;
}
#full_quote_modal {
    max-width: 1100px;
    margin: 1.75rem;
    pointer-events: none;
}
.update_policy_details {
    width: 35px;
}

#general_modal #policy_list {
    font-size: 12.5px;
}
/* MEDIA QUERIES */
@media screen and (max-width: 950px) {
    .container {
        max-width: 950px;
    }

    .btnModalHide {
        right: 3.9%;
    }
    .form_sections_progress {
        right: 5%;
        width: 330px;
    }
    .form_sections_progress .check-list {
        padding: 1rem 1.3rem;
    }
}

@media screen and (max-width: 1200px) {
    input.w-50,
    select.w-50 {
        width: 100% !important;
    }
    input.w-25,
    select.w-25 {
        width: 50% !important;
    }
}

@media screen and (min-width: 1450px) {
    .form-control-sm {
        padding: .175rem .3rem;
        font-size: 1rem;
        border-radius: 0.25rem;
    }
    .forms {
        font-size: 1.2rem;
    }
    .forms_h1 {
        font-size: 2.8rem;
    }
    .btn-group.mt-2,
    .form-control-sm.mt-2 {
        margin-top: 1rem !important;
    }

    /* .section_title,
    .subsection_title {
        font-size: 2.5rem;
    } */
}

.btn_alter_mga {
    font-weight: 400;
    background-color: #c00;
    width: 50px;
    height: 35px;
    border: 2px solid #900;
    color: white;
    border-radius: 3.6px;
    transition: all 0.15s ease-in;
}

.btn_alter_mga:hover {
    box-shadow: 1px 1px 6px rgba(154, 154, 154, 0.7);
    border: 2px solid #b00;
    background-color: #f00;
}

.btn_alter_mga:disabled {
    box-shadow: 1px 1px 6px rgba(154, 154, 154, 0.7);
    background-color: #a00;
    border: 2px solid #900;
}

/* Widget Recent Client */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-company {
    font-size: 14px;
    color: black;
    font-weight: bold;
}

.client-name {
    font-size: 11px;
    font-weight: normal;
    color: #555;
}

.client-dot {
    font-size: 11px;
    color: #888;
}

.client-date {
    font-size: 11px;
    color: #777;
    margin-left: auto;
}

.recent-client {
    border: 1px solid rgba(211, 211, 211, 0.25);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 3px 5px 3px;
    min-width: 177px;
    min-height: 90px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div#clients-list {
    display: flex;
    flex-flow: nowrap;
    overflow-x: scroll;
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}
/*End Widget Recent Client */

#tasksTable .highlight-row:hover {
    border-left: solid 4px var(--reddark) !important;
}
/* Borders for the DataTable Task  */
.priority-urgent td {
    background-color: #fc7575;
}

.priority-high td {
    background-color: #ffb4ad;
}

.priority-medium td {
    background-color: #fff48e;
}

.priority-low td {
    background-color: #ffed4a;
}

/* DueDate Taks Form  */
.due-date-today td:first-child {
    border-left: 6px solid #4caf50;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.due-date-past td:first-child {
    border-left: 6px solid #f44336;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.due-date-future td:first-child {
    border-left: 6px solid #2196f3;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
/* Selects Task Form */
.form-control.task{
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 4px;
    appearance: none;
}
/* Styles for selected values in Priority */
.form-control.color-priority[data-priority="Urgent"] {
    background-color: #fc7575;
    color: black;
}
.form-control.color-priority[data-priority="High"] {
    background-color: #ffb4ad;
    color: black;
}
.form-control.color-priority[data-priority="Medium"] {
    background-color: #fff48e;
    color: black;
}
.form-control.color-priority[data-priority="Low"] {
    background-color: #ffed4a;
    color: black;
}
/* Styles for selected values in Status */
.form-control.color-status[data-status="Opened"] {
    background-color: #ffcccc;
    color: black;
}
.form-control.color-status[data-status="Closed"] {
    background-color: #ccffcc;
    color: black;
}
/* Ensure options have no additional styling */
.form-control.color-priority option ,.form-control.color-status option {
    background-color: #fff;
    color: #333;
}
.due-date-invalid {
    border: 1px solid red;
    background-color: #fdd;
}
.due-date-past {
    border: 1px solid #f44336;
    background-color: #fee;
}
.due-date-today {
    border: 1px solid #4caf50;
    background-color: #dfd;
}
.due-date-future {
    border: 1px solid #2196f3;
    background-color: #ddf;
}
/*  */
/* Flecha hacia abajo en el submenú */
.dropdown-submenu > a::after {
    content: '\25B6';
    display: inline-block;
    font-size: 12px;
    color: #888;
    transition: color 0.3s;
}

/* Estilo del botón principal */
.dropbtn {
    background-color: #ffffff;
    color: #333;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    width: 100%;
    text-align: left;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 37px;
}

.dropbtn:hover {
    border-color: #999;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
}

/* Contenedor del menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Contenido del menú desplegable */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    width: 100%;
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown.show .dropdown-content {
    display: block;
}

/* Submenú */
.dropdown-submenu {
    position: relative;
}

/* Botón del submenú */
.submenu-btn {
    background-color: #ffffff;
    color: #333;
    padding: 12px 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.submenu-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Contenido del submenú */
.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-width: 160px;
    z-index: 1;
    padding: 0;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
}

/* Elementos dentro del submenú */
.submenu-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.3s, color 0.3s;
}

.submenu-content a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.submenu-content a:last-child {
    border-bottom: none;
}

/* Style for links */
.category-link,
.role-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, padding-left 0.3s;
}

.category-link:hover,
.role-link:hover {
    background-color: #f0f0f0;
    color: #000;
    padding-left: 30px;
}

.category-link:last-child,
.role-link:last-child {
    border-bottom: none;
}

.category-link::after,
.role-link::after {
    content: '\25BC';
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #888;
    transition: color 0.3s;
}

.category-link:hover::after,
.role-link:hover::after {
    color: #333;
}

.select2-container .select2-selection--single {
    height: 38px;
}
.select2-selection__placeholder {
    color: black !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important;
}

#tasksTable tbody tr {
    cursor: pointer;
}

#general_modal .quote_box,
#actionsMenu .quote_box {
    width: 160px;
    height: 140px;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#general_modal .quote_box:hover,
#actionsMenu .quote_box:hover {
    border-color: white;
    background-color: var(--redwhite);
    color: white;
}
#general_modal .quote_box:hover i,
#actionsMenu .quote_box:hover i {
    color: white;
}

#general_modal .quote_box.disabled,
#actionsMenu .quote_box.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #e0e0e0;
    background-color: #f0f0f0;
    color: #aaa;
    box-shadow: none;
}
.quote_label {
    font-size: 16px;
    font-weight: 500;
}

#client_actions_modal {
    max-width: 600px !important;
}
.button_box {
    cursor: pointer;
    transition: all 0.2s ease;
}

.button_box.btn_selected {
    background-color: rgb(133, 255, 137);
    color: white;
    border: solid 1px green;
}

.button_box:hover {
    box-shadow: 0 2px 6px rgba(100, 234, 115, 0.43);
}

#business_menu_modal {
    max-width: 700px;
}
.business_flow {
    position: relative;
}

.flow_row {
    position: relative;
}

/* Flechas */
.flow_arrow {
    position: absolute;
    color: #000000;
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    font-weight: 900;
}

/* Direcciones */
.flow_arrow.right {
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
}

.flow_arrow.left {
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
}

.flow_arrow.down {
    bottom: -30px;
    transform: translateY(-50%);
    left: 50%;
}

/* Bound = fin del flujo */
.button_box[data-filter="Bound"] .flow_arrow {
    display: none;
}
