/* Styles for the CF7 Tracker Dashboard Widget */
.smt-cf7-dashboard-widget .smt-cf7-date-fields {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.smt-cf7-dashboard-widget .smt-cf7-date-fields label {
    margin-right: 5px;
}

.smt-cf7-dashboard-widget .smt-cf7-date-fields input[type="text"] {
    margin-right: 15px;
	width: 110px;
}

.smt-cf7-dashboard-widget .smt-cf7-date-fields button {
    margin-left: auto;
}

.smt-cf7-date-range {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.smt-cf7-date-range label {
    margin-right: 5px;
    margin-left: 10px;
}

.smt-cf7-date-range input[type="text"] {
    margin-right: 10px;
    width: 150px;
}

.smt-cf7-date-range .button {
    margin-left: 10px;
}

.smt-cf7-preset-buttons {
    margin-bottom: 20px;
}

.smt-cf7-preset-buttons .button {
    margin-right: 5px;
    margin-bottom: 5px;
}


/* Hide the actual button text */
.ui-datepicker-trigger {
    text-indent: -9999px;
    overflow: hidden;
    width: 24px; /* Adjust as needed */
    height: 24px;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
}

.ui-datepicker-trigger::before {
    content: '\f145'; /* Unicode character for dashicons-calendar-alt */
    font-family: 'Dashicons';
    font-size: 18px;
    line-height: 1;
    color: #555;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hide the actual button text */
.ui-datepicker-trigger span {
    visibility: hidden;
}

.smt-cf7-date-input {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.smt-cf7-date-input input[type="text"] {
    padding-right: 35px;
    width: 150px; /* Adjust as needed */
}

.smt-cf7-date-input .datepicker-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #555;
    cursor: pointer;
}

.smt-cf7-date-input .datepicker-icon:hover {
    color: #000;
}

#smt_cf7_dashboard_widget .smt-cf7-date-range-form {
    margin-bottom: 15px;
}

#smt_cf7_dashboard_widget .smt-cf7-date-range-form input[type="text"] {
    width: 100px;
    margin-right: 5px;
}

#smt_cf7_dashboard_widget canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .smt-cf7-dashboard-widget .smt-cf7-date-fields {
        flex-direction: column;
        align-items: flex-start;
    }

    .smt-cf7-dashboard-widget .smt-cf7-date-fields input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .smt-cf7-dashboard-widget .smt-cf7-date-fields button {
        margin-left: 0;
    }
}