/* -------------
	BUTTONS
----------------*/

.ti-button {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    border-radius: 0;
    padding: 0 16px;
    height: 30px;
    /*    width: 180px;*/
    vertical-align: middle;
    text-align: center;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 20px;
    overflow: hidden;
    outline: none;
    cursor: pointer;
    transition: transform 1s;
    font-size: 15px;
    /*    font-size: 14px;*/
}

.ti-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Ripple */
.ti-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    padding: 50%;
    width: 30px; /* Safari */
    height: 30px; /* Safari */
    /*    background-color: white;*/
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 1s, transform 0.5s;
}

.ti-button:hover {
    /*    box-shadow: 0 1px 1px -1px rgb(0 0 0 / 20%), 0 2px 4px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%);*/
    box-shadow: 1px 1px 5px 1px rgb(0 0 0 / 19%);
}

.ti-button:active {
    box-shadow: inset 0 1px 5px rgb(0 0 0 / 20%);
    background-color:  #7193bf0d;
}

.ti-button:active::after {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0s;
}

.ti-button:disabled, .ti-button:disabled:hover, .ti-button:disabled:active {
    background-color: #00000010;
    cursor: initial;
    color: gray;
    border: none;
}

.ti-button:disabled::after {
    background-color: transparent;
}

/* -----------------------------*/

.ti-button-normal {
    border: none;
    color: white;
    background-color: #0c53b0;
}

.ti-button-normal::before {
    background-color: white;
}

.ti-button-normal::after {
    background-color: white;
}

.ti-button-normal:active {
    background-color: #0c4b9d;
}

.ti-button-normal:hover::before {
    opacity: 0.08;
}

/* -----------------------------*/

.ti-button-outline {
    border: none;
    color: #0c356c;
    background-color: #ffffff;
}

.ti-button-outline::before {
    background-color: #32537f;
}

.ti-button-outline::after {
    background-color: #32537f;
}

.ti-button-outline:active {
    background-color: #fafafa;
}
.ti-button-outline:hover{
    box-shadow: none;
}

/* -----------------------------*/

.ti-button-normal-outline {
    border: 1px solid #32537fd6;
    color: #0c356c;
    background-color: #ffffff;
}

.ti-button-normal-outline::before {
    background-color: #32537f;
}

.ti-button-normal-outline::after {
    background-color: #32537f;
}

.ti-button-normal-outline:active {
    background-color: #fafafa;
}

/* -----------------------------*/

.ti-button-action {
    border: 1px solid #b60f0f;
    color: #ffffff;
    background-color: #b60f0f;
}

.ti-button-action::before {
    background-color: #ffffff;
}

.ti-button-action::after {
    background-color: #ffffff;
}

.ti-button-action:active {
    background-color: #ab0e0e;
}

/* -------------
	POPUP
----------------*/

.popup-root {
    position: absolute;
    inset: 0;
}

.popup-content {
    position: absolute;
    border: 1px solid #e3e3e3;
    box-shadow: rgb(0 0 0 / 20%) 0px 5px 5px -3px, rgb(0 0 0 / 14%) 0px 8px 10px 1px, rgb(0 0 0 / 12%) 0px 3px 14px 2px;
    font-size: 0.9em;
    background-color: white;
    max-width: 400px;
    z-index: 3;
}

/* -----------------------------------------------------
	FIRST AND LAST COLUMNS OF JDV-TABLE
--------------------------------------------------------*/

.cell-id {
    width: 30px;
    text-align: center;
    min-width: 30px;
}

.cell-control {
    width: 100px;
    text-align: center;
    min-width: 100px;
    padding: 0;
}

/* -----------------------------------------------------
	FOR JdSpinner
--------------------------------------------------------*/

.sk-circle-block {
    margin: 100px auto;
    width: 40px;
    height: 40px;
}

.sk-circle-inline {
    margin: 0;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: text-bottom;
}

/* -------------
	TOOLTIP
----------------*/

.tooltip {
    position: relative; /* making the .tooltip span a container for the tooltip text */
    border-bottom: 1px dashed #000; /* little indicater to indicate it's hoverable */
}

.tooltip:before {
    content: attr(data-text); /* here's the magic */
    position: absolute;

    /* vertically center */
    top: 50%;
    transform: translateY(-50%);

    /* move to right */
    left: 100%;
    margin-left: 15px; /* and add a small left margin */

    /* basic styles */
    width: 200px;
    padding: 10px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    text-align: center;

    display: none; /* hide by default */

    opacity: 0;
    transition: .3s opacity;
}

.tooltip:hover:before {
    display: block;
    opacity: 1;
}

.tooltip.left:before {
    /* reset defaults */
    left: initial;
    margin: initial;

    /* set new values */
    right: 100%;
    margin-right: 15px;
}

.tooltip:after {
    content: "";
    position: absolute;

    /* position tooltip correctly */
    left: 100%;
    margin-left: -5px;

    /* vertically center */
    top: 50%;
    transform: translateY(-50%);

    /* the arrow */
    border: 10px solid #000;
    border-color: transparent black transparent transparent;

    display: none;
}

.tooltip:hover:before, .tooltip:hover:after {
    display: block;
}
