
#delete_form { overflow-y: auto; }
#delete_form .widefat.striped { width: 1440px; }

       .two-col-form label, .one-col-form label {
            /* padding: 15px 0; */
            max-width: 300px;
            width:100%;
        }
        .two-col-form label input, .one-col-form label input,.two-col-form label select, .one-col-form label select {
            margin-top:10px;
        }
   

.two-col-form, .one-col-form {
 display: flex;
    column-gap: 10px;
    margin: 20px 0;
}

         #chc_calendar table tbody>tr:nth-child(odd)>td,#chc_calendar table tbody>tr:nth-child(odd)>th { background-color:  hsl(30.98deg 1.3% 61.06% / 50%); }
            #chc_layout {
                display: flex;
                gap: 30px;
                justify-content: center;
                flex-wrap: wrap;
            }
            #chc_calendar_interface {
                display: flex;
                column-gap: 20px;
                row-gap: 30px;
                flex-wrap: wrap;
            }
            #select-property-wrap {
                margin-bottom: 20px;
            }
            #chc_calendar_container {
                flex: 60%;
                max-width: 640px;
                margin: auto;
            }
            #chc_visual_container {
                flex: 40%;
                max-height: 840px;
                overflow: hidden;
                max-width: 640px;
                margin: 0 auto;
            }
            #chc_calendar_interface h3 { margin-top:0; }
            #chc_visual {
                overflow-x: auto;
                height: 100%;
                padding-bottom: 20px;
            }
            .fc .fc-daygrid-day.fc-day-today {
                background-color: rgb(217 180 39 / 66%);
            }
            #chc_admin_form .page_admin {
                margin-top: 50px;
                margin-bottom: 50px;
            }
            #chc_admin_form .page_admin input {
                margin: 10px 0;
            }
            .page_holiday h3 { margin-bottom: 30px; }
            .holiday-row { margin-bottom: 15px;border: 1px solid #d3d3d3; padding: 10px; border-radius: 6px; }
            .holiday-label { margin: 0; }
            .holiday-label-sub { font-size: 14px; font-style: italic; }
            .square-grid { display: flex; gap: 1px; flex-wrap: wrap; }
            .square { width: 20px; height: 20px; background: #ccc; display: inline-block; border-radius: 0px; }
            .square.booked { background: green; }
            .fc .fc-button-primary {
                background-color: #000;
                border-color: var(--fc-button-border-color);
                color: var(--fc-button-text-color);
            }
            .fc .fc-button-primary:disabled {
                background-color: #ffffff;
                border-color: black;
                color: black;
            }
            .chc-spinner-wrapper {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 20px;
                color: #555;
                font-size: 14px;
            }

            .chc-spinner {
                border: 4px solid #f3f3f3;
                border-top: 4px solid #007bff;
                border-radius: 50%;
                width: 30px;
                height: 30px;
                animation: spin 1s linear infinite;
                margin-bottom: 10px;
            }

            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }






            .chc-holiday-table-wrapper { overflow-x: auto; }

        .chc-holiday-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 600px;
            margin:0;
        }

        .chc-holiday-table th,
        .chc-holiday-table td {
            padding: 8px;
            border: 1px solid #ccc;
            text-align: left;
        }

        @media (max-width: 600px) {
            .chc-holiday-table { font-size: 14px; }
        }



.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(0, 0, 0, .3);
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


        .chc-year-switcher { margin-bottom: 30px; }
        .chc-summary-wrapper { }
        .chc-summary-table { width: 100%; border-collapse: collapse; }
        .chc-summary-table th, .chc-summary-table td { padding: 8px; border: 1px solid #ccc; }
        .summary-total { background: #f3f3f3; }
        .chc-progress-bar { margin-top: 15px; background: #eee; border-radius: 4px; overflow: hidden; height: 24px; }
        .chc-progress-fill {
            height: 100%;
            background: #4CAF50;
            color: white;
            text-align: center;
            line-height: 24px;
            max-width:100%;
        }
        .chc-progress-fill.over { background: #e53935; }
        .chc-warning { color: #e53935; font-weight: bold; margin-top: 10px; }


        #chc_summary_tables {
            margin-top: 30px;
            display: flex;
            flex-wrap: wrap;
            column-gap: 20px;
            row-gap: 20px;
        }

        #chc_summary_tables .chc-summary-table-container {
            width:100%; max-width: 300px;
        }
        .chc-progress-bar {
            background: #eee;
            border-radius: 8px;
            overflow: hidden;
            height: 22px;
            margin-top: 6px;
            width: 100%;
        }

        .chc-progress-fill {
            height: 100%;
            color: white;
            text-align: center;
            line-height: 22px;
            font-size: 13px;
            font-weight: bold;
            transition: width 0.4s ease;
        }

        .chc-progress-fill.low {
            background-color: #f44336; /* red */
        }
        .chc-progress-fill.medium {
            background-color: #FFC107; /* amber */
        }
        .chc-progress-fill.high {
            background-color: #4CAF50; /* green */
        }

        .chc-occupancy-row {
            margin-bottom: 20px;
        }

        .chc-revenue-box {
            margin-top: 15px;
            background: #f7f7f7;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid #ccc;
        }

/* FORM CLIENT */

#edit_clients_form { overflow: auto; margin-bottom: 20px; }
#edit_clients_form table { width: 1900px; }





        /* Backdrop */
.chc-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

/* Modal Content Box */
.chc-modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.chc-send-email-btn:disabled {
    background-color: #ddd;
    color: #666;
    border: 1px solid #aaa;
    cursor: not-allowed;
}

/* Close button */
#chc-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

#chc-close-modal:hover {
    color: #000;
}

/* Form inputs */
#chc-email-form input[type="text"],
#chc-email-form input[type="email"],
#chc-email-form textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#chc-email-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #2196F3;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#chc-email-form button[type="submit"]:hover {
    background-color: #0b7dda;
}

#chc-email-status {
    margin-top: 10px;
}


