/* DarkBlue: #0d0e51 */

:root {
    --dark-blue: #0d0e51;
}


/* html:lang(ar) body{
    font-family: cairo, sans-serif !important;
} */

label {
    margin: 0 !important;
}

.sidebar-editor {
    background-color: rgba(1, 4, 136, 0.9);
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    transition: height 0.2s ease-in-out;
}

#banks {
    font-family: 'FontAwesome', 'Cairo'
}

.sidebar-editor__item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #FFF;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.sidebar-editor__item-icon {
    margin-right: 5px;
    display: block;
}

.toggleVisiblity {
    display: block;
    margin-left: auto;
}

.spec-case {
    margin-left: auto !important;
}

.sidebar-editor__item .gear-icon {
    display: block;
    cursor: pointer;
    margin-left: 5px;
    transition: transform 0.2s ease-in-out;
}

.sidebar-editor__item-props,
.sidebar-editor__item-props label {
    font-size: 12px !important;
    font-weight: 300 !important;
}

.sidebar-editor__item-props {
    transition: position 0.5s ease-in-out 0.2s, transform 0.2s ease-in-out;
    transform: scaleY(0);
    position: absolute;
    transform-origin: top;
    opacity: 0;
}

.sidebar-editor__item--visible .sidebar-editor__item-props {
    opacity: 1;
    position: static;
    transform: scaleY(1);
}

.sidebar-editor__item--visible .gear-icon {
    transform: rotate(45deg);
}

.bank-info {
    border-top: 2px solid var(--dark-blue);
    padding: 1rem 0;
    border-radius: 5px;
    margin-bottom: 2rem;
}


/* .bank-info div:first-of-type{
    font-size: 0.8rem;
} */

.GUI-editor h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.GUI-editor {
    margin-top: 2rem;
}

.cheque-size-inp {
    width: 3rem;
    font-size: 0.75rem;
}

.btn-light {
    border-color: rgba(1, 4, 136, 0.9) !important;
    /* background-color: #fff; */
}


/* ==== Cheque Style ==== */

.cheque-container {
    position: relative;
    margin: 0 auto;
}

.cheque-container::after {
    content: '';
    position: absolute;
    left: -5px;
    top: -5px;
    /* background-color: rgba(1, 4, 136, 0.9); */
    border: 4px solid rgba(1, 4, 136, 0.9);
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    z-index: -1;
}

.cheque-space {
    text-align: center;
    position: relative;
    width: 609px;
    height: 314px;
    margin: 0 auto;
    font-size: 14px;
    /* margin-bottom: 2rem; */
    overflow: hidden;
}

.cheque-space__item {
    position: absolute;
    color: #000;
    /* padding: 3px; */
    transition: background-color 0.2s ease-in-out;
    cursor: move;
    background-color: rgba(1, 4, 136, 0.25);
    display: block;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    /* transform-origin: left; */
}

.cheque-space__item-value {
    /* position: relative; */
    display: block;
    z-index: 9;
    width: 100%;
    /* overflow: hidden; */
}

.cheque-space__resize {
    position: absolute;
    width: 10px;
    height: 100%;
    left: 100%;
    top: 0;
    background-color: rgba(178, 34, 34, 0.5);
    z-index: 99;
    cursor: w-resize;
}

.cheque-space__resize:lang(ar) {
    left: auto;
    right: 100%;
}

.cheque-space__date {
    top: 21px;
    left: 444px;
    text-align: left;
    width: 115px;
    font-size: 14px;
}

.cheque-space__payee-name {
    top: 75px;
    left: 130px;
    width: 350px;
    text-align: left;
}

.cheque-space__amount {
    top: 124px;
    left: 495px;
    width: 93px;
    text-align: left;
    font-size: 14px;
}

.cheque-space__text-amount {
    z-index: -1;
    opacity: 0;
}

.cheque-space__text-amount span {
    /* display: inline-block; */
}

.cheque-space__line--1 {
    top: 95px;
    left: 45px;
    width: 395px;
}

