
:root {

}

html {
    background-color:#F3F4F6;
}

body {
    margin: 0;
    background-color: #F3F4F6;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

body.modal-on-display {
    overflow: hidden;
}

ui-header {
    display: block;
    position: relative;
    z-index: 1;
}

ui-header > .box {
    box-shadow: 0 0 4px 0 rgba(0,0,0,0.10);
    background-color: white;
}

menu-item,
.menu-item {
    user-select: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #757575;
    padding: 3.3px 5.5px;
    white-space: nowrap;
}

menu-item.selected,
.menu-item.selected {
    background-color: #CA0A1C;
    color: white;
}

.menu-item .subtab {
    background-color: #FFFFFF;
    overflow: hidden;
    color: #757575;
    border-radius: 2px;
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 0;
    opacity: 0;
    padding: 0;
    transition: 300ms max-width, 300ms opacity, 300ms padding;
}

menu-item-subtab .menu-item.selected .subtab {
    max-width: 100px;
    opacity: 1;
    padding: 0 5px;
}

menu-item-subtab .menu-item.selected .subtab .selected{
    color: #CA0A1C;
}

menu-item-subtab .menu-item {
    display: flex;
    gap: 5px;
    padding-right: 3px;
}

menu-item-subtab .menu-item.selected {
    padding-right: 3px;
}

.card {
    background: #FFFFFF;
    box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.10), 0 1px 3px 0 rgba(0, 0, 0, 0.10);
    border-radius: 6px;
    font-size: 14px;
    color: #6B7280;
}

.interactive {
    cursor: pointer;
    transition: opacity 300ms;
}

.interactive:active {
    opacity: 30%
}

action-button {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    color: #111827;
    display: inline-block;
    padding: 6px 9px;
    -webkit-tap-highlight-color: transparent;
}

action-button:active {
    background: #e4e4e4;
}

checkbox {
    background-color: #D8D8D8;
    border-radius: 4px;
    width: 16px;
    height: 16px;
}

checkbox.checked {
    background-color: #CA0A1C;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

dropdown, dropdown-multiple select,
dropdown-multiple-platformless, faux-dropdown, date-time-input {
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05), inset 0 0 0 0 #D1D5DB;
    border-radius: 6px;
    font-size: 15px;
    color: #757575;
    padding: 6px 10px;
    padding-right: 40px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position-x: right;
    background-position-y: 50%;
    background-repeat: no-repeat;
    background-size: 2.5em 1.5em;
    position: relative;
}

dropdown-multiple-platformless {
    background-image: none;
    height: 100px;
    overflow: scroll;
}


dropdown-multiple select {
    appearance: none;
    padding-top: 5px;
    padding-bottom: 5px;
}

dropdown > select {
    appearance: none;
    opacity: 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

date-time-input > input {
    appearance: none;
    opacity: 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

input-label {
    display: inline-block;
}

input-label > column > span {
    color: #757575;
    font-size: 13px;
}

.label {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: bold;
    color: rgb(117, 117, 117);
}


light-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: rgb(199, 199, 199);
    border: 0.5px solid rgb(161, 161, 161);
    box-shadow: 0 0 1px 0 rgba(199, 197, 197, 0.66);
}

light-indicator.green {
    background: rgba(40,200,64);
    border: 0.5px solid rgba(32, 160, 51);
    box-shadow: 0 0 1px 0 rgba(40,200,64,0.66);
}

light-indicator.yellow {
    background: rgb(230, 199, 46);
    border: 0.5px solid rgb(230, 199, 46);
    box-shadow: 0 0 1px 0 rgba(230, 199, 46, 0.66);
}

light-indicator.red {
    background: rgb(200, 40, 40);
    border: 0.5px solid rgb(160, 32, 32);
    box-shadow: 0 0 1px 0 rgba(200, 40, 40, 0.66);
}


doughnut-chart,
doughnut-chart2,
line-chart {
    height: 100%;
    display: flex;
    justify-content: center;
}

doughnut-chart > canvas,
doughnut-chart2 > canvas,
line-chart > canvas{
    height: 100%;
    width: 100%;
}

basic-tab-view {
    overflow: hidden;
    visibility: hidden;
    position: relative;
}

.swipe-wrap {
    overflow: hidden;
    position: relative;
}

.swipe-wrap > * {
    float: left;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-top: 28px;
    display: flex;
    flex-direction: column;
}

.swipe-wrap > * > * {
    padding-left: 22px;
    padding-right: 22px;
}

top-products-per-family,
top-products-single {
    display: flex;
    flex-direction: column;
}

.generic-table {
    display: table;
    font-size: 16px;
}

.generic-header {
    font-weight: 450;
    background-color: #CA0A1C24;
    color: #CA0A1C;
}

.generic-header.gold {
    background-color: #FF950024;
    color: #FF9500;
}

.generic-row {
    display: table-row;
}

.generic-row > *:first-child { padding-left: 20px; }
.generic-row > *:last-child { padding-right: 20px; }

.generic-row:first-child > *:first-child { border-top-left-radius: 6px; }
.generic-row:first-child > *:last-child { border-top-right-radius: 6px; }
.generic-row:last-child > *:first-child { border-bottom-left-radius: 6px; }
.generic-row:last-child > *:last-child { border-bottom-right-radius: 6px; }


.generic-row > * {
    display: table-cell;
    padding-top: 12px;
    padding-bottom: 12px;
}

.activity-row > *:not(:first-child) {
    text-align: right;
}

.billing-chart {
    height: calc(100vh - 300px);
}

@media only screen and (orientation: landscape) {
    .billing-chart {
        height: 95vh;
    }
}


.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left:6px solid black;
    margin-right: 8px;
    transition: 200ms transform;
}