#chc_sidebar {
        position: fixed;
        top: 100px;
        left: 20px;
        width: 240px;
        background: #f7f7f7;
        border: 1px solid #ccc;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 0 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    #chc_sidebar button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        text-align: left;
    }

    #chc_sidebar button:hover {
        background-color: #e9f3ff;
    }

    #chc_dashboard_wrapper {
        /* margin-left: 280px; */
        /* padding: 20px; */
        /* max-width: 900px; */
    }

    @media screen and (max-width: 768px) {
        #chc_sidebar {
            position: relative;
            width: 100%;
            margin-bottom: 20px;
        }
        #chc_dashboard_wrapper {
            margin-left: 0;
        }
    }

    .hol-container {
        border: 1px solid black;
        border-radius: 15px;
        margin: 50px 0;
    }
   
    .hol-container h3 {
        background-color: black;
        color: white;
        margin: 0;
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    .hol-container .hol-shortcode-wrapper {
        padding:20px;
    }


    #chc_legend {
        margin-top: 20px;
        background-color: rgb(128 128 128 / 19%);
        padding: 10px;
    }

    #chc_legend div {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 14px;
    }


    /* Button */

    .hol-container .hol-shortcode-wrapper #delete_selected,
    .hol-container .hol-shortcode-wrapper button.button-secondary {
        background-color: rgb(191 3 3);
        color:white;
        border:none;
    }
    .hol-container .hol-shortcode-wrapper #delete_selected:hover,
    .hol-container .hol-shortcode-wrapper button.button-secondary:hover {
        background-color: rgb(226, 1, 1);
        color:white;
        border:none;
    }

    .hol-container .hol-shortcode-wrapper .chc-send-email-btn:not(:disabled),
    .hol-container .hol-shortcode-wrapper #open-add-client,
    .hol-container .hol-shortcode-wrapper button.save-range,
    .hol-container .hol-shortcode-wrapper button.button-primary,
    .chc-send-email-btn,
    #chc-email-modal #send-client-email {
        background-color: rgb(0 157 0);
        color:white;
        border:none;
    }

    .hol-container .hol-shortcode-wrapper .chc-send-email-btn:not(:disabled):hover,
    .hol-container .hol-shortcode-wrapper #open-add-client:hover,
    .hol-container .hol-shortcode-wrapper button.save-range:hover,
    .hol-container .hol-shortcode-wrapper button.button-primary:hover,
    .chc-send-email-btn:hover,
    #chc-email-modal #send-client-email:hover {
        background-color: rgb(0 189 0);;
        color:white;
        border:none;
    }
 
    #delete_ranges_form {
        margin-top: 30px;
        overflow: auto;
    }
    #delete_ranges_form table {
        width: 100%;
    }

    
    @media screen and (max-width: 768px) {
        #delete_ranges_form table {
            width: 600px;
        }
    }



    .hol-shortcode-wrapper .property-block {
        width: 100%;
        max-width: 330px;
        border: 1px solid #ccc;
        padding: 15px;
        margin-bottom: 30px;
        background-color: #f8f8f8;
    }

    #chc_section_settings .hol-shortcode-wrapper {
        display: flex;
        column-gap: 20px;
        row-gap: 20px;
        flex-wrap: wrap;
    }


    /* MODAL  */

    #close-add-client {
        float:right; cursor:pointer;
    }

    /* legend */

    .legend-options-wrap { display: flex; flex-wrap: wrap; gap: 15px; }
    .legend-options-wrap .legend-options-inner-wrap { display: flex; align-items: center; }
    .legend-options-wrap .legend-options-inner-wrap .legend-options-square { width: 20px; height: 20px; margin-right: 8px; }

    .legend-options-wrap .legend-options-inner-wrap .legend-options-square.l-fully { background-color: #339933; }
    .legend-options-wrap .legend-options-inner-wrap .legend-options-square.l-part { background-color: #FFC107; }
    .legend-options-wrap .legend-options-inner-wrap .legend-options-square.l-no { background-color: #FF9800; }
    .legend-options-wrap .legend-options-inner-wrap .legend-options-square.l-air { background-color: #2196F3; }
    .legend-options-wrap .legend-options-inner-wrap .legend-options-square.l-glob { background-color: #4CAF50; }

    #chc_summary_tables { margin-top: 30px; }


    #chc-nav-toggle {
        position: fixed;
        left: -170px;
        top: 100px;
        background: #0073aa;
        color: white;
        padding: 10px;
        cursor: pointer;
        z-index: 1001;
        border-top-right-radius: 6px;
        font-size: 20px;
        width: 210px;
        text-align: right;
        transition: left 0.3s ease;
    }

    #chc-nav-menu {
        position: fixed;
        left: -220px;
        top: 150px;
        width: 210px;
        background: #23282d;
        color: white;
        overflow-y: auto;
        z-index: 1000;
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
    }

     #chc-nav-toggle.open {
        left: 0;
    }

    #chc-nav-menu.open {
        left: 0;
    }

    #chc-nav-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #chc-nav-menu li {
        margin: 20px 0;
    }

    #chc-nav-menu a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }
    #chc-nav-menu a:hover {
        text-decoration: underline;
    }



    



    .spinner, .checkmark {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-left: 8px;
}
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #4CAF50;
  position: relative;
}
.checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}