/* ---- commission-calculator.blade.php ---- */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.toast-notification.show {
    display: flex;
    transform: translateX(0);
    justify-content: center;
    align-items: center;
}

.toast-notification.success {
    background: #48bb78;
}

.toast-notification.warning {
    background: #ed8936;
}

.toast-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    font-weight: 800;
    float: right;

}

.input:focus,
.unit-select:focus,
.search-input:focus {
    outline: none;
    /* remove default outline (optional) */
    border-color: #4a90e2;
    /* your focus color */
    box-shadow: 0 0 5px #4a90e2;
    /* optional glow effect */
}

.fractionTabs:not(.units_active):hover {
    background: #8080801c;
}

@media screen and (min-width: 500px) {
    .w-lg-50 {
        width: 50%;
    }
}

@media (max-width: 380px) {
    .calculator-box {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .px-3 {
        padding-right: 0.7rem;
        padding-left: 0.7rem;
    }
}

.velocitytab .v_active {
    border-bottom: 3px solid var(--light-blue);
}

.velocitytab .v_active strong {
    color: var(--light-blue);
}

.veloTabs:hover {
    background-color: gainsboro;
}

.velocitytab p {
    position: relative;
    top: 2px;
}

.active {
    background-color: var(--light-blue);
    ;
    color: white;
}

.bdr-top {
    border-top: 2px solid var(--light-blue);
}

.tooltip {
    visibility: hidden;
    position: absolute;
    top: auto;
    width: fit-content;
    right: 0px;
    left: 0;
    background: #8D8D8D;
    border-radius: 5px;
    padding: 5px 10px;
    color: white;
    opacity: 0;
    bottom: 110%;
    font-size: 12px;
    opacity: 100%;
}

.toolspan:hover .tooltip {
    visibility: visible !important;
    opacity: 1;
}

.toolspan svg {
    margin-bottom: -2px;
    cursor: pointer;
}

.input,
.unit-select,
.search-input {
    padding-right: 45px;
}

/* ---- gratuity-calculator.blade.php ---- */
.gap-1 {
    gap: 8px;
}

.w-80 {
    width: 60%;
}

.input-unit {
    /* position: absolute;
    right: 1px;
    top: 40%;
    transform: translateY(-50%);
    padding: 9px 12px;
    border-radius: 0px 10px 10px 0px; */
    position: absolute;
    right: 17px;
    top: 14px;
}

.units {
    right: -8px;
    top: 49px;
}

/* ---- fifo-lifo-calculator.blade.php ---- */
.close_fifo {
    position: absolute;
    background: #13699E;
    width: 20px;
    height: 20px;
    border-radius: 50px;
}

.close_fifo:before,
.close_fifo:after {
    position: absolute;
    left: 9px;
    top: 4px;
    content: ' ';
    height: 12px;
    width: 2px;
    background-color: #fff
}

.close_fifo:before {
    transform: rotate(45deg)
}

.close_fifo:after {
    transform: rotate(-45deg)
}

.gap-5 {
    gap: 10px
}

.purchases {
    display: none;
    position: absolute;
    z-index: 3;
}

#add_more ul li {
    list-style-type: none;
}

.arrow {
    border: solid;
    margin-right: 5px;
    margin-bottom: 2px;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

#add_row,
#add_more {
    height: 30px;
    line-height: 26px;
    cursor: pointer;
    border: 1px solid;
    position: relative;
}

.overflow_scroll {
    height: 500px;
    overflow-y: scroll;
    padding-top: 10px;
}

/* ---- future-value-of-annuity.blade.php ---- */
img {
    object-fit: contain;
}

/* ---- discount-calculator.blade.php ---- */
@media (max-width: 380px) {
    .calculator-box {
        padding-right: 0rem;
        padding-left: 0rem;
    }
}

.velocitytab .v_active {
    border-bottom: 3px solid var(--light-blue);
}

.veloTabs:hover {
    background: #dcdcdc73;
}

.velocitytab .v_active strong {
    color: var(--light-blue);
}

.velocitytab p {
    position: relative;
    top: 2px
}

input[type="date"],
input[type="time"] {
    min-width: 85%;
    margin: 0px auto;
}

.gap-10 {
    gap: 20px;
}

.text-right {
    text-align: right;
}

/* ---- overtime-calculator.blade.php ---- */
#onetw {
    background: transparent;
    border: none;
    color: #1670a7;
    outline: none;
}

@media (max-width: 430px) {
    .calculator-box {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

.orange_color {
    color: #CC6E29;
}

/* ---- salary-calculator.blade.php ---- */
@media (max-width: 380px) {
    .calculator-box {
        padding-right: 0rem;
        padding-left: 0rem;
    }

    .font-s-14 {
        font-size: 12px;
    }
}

/* ---- growth-rate-calculator.blade.php ---- */
/* Allows horizontal scroll on overflow instead of breaking layout */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* smooth scroll on iOS */
    padding-bottom: 4px;
    /* prevent scrollbar clipping */
}

/* Optional: scale down slightly on very small screens */
@media (max-width: 480px) {
    .katex-display .katex {
        font-size: 1em;
    }
}

/* ---- unemployment-rate-calculator.blade.php ---- */
img {
    object-fit: contain;
}

/* ---- margin-of-error-calculator.blade.php ---- */
img {
    object-fit: contain;
}

/* ---- zakat-calculator.blade.php ---- */
.gap-2 {
    gap: 5px;
}

.gap-5 {
    gap: 15px;
}

.zain-tooltip-text {
    display: none;
    width: auto;
    position: absolute;
    bottom: 97%;
    right: 11%;
    color: white;
    font-size: 12px;
    background-color: #8D8D8D;
    padding: 5px;
    border-radius: 5px;
}

.tooltip-container:hover .zain-tooltip-text {
    display: block;
}

@media (max-width: 480px) {
    .tooltip-container:hover .zain-tooltip-text {
        display: block;
        width: 80%;
        left: 10%;
        bottom: 80%;
    }
}

.active {
    background-color: var(--light-blue);
    ;
    color: white;
}

.orange-text {
    color: #ff4500c4;
}

.word-wrap {
    word-wrap: break-word;
}

.download:hover .downloadOptions {
    display: block;

}

.downloadOptions {
    display: none;
    width: auto;
    position: absolute;
    bottom: 97%;
    right: 11%;
    color: white;
    font-size: 12px;
    background-color: #8D8D8D;
    padding: 5px;
    border-radius: 5px;
}
