/**
 * Mantis time picker — mismo look que .daterangepicker .calendar
 */
.mantis-timepicker-popup {
    position: absolute;
    z-index: 1060;
    display: none;
    width: 268px;
    max-width: calc(100vw - 16px);
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    color: #333333;
}

.mantis-timepicker-popup.is-open {
    display: block;
}

.mantis-timepicker-head {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.mantis-timepicker-head span {
    padding: 0 0 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: #333333;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eee;
}

.mantis-timepicker-head span:first-child {
    flex: 1.55 1 0;
}

.mantis-timepicker-head span:last-child {
    flex: 0 0 78px;
    width: 78px;
}

.mantis-timepicker-body {
    display: flex;
    gap: 6px;
}

.mantis-timepicker-hours,
.mantis-timepicker-mins {
    background-color: #f7f9fa;
    border-radius: 3px;
    padding: 4px;
}

.mantis-timepicker-hours {
    flex: 1.55 1 0;
    min-width: 0;
}

.mantis-timepicker-mins {
    flex: 0 0 78px;
    width: 78px;
    box-sizing: border-box;
}

.mantis-timepicker-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
}

.mantis-timepicker-ampm {
    width: 20px;
    flex: 0 0 20px;
    font-size: 10px;
    font-weight: normal;
    color: #999999;
    text-align: center;
}

.mantis-timepicker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    flex: 1;
}

.mantis-timepicker-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #333333;
    font-family: inherit;
    font-size: 11px;
    font-weight: normal;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    transition: all ease-in-out 0.15s;
}

.mantis-timepicker-btn:hover {
    background-color: #f5f5f5;
    color: #333333;
}

.mantis-timepicker-btn.is-selected {
    background-color: #26a69a;
    color: #fff;
    font-weight: normal;
    box-shadow: none;
}

.mantis-timepicker-hours .mantis-timepicker-grid .mantis-timepicker-btn {
    width: calc(16.666% - 1px);
    min-width: 0;
}

.mantis-timepicker-mins .mantis-timepicker-grid .mantis-timepicker-btn {
    width: calc(33.333% - 1px);
    min-width: 0;
}

.mantis-timepicker-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.mantis-timepicker-foot .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    border-radius: 3px;
}
