/* CSS styles for the tool */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 100px;
    padding: 5px 0;
    margin: 1.25px 0 0;
    font-size: 10px;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2.5px;
}

.popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1060;
    display: block;
    max-width: 276px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: 8.75px;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.active.day {
    background-color: #398439 !important;
}

.clockpicker-popover .popover-header {
    background-color: #3acd99;
}

.clockpicker-canvas line {
    stroke: #3acd99;
}

.clockpicker-canvas-bearing {
    fill: #3acd99;
}

.btn-am,
.btn-pm {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
}

.btn-am:hover,
.btn-pm:hover {
    color: #fff !important;
}

#agecollapsed {
    color: black;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#agecollapsed:hover {
    color: black !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.tab-box {
    display: none;
}

.text-dark {
    color: #343a40 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.h5 {
    font-size: 18px;
}

.my-3 {
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

.border-right {
    border-right: 1px solid #dee2e6 !important;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6;
}

.table td,
.table th {
    padding: 7.5px;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

#result .nav-tabs {
    width: 100%;
}

.pb-2 {
    padding-bottom: 10px !important;
}

.pt-2 {
    padding-top: 10px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.w-90 {
    max-width: 90px;
    width: 100%;
}

.w-138 {
    max-width: 138px;
    width: 100%;
}

.text-black {
    color: #000 !important;

}

.dissabled {
    color: #7F8384;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: white;
}

.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #00b698;
    border: unset;
}

.shadowBox {
    overflow: unset !important;
}

.form-container {
    background-color: #f3f8f9;
    border: 1px solid #e5ebee;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.form-section {
    width: 100%;
    max-width: 370px;
    margin: 0 auto 24px auto;
}

.form-title {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
    line-height: 24px;
}

.date-row {
    width: 100%;
    max-width: 370px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Custom dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    width: 100%;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: text;
    color: #C1C1C1;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    border-color: #aaa;
}

.dropdown-toggle>.text {
    width: 24px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
}

.dropdown-toggle>span {
    cursor: text;
    outline: none;
}

#pm_am {
    cursor: pointer;
}

.arrow {
    width: 24px;
    text-align: right;
    border-left: 1px solid #dcdcdc;
    cursor: pointer;
}
.arrow img{
    margin-left: 6px;
}
.dropdown.open .dropdown-toggle {
    border-color: #5b9bd5;
    box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.25);
}

.dropdown-menu {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 4px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s;
    text-align: left;
}

.dropdown-item.active-item,
.dropdown-item:hover {
    background-color: #f3f8f9;
}

/* Calendar Button */
.calendar-btn {
    height: 40px;
    width: 40px;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-btn:hover {
    background-color: #f0f0f0;
}

.calendar-btn i {
    color: #333;
    font-size: 18px;
}

/* Advance Options */
.advanced-options {
    text-align: center;
    color: black;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    user-select: none;
    opacity: 0.5;
}

.relative {
    position: relative;
}

#dob_time {
    position: absolute;
    opacity: 0;
    width: 39px;
    height: 39px;
    cursor: pointer;
    top: 0;
}

.m-0-auto {
    margin: 0 auto;
}

img {
    transition: transform 0.3s ease;
}

.shadowBox #checkBtn,
.shadowBox .btn.tool_btn_submit,
.shadowBox .btn.btn-lg.btn-success,
.shadowBox .btn.btn-lg.btn-success.active {
    margin: unset !important;
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
}

@media only screen and (max-width: 767px) {
    .resultshadowbox {
        margin-bottom: 5px;
    }

    .table .row {
        width: auto;
        padding: 10px;
    }

    .table ul {
        font-size: 11px;
    }
}

@media(width<=425px) {
    .table ul {
        font-size: 10px;
    }

    .w-90 {
        max-width: unset;
        max-width: 49%;
    }

    .w-138 {
        max-width: unset;
        flex: 1;
    }
}