.arrow.open {
    transform: rotate(90deg);
}

.activity-header .arrow {
    border-left-color: #CA0A1C;
}

input[type="text"],
input[type="password"] {
    outline: none;
    background: #FFFFFF;
    border: 0.5px solid #D1D5DB;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 0px #D1D5DB, inset 0 0 0 0 #FFFFFF;
    border-radius: 5px;
    font-size: 12pt;
    padding: 7px;
}

.login-button {
    background-color: #CA0A1C;
    color: #FFFFFF;
    font-size: 14px;
    border-radius: 8px;
    padding: 6pt;
    text-align: center;
}

.login-message.failed {
    background-color: #ffebebff;
    color: #e72622;
    padding: 1em;
    border-radius: 7px;
    border: 1px solid;
}

.login-message.info {
    background-color: #ebf7ff;
    color: #229be7;
    padding: 1em;
    border-radius: 7px;
    border: 1px solid;
}

reports-tab .restaurant-list span:not(:last-child)::after {
    content: ', ';
}

reports-tab .restaurant-list {
    font-weight: 600;
    font-size: 14px;
}

period-selector {
    position: absolute;
    right: 20px;

    color: transparent;
    font-size: 12px;

    padding: 0 10px 0 15px;
    background: white;
    box-shadow: 0 4px 4px 0 rgba(0,0,0,0.10);
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
    max-height: 0;

    transition: 210ms color, 300ms max-height, 300ms padding;
}


period-selector.visible {
    color: black;
    padding: 3px 10px 5px 15px;
    max-height: 50px;
    transition: 210ms 90ms color, 300ms max-height, 300ms padding;
}

period-selector .accented-text {
    opacity: 0;
    transition: 210ms opacity;
}

period-selector.visible .accented-text {
    opacity: 1;
    transition: 210ms 90ms opacity;
}

modals-container {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 999;
}

modal-period-selector, modal-period-selector-report {
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 40px;
    position: relative;
    top: 185px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 32px 2px rgba(0,0,0,0.20);
    border-radius: 16px;

    animation-duration: 300ms;
    animation-name: modal-appear;
    transform-origin: right top;
}

modal-period-selector-report {
    animation-duration: 300ms;
    animation-name: modal-appear-left;
    transform-origin: left 90px;
    top: 80px;
}

modal-period-selector.willHide {
    animation-duration: 300ms;
    animation-name: modal-disappear;
    opacity: 0;
}

modal-period-selector-report.willHide {
    animation-duration: 300ms;
    animation-name: modal-disappear-left;
    opacity: 0;
}

modal-period-selector.hidden, modal-period-selector-report.hidden {
    display: none;
}