.cheque-space__line--2 {
    top: 120px;
    left: 45px;
    width: 395px;
}

.cheque-space__paid-for {
    top: 133px;
    left: 45px;
    width: 395px;
    text-align: left;
    font-size: 14px;
}

.cheque-space__signer-name {
    top: 172px;
    left: 50px;
    width: 233px;
    text-align: left;
    font-size: 14px;
}

.cheque-space__min-amount {
    top: 125px;
    left: 548px;
    width: 50px;
}

html:lang(ar) .cheque-space__date,
html:lang(ar) .cheque-space__payee-name,
html:lang(ar) .cheque-space__amount,
html:lang(ar) .cheque-space__text-amount,
html:lang(ar) .cheque-space__paid-for,
html:lang(ar) .cheque-space__signer-name {
    text-align: right;
}

html:lang(ar) .cheque-space__item.cheque-space__line--1,
html:lang(ar) .cheque-space__item.cheque-space__line--2 {
    direction: rtl !important;
}

.cheque-space img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%;
}

.cheque-space__ac-payee {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    position: absolute;
    left: -35px;
    top: 11px;
    transform: rotate(-45deg);
    display: none;
    padding: 5px 10px;
    width: 120px;
    font-size: 12px;
    font-weight: 400;
}

input.ac-payee {
    padding: .25rem 1rem;
}

.ac-payee-container {
    position: relative;
    width: 100%;
}

