﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --sn-primary: #0B234F;
    --sn-primary-faded: #E6E9ED;
    --sn-primary-faded-20: rgba(11,35,79,20%);
    --sn-primary-faded-50: rgba(11,35,79,70%);
    --sn-primary-dark: #071837;
    --sn-secondary: #F07124;
    --sn-secondary-hover: #c05a1c;
    --sn-secondary-disbaled: #f6a97b;
    --sn-cancel: #ffcc00;
    --sn-green: #25B476;
    --sn-red: #e06666;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #EEF0F6;
}

html {
    font-size: 62.5%;
}

.fa-solid {
    color: var(--sn-primary);
}

.fa-solid-white {
    color: white !important;
}

.e-btn .e-btn-icon.e-icon-left, .e-css.e-btn .e-btn-icon.e-icon-left {
    margin-left: 0rem;
    width: 2em;
}

h1:focus {
    outline: none;
}

.blazored-toast {
    z-index: 9000 !important;
}

    .blazored-toast .blazored-toast-message {
        font-size: 1.5rem !important;
        font-weight: bold !important;
        margin: 0 1rem !important;
    }

p.blazored-toast-message {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin: 0 1rem !important;
}

.blazored-toast {
    width: 30rem !important;
}

    .blazored-toast .blazored-toast-close {
        justify-content: center !important;
        font-size: 1rem !important;
    }

.blazored-toast-icon {
    justify-content: center !important;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: var(--sn-secondary) !important;
    font-weight: 600 !important;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: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NjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* START TOOLTIP STYLES */
[tooltip] {
    position: relative; /* opinion 1 */
}

    /* Applies to all tooltips */
    [tooltip]::before,
    [tooltip]::after {
        text-transform: none; /* opinion 2 */
        font-size: 2rem !important; /* opinion 3 */
        line-height: 1;
        user-select: none;
        pointer-events: none;
        position: absolute;
        display: none;
        opacity: 0;
        font-weight: bold;
    }

    [tooltip]::before {
        content: '';
        border: 5px solid transparent; /* opinion 4 */
        z-index: 1001; /* absurdity 1 */
    }

    [tooltip]::after {
        content: attr(tooltip); /* magic! */
        /* most of the rest of this is opinion */
        font-family: Helvetica, sans-serif;
        text-align: center;
        /* 
    Let the content set the size of the tooltips 
    but this will also keep them from being obnoxious
    */
        min-width: 3em;
        max-width: 21em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 1ch 1.5ch;
        border-radius: .3ch;
        box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
        background: #333;
        color: #fff;
        z-index: 1000; /* absurdity 2 */
    }

    /* Make the tooltips respond to hover */
    [tooltip]:hover::before,
    [tooltip]:hover::after {
        display: block;
    }

/* don't show empty tooltips */
[tooltip='']::before,
[tooltip='']::after {
    display: none !important;
}

/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
    bottom: 100%;
    border-bottom-width: 0;
    border-top-color: #333;
}

[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
    bottom: calc(100% + 5px);
}

[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
    left: 50%;
    transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
    top: 100%;
    border-top-width: 0;
    border-bottom-color: #333;
}

[tooltip][flow^="down"]::after {
    top: calc(100% + 5px);
}

[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
    left: 50%;
    transform: translate(-50%, .5em);
}

/* FLOW: LEFT */
[tooltip][flow^="left"]::before {
    top: 50%;
    border-right-width: 0;
    border-left-color: #333;
    left: calc(0em - 5px);
    transform: translate(-.5em, -50%);
}

[tooltip][flow^="left"]::after {
    top: 50%;
    right: calc(100% + 5px);
    transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
[tooltip][flow^="right"]::before {
    top: 50%;
    border-left-width: 0;
    border-right-color: #333;
    right: calc(0em - 5px);
    transform: translate(.5em, -50%);
}

[tooltip][flow^="right"]::after {
    top: 50%;
    left: calc(100% + 5px);
    transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
    to {
        opacity: .9;
        transform: translate(-50%, 0);
    }
}

@keyframes tooltips-horz {
    to {
        opacity: .9;
        transform: translate(0, -50%);
    }
}

/* FX All The Things */
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
    animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
    animation: tooltips-horz 300ms ease-out forwards;
}