modal-menu-item {
    flex: 1;
    padding: 12px 18px;
    line-height: 22px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    font-size: 17px;
    color: #000000;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

modal-menu-item.disabled {
    background-color: rgb(200,200, 200, 1);
    opacity: 0.5;
}

modal-menu-item.disabled:hover {
    background-color: rgb(200,200, 200, 1);
    opacity: 0.5;
}

modal-menu-item.Centered > row {
    justify-content: center;
}

modal-menu-item.Centered > row > column {
    align-items: center;
}

modal-menu-item.Default > row {
    padding-left: 12px;
}

modal-menu-item .checkmark {
    width: 16px;
    position: absolute;
    top: calc(50% - 8px);
    left: 9px;
}


modal-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

modal-menu-item .subtitle {
    font-size: 12px;
    color: rgba(60,60,67,0.60);
    line-height: 20px;
}

column > modal-menu-item + modal-menu-item {
    border-top: solid 1px rgba(17,17,17,0.2);
}

row.modal-menu-items-row > modal-menu-item + modal-menu-item {
    border-left: solid 1px rgba(17,17,17,0.2);
}

row.modal-menu-items-row > modal-menu-item + modal-menu-item {
    border-left: solid 1px rgba(17,17,17,0.2);
}

row.modal-menu-items-row + row.modal-menu-items-row {
    border-top: solid 1px rgba(17,17,17,0.2);
}

modal-period-selector > column > modal-menu-item:first-child,
modal-period-selector-report > column > modal-menu-item:first-child {
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

modal-period-selector row.modal-menu-items-row:last-child modal-menu-item:last-child,
modal-period-selector-report row.modal-menu-items-row:last-child modal-menu-item:last-child{
    border-bottom-right-radius: 16px;
}

modal-period-selector row.modal-menu-items-row:last-child modal-menu-item:first-child,
modal-period-selector-report row.modal-menu-items-row:last-child modal-menu-item:first-child{
    border-bottom-left-radius: 16px;
}

.modal-quarter-calendar row.modal-menu-items-row:last-child modal-menu-item:first-child,
.modal-quarter-calendar row.modal-menu-items-row:last-child modal-menu-item:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

modal-menu-grouper-text {
    font-size: 11px;
    color: #000000;
    line-height: 13px;
    padding: 6px 13px 4px;
    background-color: rgba(204, 204, 204, 0.3);
}

modal-menu-grouper-text .link {
    color: #229be7;
    display: flex;
    align-items: center;
}

.modal-month-calendar.swap, .modal-quarter-calendar.swap{
    animation-duration: 300ms;
    animation-name: calendar-swap;
}

@keyframes calendar-swap {
    0% {
        transform: none;
        opacity: 1;
    }
    50% {
        opacity: 0;
        transform: scale(0.8) translateX(-100px);
    }
    51% {
        transform: scale(0.8) translateX(+100px);
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

@keyframes modal-appear {
    0% {
        transform: scale(0.5) translateY(-20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes modal-disappear {
    0% {
        opacity: 1;
        transform: none;
    }
    100% {
        transform: scale(0.5) translateY(-20px);
        opacity: 0;
    }
}


@keyframes modal-appear-left {
    0% {
        transform: scale(0.5) translateY(+20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes modal-disappear-left {
    0% {
        opacity: 1;
        transform: none;
    }
    100% {
        transform: scale(0.5) translateY(+20px);
        opacity: 0;
    }
}

:root {

}

html {
    background-color:#F3F4F6;
    font-family: -apple-system-ui, "Helvetica Neue", Helvetica, sans-serif;
}

body {
    margin: 0;
}

@font-face {
    font-family: "OCR-A";
    src: local("OCR-A"), url("Resources/OCRA.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: 'Biro';
    font-style: normal;
    font-weight: 400;
    src: local('Biro'), url('Resources/Biro.otf') format('opentype');
}

view.ticket-floating-action {
    z-index: 1;
    transition: border-bottom 300ms, box-shadow 300ms;
    border-bottom: 1px solid rgba(204, 204, 204, 0);
}

view.ticket-floating-action.overlay {
    border-bottom: 1px solid rgba(204, 204, 204, 0.55);
    background-color: rgba(243, 244, 246, 0.6);
    box-shadow: 0 3px 22px rgba(0, 0, 0, 0.16);
}

.warning-message {
    background: #ffc9c9;
    padding: 20px;
    border-radius: 5px;
    color: #7c0101;
    border: 1.5px solid #7c0101;
    margin-bottom: 15px;
}

receipt .comment {
    font-family: 'Biro', cursive, monospace;
    line-height: 21pt;
    font-size: 20pt;
    width: 80%;
    padding-top: 30pt;
    padding-bottom: 20pt;
    margin: auto;
    transform: rotate(-6deg);
    color: #477fd5;
}

ticket-review-view {
    padding-bottom: 100pt;
}

receipt {
    width: 85%;
    background-color: white;
    display: flex;
    max-width: 400px;
    box-sizing: border-box;
    margin: 24px auto auto;
    padding: 60px 30px 35px;
    font-family: "Consolas", monospace;
    font-size: 11pt;

    box-shadow: -7px 10px 33px -4px rgba(0, 0, 0, 0.2);

    -webkit-user-select: none;
    user-select: none;
}

receipt .printed-part {
    filter: url(#rugged);
}

receipt .selectable {
    -webkit-user-select: text;
    user-select: text;
}

receipt.animate {
    animation-duration: 1s;
    animation-name: slide-in;
}

@keyframes slide-in {
    from {
        translate: 0 150vh;
        scale: 150%;
    }

    to {
        translate: 0 0;
        scale: 1 1;
    }
}

receipt .stretch {
    transform: scale(1,1.5);
    transform-origin: 0;
    font-size: 17pt;
    font-weight: 1000;
    padding: 4px 0;
}

receipt .header {
}

receipt .header .logo {
    filter: grayscale(1) contrast(20);
}

receipt .header .commercial-name {
    font-weight: 1000;
    font-size: 14pt;
    align-self: center;
    text-align: center;
}
receipt .header .legal-data,
receipt .header .contact-data,
receipt .ticket-data {
    font-size: 80%;
}

receipt .header .legal-data > *,
receipt .header .contact-data > *
{
    align-self: center;
    text-align: center;
}

receipt .link {
    text-decoration: underline;
    color: #477fd5;
}

receipt .items {
    letter-spacing: -0.8px;
    display: grid;
    grid-template-columns: min-content 1fr repeat(2, min-content);
    gap: 5px 10px;
}

receipt .items .header {
    font-weight: 1000;
    justify-self: end;
}

receipt .items .expanded {
    grid-column: span 2;
    justify-self: right;
}
receipt .line {
    grid-column: span 4;
    border-top: 1px solid black;
}

receipt .line.thick {
    border-top-width: 4px;
}

receipt .items .price {
    justify-self: right;
}

receipt .items .line.first {
    margin-bottom: 2px;
}

receipt .items .line.last {
    margin-top: 2px;
}

receipt .key-value {
    justify-content: space-between;
    padding: 5px 0;
}

thinking-button {
    display: inline-block;
    padding: 16px 24px;
    background-color: rgb(0, 135, 255);
    color: white;
    border-radius: 50px;
    font-family: -apple-system-ui, sans-serif;
}

thinking-button.thinking {
    padding: 16px 24px;
    background-color: rgb(227, 227, 227);
    color: #414141;
    border-radius: 50px;
    font-family: -apple-system-ui, sans-serif;
}

named-input {
    flex: 1;
}

data-input, country-input {
    display: flex;
}

data-input input,
country-input select {
    appearance: none;
    border: 1px solid #d9d9d9;
    padding: 8px;
    font-size: 11pt;
    border-radius: 8px;
    box-shadow: 1px 1px 7px -1px #0000004F;
    outline: none;
    flex-grow: 1;
    width: 1px;
    background: white;
    transition: background-color 300ms, border 300ms;
}

data-input input:focus,
country-input select:focus {
    border: 1px solid #0087ff;
}

named-input .title {
    font-size: smaller;
    color: #555;
    padding-bottom: 4px;
    padding-top: 8px;
    transition: color 300ms;
}

named-input:focus-within .title {
    color: #0087ff;
}

named-input.invalid .title {
    color: #cb0808!important;
}

named-input.invalid data-input input,
named-input.invalid country-input select {
    background: #ffb3b3;
    border: 1px solid #cb0808;
}

data-form-view {
    animation-duration: 1s;
    animation-name: unfold;}

@keyframes unfold {
    from {
        max-height: 0;
        opacity: 0;
    }

    to {
        max-height: 100vh;
        opacity: 1;
    }
}
view, row, column {
    display: flex;
}

view.row, row { flex-direction: row; }
view.column, column { flex-direction: column; }
view.row-reverse, row.reverse { flex-direction: row-reverse; }
view.column-reverse, column.reverse { flex-direction: column-reverse; }

image > img { width: 100%; }