.ac-payee-container__icon {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transform: translateY(-50%);
    border-top: 5px solid rgba(1, 4, 136, 0.9);
    position: absolute;
    right: 5px;
    top: 50%;
    cursor: pointer;
    -webkit-filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.ac-payee-container__icon:hover {
    transform: translateY(-50%) scale(1.3);
    -webkit-filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}

html:lang(ar) .ac-payee-container__icon {
    right: auto;
    left: 5px;
}

.ac-payee-container--active .ac-payee-container__icon {
    transform: translateY(-50%) rotate(180deg);
}

.acPayeeList {
    position: absolute;
    top: 100%;
    background-color: #fff;
    left: 0;
    width: 100%;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    transition: transform 0.2s ease-in-out;
    -webkit-transform-origin: top;
    transform-origin: top;
    color: rgba(1, 4, 136, 0.9);
    padding: 7px 4px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.acPayeeList span {
    display: block;
    cursor: pointer;
    padding: 3px;
    transition: all 0.2s ease-in-out;
}

.acPayeeList span:hover {
    /* background-color: rgba(1, 4, 136, 0.9); */
    transform: translateX(3px);
    font-weight: 500;
}

.ac-payee-container--active .acPayeeList {
    transform: scaleY(1);
}

.cheque-popup {
    width: 250px;
    height: 100px;
    background-color: rgba(1, 4, 136, 0.9);
    color: #fff
}

.popup {
    color: #fff;
    border-radius: 5px;
}

.popup .sidebar-editor__item {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    z-index: -1;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    background-color: rgba(1, 4, 136, 0.9);
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 2rem 1rem;
}

.popup .sidebar-editor__item--active {
    z-index: 9999;
    opacity: 1;
    transform: scaleY(1);
}

.popup .sidebar-editor__item-props {
    transform: scaleY(1) !important;
    position: static !important;
    transform-origin: top;
    opacity: 1;
}

.popup__close {
    position: absolute;
    top: 10px;
    left: 1rem;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.popup__close:hover {
    color: #fb1a02;
}

.cheque-space__placeholder {
    /* opacity: 0.5; */
}

.btn-save {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-save .btn-save__text {
    display: block;
}

.btn-save--loading .loader {
    display: block;
}

.btn-save--loading .btn-save__text {
    display: none;
}

.custom-alert {
    position: fixed;
    left: 5px;
    bottom: 5px;
    margin: 0;
}

.messages-wrapper {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
}

.alert-msg {
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: animateToTop 0.2s ease;
    margin-top: 1rem;
    z-index: 99999;
    /* transition: transform 0.2s ease-in-out; */
}

.alert-msg--success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-msg--fail {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-msg__close {
    background-color: transparent;
    border: none;
    line-height: 0;
    padding: 0;
    margin-left: 10px;
    font-size: 1.5rem;
}

.payeeName {
    position: relative;
}

.payeeName__error {
    display: none;
}

.save-cheque__input {
    display: inline-block;
    width: auto;
}

.payeeName.payeeName--error+.payeeName__error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    display: block;
}

.payeeName.payeeName--error,
.save-cheque__input--error {
    border: solid var(--danger) 1px;
    box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%);
}

.save-cheque__id-label--error {
    text-shadow: 0 1px 2px rgb(220 53 69 / 50%);
}

.payeename-wrapper {
    position: fixed;
    left: 50%;
    top: 50%;
    max-height: 75vh;
    overflow-y: auto;
    z-index: 99999;
    transition: transform 0.2s ease-in-out;
    transform: translate(-50%, -50%) scale(0);
	padding: 16px;
	max-width: 100%;
}

.payeename-wrapper--active {
    transform: translate(-50%, -50%) scale(1);
}

.payeename__remove-icon:hover {
    background-color: #f8d7da;
    color: #721c24;
}

html:lang(ar) .table {
    direction: rtl;
}

.table thead {
    background-color: rgba(1, 4, 136, 0.9);
    color: #f1f1f1
}

.table tbody {
    color: #000;
}

.table tbody tr:nth-child(odd) {
    background-color: #f1f1f1;
}

.table tbody tr:nth-child(even) {
    background-color: #fff;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}

.table tbody tr,
.table tbody td {
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

html:lang(ar) table td,
html:lang(ar) table th {
    text-align: right;
}

.table tbody tr:hover td:not(:last-child) {
    background-color: rgba(1, 4, 136, 0.9);
    color: #F1f1f1;
}

html:lang(ar) .payeename-wrapper {
    text-align: right;
}

.payeename-wrapper__search-div {
    position: relative;
    flex: 1;
}


.payeename-wrapper__search-div__icon,
.report-table__search-icon {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(1, 4, 136, 0.5)
}

.payeename__close {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.payeename__close:hover {
    background-color: #721c24;
    color: #f8d7da;
}

.payeename__remove-icon,
html:lang(ar) .payeename__remove-icon {
    text-align: center;
}

.payeename-wrapper__controller {
    display: flex;
    justify-content: space-between;
}

.payeename-wrapper__search-wrapper {
    flex: 1;
    flex-direction: row;
}

.payeename-wrapper__search-icon {
    cursor: pointer;
}

.table__colorized {
    color: greenyellow
}

.paragraph-payeename {
    margin: 0;
}


/* Reseting tabulator */

.report-table {
    -webkit-transform: scaleY(0) !important;
    -ms-transform: scaleY(0) !important;
    -moz-transform: scaleY(0) !important;
    transform: scaleY(0) !important;
    transform-origin: top;
    transition: transform 0.2s ease-in-out;
}

.report-table--active {
    -webkit-transform: scaleY(1) !important;
    -ms-transform: scaleY(1) !important;
    -moz-transform: scaleY(1) !important;
    transform: scaleY(1) !important;
}

html:lang(ar) .tabulator-paginator {
    text-align: left !important;
}

.tabulator-paginator label {
    float: none !important;
}

.tabulator-cell:last-child:hover {
    background-color: var(--danger);
    color: #fff;
}

.popup__item-motive {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35.5%;
    cursor: move;
}

.popup__item-motive span {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 100px;
    transition: background 0.2s ease-in-out;
    display: block;
}

.popup__item-motive:hover span {
    background-color: rgba(255, 255, 255, 0.65);
}

.popup__item-motive span:last-child {
    margin-top: 4px;
}

.print-permit {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    backdrop-filter: blur(15px);
    transform: scale(0);
    visibility: hidden;
    transition: transform 0.2s ease-in-out;
}

.print-permit--active {
    visibility: visible;
    transform: scale(1) translate(-50%, -50%);
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(0);
    visibility: hidden;
    transition: transform 0.2s ease-in-out;
}

.overlay--active {
    visibility: visible;
    transform: scale(1);
}

@keyframes animateToTop {
    0% {
        transform: translateY(100%);
    }
    /* 25%{
        transform: translateY(75%);
    } */
    50% {
        transform: translateY(50%);
    }
    /* 75%{
        transform: translateY(25%);
    } */
    100% {
        transform: translateY(0%);
    }
}


/**
    Arabic Style
*/

.sidebar-editor:lang(ar) {
    order: 1;
}

html:lang(ar) .custom-select {
    text-align: right !important;
}

html:lang(ar) .inner-page>.container>.row {
    flex-direction: row-reverse;
}

footer .footer-top .container .row .col-lg-12.col-md-12 {
    position: static;
}


/* Mobile Media */

@media only screen and (max-width: 575px) {
    .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .sidebar-editor {
        margin-left: 15px;
        margin-right: 15px;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .sidebar-editor label {
        font-size: 12px;
    }
    .cheque-space__ac-payee {
        width: 86px;
        padding: 2px 7px;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
    }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
    .sidebar-editor {
        order: 2 !important;
    }
    .cheque-size-info {
        text-align: right;
    }
    .cheque-space__ac-payee {
        width: 86px;
        padding: 2px 7px;
        border-top: 1.5px solid #000;
        border-bottom: 1.5px solid #000;
    }
}

@media only screen and (max-width: 991px) {
    .sidebar-editor {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 2rem;
        order: 2 !important;
    }
    .sidebar-editor__item {
        flex-basis: 45%;
    }
}


/* ### Print Media ### */

@media print {
    @page {
        size: landscape;
        margin: 0;
        padding: 0;
    }
    body {
        margin: 0;
        padding: 0;
        line-height: 1;
        min-width: auto !important;
    }
    .breadcrumbs,
    .sidebar-editor,
    .bank-info,
    button,
    footer,
    header,
    #header,
    a,
    input,
    .cheque-space__img,
    label,
    input,
    table,
    #example-table {
        display: none !important;
    }
    .inner-page {
        padding: 0 !important;
    }
    .cheque-container {
        display: block;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed;
        top: 50%;
        right: 0px;
        /*-ms-transform: translateY(-50%);*/
        transform: translateY(-50%);
        /* border: none !important; */
    }
    .cheque-container::after {
        display: none;
    }
    .cheque-space {
        margin: 0;
        padding: 0;
        border: none;
    }
    .cheque-space__item {
        background-color: transparent;
    }
    .cheque-space__resize {
        display: none;
    }
    /* .cheque-container *, .GUI-editor *, .GUI-editor-side *{
        display: block !important;
    } */
    .cheque-space__placeholder {
        display: none !important;
    }
    .form-bank_data {
        display: none;
    }
}


/* html:lang(ar) label,
html:lang(ar) select option{
    text-align: right !important;
    display: block !important;
} */

html:lang(ar) .sidebar-editor__item .d-flex {
    /* flex-direction: row-reverse !important; */
}

html:lang(ar) .toggleVisiblity {
    margin-left: 5px;
    margin-right: auto;
}

html:lang(ar) .spec-case {
    margin-left: 5px !important;
    margin-right: auto !important;
}

html:lang(ar) .sidebar-editor__item-icon {
    margin-right: 0;
    margin-left: 5px;
}

html:lang(ar) .form-control-sm {
    text-align: right !important;
}

html:lang(ar) #acPayeeList {
    text-align: right !important;
}

html:lang(ar) .btn-group {
    flex-direction: row-reverse !important;
}

.loader {
    color: #ffffff;
    font-size: inherit;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
    animation: load6 1.7s infinite ease, round 1.7s infinite ease;
    display: none;
}

@-webkit-keyframes load6 {
    0% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    5%,
    95% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    10%,
    59% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }
    20% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }
    38% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }
    100% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}

@keyframes load6 {
    0% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    5%,
    95% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
    10%,
    59% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }
    20% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }
    38% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }
    100% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}

@-webkit-keyframes round {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes round {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