.blink_text {
    animation-name: blinker;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

.e-dlg-overlay {
    background-color: rgb(0 0 0 / 40%) !important;
}

.e-dialog .e-dlg-header {
    width: 90%;
    font-size: calc(1rem + 0.5vw);
}

@keyframes BalanceAmount {
    0% {
        background-color: #d46180;
    }

    49% {
        background-color: #d46180;
    }

    50% {
        background-color: #b73235;
    }

    99% {
        background-color: #b73235;
    }

    100% {
        background-color: #d46180;
    }
}

@keyframes ReturnAmount {
    0% {
        background-color: #d46180;
    }

    49% {
        background-color: #d46180;
    }

    50% {
        background-color: #008020;
    }

    99% {
        background-color: #008020;
    }

    100% {
        background-color: #d46180;
    }
}

.BalanceAmount {
    font-size: calc(0.5rem + 0.75vw);
    font-weight: 500;
    animation: BalanceAmount 1s infinite;
}

.ReturnAmount {
    font-size: calc(0.5rem + 1.1vw);
    font-weight: 500;
    animation: ReturnAmount 1s infinite;
}

.cancel {
    background-color: var(--sn-cancel) !important;
    color: black !important;
}

.e-btn.e-flat.e-primary:hover, .e-css.e-btn.e-flat.e-primary:hover {
    border-color: var(--sn-primary) !important;
    background: var(--sn-secondary);
    border: 1.5px solid var(--sn-primary);
    color: #fff;
}

.default-button {
    background-color: var(--sn-primary) !important;
    color: white !important;
    border: 1.5px solid var(--sn-secondary) !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    width: 100% !important;
    font-size: 1.7rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

    .default-button .fa-solid {
        color: white !important;
        padding:0 5px;
    }

    .default-button:hover {
        background-color: var(--sn-secondary) !important;
        border: 1.5px solid var(--sn-primary) !important;
    }

        .default-button:hover .fa-solid {
            color: white !important;
        }

.white-button {
    background-color: white !important;
    color: var(--sn-primary) !important;
    border: 1.5px solid var(--sn-primary) !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    width: 100% !important;
    font-size: 1.7rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

    .white-button .fa-solid {
        padding: 0 5px;
    }

    .white-button:hover {
        background-color: var(--sn-secondary) !important;
        color: white !important;
    }

        .white-button:hover .fa-solid {
            color: white !important;
        }

.credentials-input {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
    background-color: var(--sn-primary);
    color: white;
    border-radius: 0.5rem;
}

.error-message {
    color: red;
    font-weight: 600;
    font-size: 1.4rem;
}

.e-dialog .e-dlg-header {
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.e-dialog .e-dlg-header-content {
    border-bottom: 1px solid #dee2e6;
    padding: 12px 14px 12px 12px;
    background: var(--sn-primary);
    border-radius: 6px 6px 0 0 !important;
}

span.e-icon-dlg-close.e-icons.e-btn-icon {
    color: white !important;
    font-weight: bold !important;
    font-size: 2rem !important;
}

.Balance-Amount {
    background-color: #CE2029 !important;
}

.Return-Amount {
    background-color: #008020 !important;
}

.CreditNoteBG {
    background-color: #820A00 !important;
}

.ForignBG {
    background-color: #6B820A !important;
}

.togglebutton {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: 450ms;
    height: 150px;
    background: #ffffff6b;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

    .togglebutton i {
        font-size: 2.8rem;
        padding: 4px;
    }

.togglebutton-expand {
    right: 505px;
    transition: 450ms;
}

.togglebutton-ar {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: 450ms;
    height: 150px;
    background: #ffffff6b;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

    .togglebutton-ar i {
        font-size: 2.8rem;
        padding: 4px;
    }

.togglebutton-expand-ar {
    left: 505px;
    transition: 450ms;
}

i.fa-solid.fa-info-circle {
    color: white;
    font-size: calc(0.7rem + 0.8vw);
}

    i.fa-solid.fa-info-circle:hover {
        cursor: pointer;
    }


.lines {
    grid-area: lines;
    position: relative;
    overflow: auto;
    scroll-behavior: smooth;
    height: 100%;
    text-align: center;
}

    .lines table {
        margin-top: -0.5rem;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0px 0.5rem;
        z-index: 100;
    }

    .lines thead {
        font-size: 1.3rem;
        color: white;
        background-color: var(--sn-primary);
        position: sticky;
        top: 0;
        text-align: center;
    }

        .lines thead tr td {
            padding: 1.0625rem 0.5rem;
            position: relative;
            z-index: 5;
        }

    .lines tbody {
        text-align: center;
    }

        .lines tbody tr {
            font-size: 1.3rem;
            color: var(--sn-primary);
            background-color: white;
            font-weight: 600;
        }

            .lines tbody tr.active {
                outline: 3px solid var(--sn-secondary);
            }

            .lines tbody tr.void {
                outline: 2px solid #ffc107;
                color: red;
                background-color: #d3d3d321;
                background-color: #ffffff;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%23ffc107' fill-opacity='0.12' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E");
            }

        .lines tbody .payment-lines {
            color: white;
            background-color: #007882;
        }

        .lines tbody tr td {
            padding: 1.0625rem 0.5rem;
        }

    .lines .Pospage-watermark {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        color: var(--sn-primary);
        opacity: 60%;
        font-size: calc(1.4rem + 2.2vw);
        z-index: 100;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        pointer-events: none;
    }

.num-pad {
    grid-row: span 4;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(4,1fr);
    gap: 0.5rem;
}

.num {
    background-color: white;
    color: var(--sn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    border-radius: 6px;
}

    .num:hover {
        background-color: var(--sn-secondary);
        color: white;
    }

.border-left {
    border-left: 2px solid var(--sn-primary) !important;
}

.border-right {
    border-right: 2px solid var(--sn-primary) !important;
}

.dialog-barcode-input {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
    background-color: var(--sn-primary);
    color: white;
    border-radius: 0.5rem;
}

.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

.e-btn .e-btn-icon.e-icon-left, .e-css.e-btn .e-btn-icon.e-icon-left {
    margin: 0 0 !important;
}

