﻿:root {
    --sidebar-width: 204px;
    --blue: #0788ff;
    --blue-dark: #056fd1;
    --blue-soft: #e9f4ff;
    --ink: #232323;
    --navy: #202957;
    --muted: #5e6470;
    --line: #dce2ea;
    --panel: #ffffff;
    --page: #f6f7f9;
    --danger: #ef2a2a;
    --danger-soft: #ffe1e1;
    --green: #32c85a;
    --green-dark: #21a846;
    --shadow: 0 18px 50px rgba(18, 30, 54, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.pos-app {
    min-height: 100vh;
    background: var(--page);
}

.topbar {
    height: 73px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 32px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.reports-control {
    position: relative;
}

.topbar-title,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-title {
    color: var(--ink);
    background: transparent;
    border: 0;
    font-size: 22px;
    font-weight: 700;
}

.reports-menu,
.reports-submenu {
    position: absolute;
    z-index: 45;
    min-width: 140px;
    padding: 8px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.reports-menu {
    top: 42px;
    left: 0;
}

.reports-menu-group {
    position: relative;
}

.reports-menu-item,
.reports-submenu a {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 8px 12px;
    color: var(--navy);
    background: #fff;
    border: 0;
    border-radius: 5px;
    text-decoration: none;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.reports-menu-item:hover,
.reports-menu-group:focus-within>.reports-menu-item,
.reports-menu-group:hover>.reports-menu-item,
.reports-submenu a:hover {
    color: #fff;
    background: var(--blue);
}

.reports-submenu {
    top: 0;
    left: calc(100% + 6px);
    display: none;
    min-width: 300px;
}

.reports-menu-group:hover>.reports-submenu,
.reports-menu-group:focus-within>.reports-submenu,
.reports-menu-group.is-open>.reports-submenu {
    display: block;
}

.topbar-icon {
    width: 28px;
    height: 28px;
}

.topbar-arrow {
    width: 20px;
    height: 20px;
}

.topbar-action-icon {
    width: 26px;
    height: 26px;
}

.topbar-help-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.topbar-user {
    color: var(--navy);
    font-weight: 600;
}

.topbar-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.pos-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 8px minmax(0, 1fr);
    min-height: calc(100vh - 73px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0 16px 3px;
    background: var(--panel);
    border-right: 1px solid var(--blue);
}

.sidebar-resizer {
    position: relative;
    width: 8px;
    min-width: 8px;
    background: linear-gradient(90deg, #fff 0, #fff 3px, var(--blue-soft) 3px, var(--blue-soft) 5px, #fff 5px);
    border-right: 1px solid var(--line);
    cursor: col-resize;
    touch-action: none;
}

.sidebar-resizer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: var(--blue);
    opacity: 0.45;
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
.sidebar-resizer.is-dragging::before {
    opacity: 1;
}

.sidebar-resizer:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

body.is-resizing-sidebar {
    cursor: col-resize;
    user-select: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.menu-section h2 {
    margin: 0 14px 8px 20px;
    font-size: 14px;
    font-weight: 800;
    color: #000;
}

.menu-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 16px;
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 6px 6px 0;
}

.menu-item img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.menu-item.active {
    color: #fff;
    background: var(--blue);
}

.menu-item.active img {
    filter: brightness(0) invert(1);
}

.daily-card {
    margin: 0 18px 46px 18px;
    padding: 16px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: #fff;
}

.daily-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.daily-card-title img {
    width: 26px;
    height: 26px;
}

.daily-card time {
    display: block;
    margin: 8px 0 26px 34px;
    color: var(--danger);
    font-weight: 800;
}

.daily-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.daily-card strong {
    display: block;
    margin-top: 8px;
    color: #18ad3c;
    font-size: 22px;
    line-height: 1.1;
}

.pos-main {
    min-width: 0;
    padding: 24px 17px 22px;
}

.csrf-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pos-workspace {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.71fr);
    gap: 17px;
    max-width: 1220px;
    margin: 0 auto;
}

.sale-pane,
.product-pane {
    min-width: 0;
}

.customer-control,
.category-control {
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: var(--panel);
    border: 2px solid var(--blue);
    border-radius: 8px;
}

.customer-control img,
.category-control img {
    width: 22px;
    height: 22px;
}

.customer-control input,
.category-control select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.category-control select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.category-menu-button {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 34px 0 0;
    overflow: hidden;
    color: var(--ink);
    background: transparent url("/static/icons/arrow.svg") no-repeat right 2px center / 22px;
    border: 0;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.category-results {
    position: absolute;
    z-index: 30;
    top: 48px;
    left: 0;
    right: 0;
    max-height: 270px;
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-option {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--navy);
    background: #fff;
    border: 0;
    border-radius: 5px;
    text-align: left;
    font-weight: 800;
}

.category-option:hover,
.category-option.active {
    color: #fff;
    background: var(--blue);
}

.icon-button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
}

.icon-button img {
    width: 16px;
    height: 16px;
}

.dropdown-results {
    position: absolute;
    z-index: 20;
    top: 48px;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dropdown-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    text-align: left;
    color: var(--navy);
    background: #fff;
    border: 0;
    border-radius: 6px;
}

.dropdown-item:hover {
    background: var(--blue-soft);
}

.dropdown-item span {
    color: var(--muted);
    font-size: 13px;
}

.cart-table,
.product-list,
.product-detail {
    background: var(--panel);
    border: 1px solid var(--blue);
    border-radius: 8px;
}

.cart-table {
    height: min(58vh, 590px);
    min-height: 420px;
    margin-top: 10px;
    overflow: hidden;
}

.cart-head,
.cart-row {
    display: flex;
    justify-content: space-between;
    padding-right: 40px;
    align-items: center;
}

.cart-head {
    height: 48px;
    padding: 0 18px;
    color: #343434;
    background: #f1f2f5;
    font-size: 14px;
    font-weight: 800;
}

.cart-body {
    height: calc(100% - 48px);
    overflow: auto;
    padding: 6px 0;
}

.cart-row {
    position: relative;
    min-height: 48px;
    padding: 0 18px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 700;
}

.cart-row.selected {
    color: var(--blue);
    background: var(--blue-soft);
}

.cart-name {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent;
    border: 0;
    font-weight: 700;
}

.qty-input {
    width: 74px;
    height: 34px;
    color: inherit;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
}

.qty-input:focus {
    border-color: var(--blue);
    outline: 0;
    background: #fff;
}

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

.row-remove {
    position: absolute;
    right: 8px;
    width: 26px;
    height: 26px;
    color: var(--danger);
    background: transparent;
    border: 0;
    opacity: 0;
    font-size: 18px;
    line-height: 1;
}

.cart-row:hover .row-remove,
.cart-row.selected .row-remove {
    opacity: 1;
}

.empty-state {
    display: grid;
    min-height: 84px;
    place-items: center;
    padding: 18px;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.sale-guide-empty {
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 250px;
    padding: 24px 34px;
    color: var(--navy);
    background: linear-gradient(180deg, #fff, #f7fbff);
    font-weight: 800;
}

.sale-guide-empty strong {
    color: var(--blue);
    font-size: 18px;
}

.sale-guide-empty ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
    color: #4c5270;
    font-size: 14px;
    line-height: 1.35;
}

.empty-state.compact {
    min-height: 42px;
    padding: 8px;
}

.sale-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.danger-outline,
.print-button,
.sell-button,
.primary-button,
.secondary-button,
.primary-auth-button,
.secondary-auth-button {
    min-height: 56px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.danger-outline {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid var(--danger);
}

.print-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--blue);
    background: #aee1ff;
    border: 0;
}

.print-button img {
    width: 24px;
    height: 24px;
}

.cash-total {
    height: 98px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-top: 12px;
    padding: 8px 10px 14px 22px;
    background: #fff;
    border: 1px solid var(--navy);
    border-radius: 8px;
}

.cash-total span {
    align-self: start;
    color: var(--danger);
    font-size: 14px;
    font-weight: 800;
}

.cash-total strong {
    color: var(--danger);
    font-size: 42px;
    line-height: 1;
}

.sell-button {
    width: 100%;
    margin-top: 12px;
    color: #fff;
    background: var(--green);
    border: 0;
    font-size: 21px;
}

.sell-button:hover {
    background: var(--green-dark);
}

.product-pane {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-list {
    height: min(55vh, 565px);
    min-height: 420px;
    overflow: hidden;
}

.product-head,
.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-head {
    height: 58px;
    padding: 0 20px;
    color: #343434;
    font-size: 14px;
    font-weight: 800;
}

.product-results {
    height: calc(100% - 58px);
    overflow: auto;
    padding: 6px 18px 12px;
}

.product-row {
    width: 100%;
    min-height: 52px;
    padding: 0 10px;
    color: var(--navy);
    background: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.product-row:hover,
.product-row.selected {
    color: #fff;
    background: var(--blue);
}

.product-row.out-of-stock {
    color: var(--danger);
    background: var(--danger-soft);
}

.product-row.out-of-stock:hover {
    color: #fff;
    background: var(--danger);
}

.product-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail {
    padding: 24px 28px 6px;
}

.product-detail h2 {
    min-height: 39px;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--blue);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 25px;
    line-height: 1.25;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
}

.product-detail-grid>div {
    min-height: 84px;
}

.product-detail-grid>div+div {
    padding-left: 54px;
    border-left: 1px solid #c7c7c7;
}

.product-detail-grid span,
.checkout-field span {
    display: block;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.product-detail-grid strong {
    display: block;
    margin-top: 16px;
    color: var(--blue);
    font-size: 25px;
}

.product-search {
    display: grid;
    grid-template-columns: 86px 1fr 44px;
    align-items: center;
    gap: 10px;
}

.product-search>span {
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 800;
}

.product-search input {
    height: 44px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    outline: 0;
}

.product-search button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 6px;
}

.product-search img {
    width: 24px;
    height: 24px;
}

.modal-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.checkout-modal,
.item-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 28px;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.item-modal {
    width: min(450px, 100%);
    padding: 18px 28px 22px;
}

.checkout-modal h2,
.item-modal h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 22px;
}

.item-modal h2 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.modal-close img {
    width: 16px;
    height: 16px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    color: var(--danger);
    background: var(--danger-soft);
    border-radius: 8px;
}

.payment-modal {
    width: min(560px, 100%);
}

.sale-help-modal {
    position: relative;
    width: min(520px, 100%);
    padding: 28px 34px 30px;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sale-help-modal h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 22px;
}

.sale-help-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 24px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.sale-help-actions {
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.sale-help-actions .primary-button {
    min-width: 150px;
    min-height: 44px;
}

.payment-note,
.item-note {
    max-width: 410px;
    margin: 4px auto 24px;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.45;
}

.payment-row,
.item-field {
    display: grid;
    grid-template-columns: 120px 1fr 28px;
    align-items: center;
    gap: 10px;
    max-width: 330px;
    margin: 10px auto;
}

.payment-row span,
.item-field span {
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
}

.item-field span {
    color: var(--navy);
    font-size: 14px;
}

.payment-row input,
.item-field input {
    height: 34px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    color: var(--navy);
    font-weight: 800;
}

.payment-row input[readonly],
.item-field input[readonly] {
    background: #fff;
}

.payment-stepper {
    height: 22px;
    display: grid !important;
    place-items: center;
    color: var(--muted) !important;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 14px !important;
    line-height: 1;
}

.item-code,
.item-name {
    display: block;
    color: var(--blue);
    font-size: 20px;
    line-height: 1.2;
}

.item-name {
    margin-bottom: 22px;
}

.item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 280px;
    margin: 22px auto 0;
}

.checkout-total span {
    font-weight: 800;
}

.checkout-total strong {
    font-size: 28px;
}

.checkout-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.checkout-field select {
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    background: #fff;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.primary-button,
.secondary-button {
    border: 0;
}

.primary-button {
    color: #fff;
    background: var(--green);
}

.secondary-button {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid var(--danger);
}

.checkout-error,
.form-error,
.field-error {
    color: var(--danger);
    font-weight: 700;
}

.checkout-error {
    margin-top: 14px;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    max-width: min(420px, calc(100vw - 40px));
    padding: 14px 18px;
    color: #fff;
    background: var(--navy);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.toast.error {
    background: var(--danger);
}

.toast.success {
    background: var(--green-dark);
}

.auth-body {
    background: #eef3f8;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: 26px;
}

.auth-form,
.auth-actions {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-weight: 800;
}

.auth-form input {
    height: 44px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.auth-form input:focus {
    border-color: var(--blue);
    outline: 0;
}

.primary-auth-button,
.secondary-auth-button {
    display: grid;
    place-items: center;
    padding: 0 16px;
}

.primary-auth-button {
    color: #fff;
    background: var(--blue);
    border: 0;
}

.secondary-auth-button {
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid var(--blue);
}

.auth-link {
    margin: 18px 0 0;
    color: var(--muted);
}

.auth-link a {
    color: var(--blue);
    font-weight: 800;
}

.placeholder-page {
    padding: 40px;
}

.placeholder-panel {
    max-width: 760px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.placeholder-panel h1 {
    margin: 0 0 10px;
    color: var(--navy);
}

.report-window {
    min-height: calc(100vh - 130px);
    padding: 0 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.report-header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.report-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.report-close {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #555;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.report-toolbar,
.report-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 0;
}

.report-filters {
    justify-content: flex-start;
}

.report-filters input,
.report-filters button,
.report-filters select,
.report-search input,
.report-search button {
    height: 34px;
    border: 1px solid var(--blue);
    border-radius: 5px;
}

.report-filters input,
.report-filters button,
.report-filters select {
    padding: 0 10px;
    background: #fff;
}

.report-filters button {
    color: #fff;
    background: var(--blue);
    font-weight: 800;
}

.report-search {
    width: min(370px, 100%);
    display: grid;
    grid-template-columns: 1fr 38px;
}

.report-search input {
    min-width: 0;
    padding: 0 12px;
    border-right: 0;
    border-radius: 5px 0 0 5px;
}

.report-search button {
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 0 5px 5px 0;
}

.report-search img {
    width: 18px;
    height: 18px;
}

.report-table-wrap {
    max-height: min(68vh, 650px);
    overflow: auto;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--navy);
    font-size: 14px;
}

.report-table th,
.report-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #edf1f4;
    text-align: left;
}

.report-table th {
    color: #000;
    background: #fff;
    font-weight: 800;
}

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

.report-table .success-cell {
    color: #00a63d;
}

.report-table .danger-cell {
    color: var(--danger);
}

.price-table th:last-child,
.price-table td:last-child,
.report-table td:not(:first-child),
.report-table th:not(:first-child) {
    text-align: right;
}

.report-empty,
.report-message {
    padding: 34px;
    color: var(--muted);
    text-align: center !important;
    font-weight: 800;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 60px;
}

.report-print {
    width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.report-summary {
    display: grid;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.report-summary label {
    display: grid;
    grid-template-columns: 260px 170px;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 700;
}

.report-summary input {
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--navy);
    background: #fff;
    font-weight: 800;
}

.plain-page {
    min-height: 100vh;
    padding: 0;
    background: #fff;
}

.directory-title {
    margin: 0;
    padding: 8px 14px;
    color: #6c6c6c;
    font-size: 14px;
}

.directory-window {
    min-height: calc(100vh - 38px);
    background: #fff;
    border: 0;
    box-shadow: none;
}

.directory-topbar {
    height: 73px;
}

.directory-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 8px minmax(0, 1fr);
    min-height: calc(100vh - 73px);
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0 20px 0;
    border: 1px solid var(--blue);
    border-top: 0;
    border-left: 0;
    background: #fff;
}

.app-sidebar .menu-section h2 {
    margin-left: 18px;
    font-size: 14px;
}

.app-sidebar .menu-item {
    min-height: 38px;
    padding-left: 18px;
    font-size: 14px;
}

.app-sidebar .menu-item img {
    width: 20px;
    height: 20px;
}

.app-sidebar .daily-card {
    margin: 22px 18px 0;
}

.directory-main {
    min-width: 0;
    padding: 22px 28px 32px;
}

.report-main {
    padding: 16px 14px 24px;
}

.report-layout {
    min-height: calc(100vh - 73px);
}

.report-range {
    width: 260px;
}

.report-date-input {
    width: 165px;
}

.report-period-control {
    min-width: 280px;
    height: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px 38px;
    align-items: center;
    overflow: hidden;
    border: 2px solid var(--blue);
    border-radius: 8px;
    background: #fff;
}

.report-period-control span {
    min-width: 0;
    padding: 0 12px;
    overflow: hidden;
    color: #000;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.report-period-control input {
    width: 38px;
    min-width: 38px;
    padding: 0;
    color: transparent;
    border: 0;
    border-left: 1px solid #d9e7f7;
    border-radius: 0;
    background: #fff;
}

.finance-report-table {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.finance-report-table th,
.finance-report-table td {
    height: 34px;
    padding: 0 34px;
}

.finance-report-table th {
    font-size: 17px;
}

.profitable-table tbody tr.profit-highlight {
    background: #8dde9f;
}

.profitable-table tbody tr.profit-highlight:nth-child(even) {
    background: #8dde9f;
}

.report-product-select {
    width: 280px;
}

.report-summary.two-columns {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    column-gap: 70px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.report-summary.two-columns label {
    grid-template-columns: 210px minmax(130px, 1fr);
}

.document-overlay {
    position: fixed;
    z-index: 140;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.58);
}

.sale-document-window {
    width: min(1040px, calc(100vw - 48px));
    padding: 0 16px 18px;
    background: #fff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.sale-document-header {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sale-document-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.sale-document-header button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #333;
    background: #fff;
    border: 0;
    font-size: 20px;
    line-height: 1;
}

.sale-document-info {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--blue);
    background: #bfe4ff;
    border: 1px solid var(--blue);
    border-radius: 5px;
    font-weight: 800;
}

.sale-document-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-top: 12px;
}

.sale-document-grid strong,
.document-buyer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 13px;
}

.sale-document-grid input,
.document-buyer select,
.document-column input,
.document-column select {
    height: 32px;
    padding: 0 10px;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 5px;
    font-weight: 800;
}

.document-inline-fields {
    display: grid;
    grid-template-columns: 150px 150px;
    gap: 34px;
}

.document-buyer {
    display: block;
    margin-top: 12px;
}

.document-buyer select {
    width: 100%;
    color: var(--blue);
}

.document-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 12px 6px;
    color: var(--navy);
    text-align: center;
    font-weight: 800;
}

.document-items-panel {
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--blue);
    border-radius: 8px;
}

.document-items-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--blue);
    font-size: 16px;
    font-weight: 800;
}

.document-items-table th,
.document-items-table td {
    height: 38px;
    padding: 0 16px;
    text-align: left;
}

.document-items-table th {
    color: #343434;
    background: #f4f5f7;
}

.document-items-table td:not(:first-child),
.document-items-table th:not(:first-child) {
    text-align: right;
}

.document-items-table tbody tr {
    color: #05a83e;
}

.document-items-table tbody tr.selected {
    color: var(--blue);
    background: var(--blue-soft);
}

.document-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 0 14px;
}

.blue-action,
.red-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
}

.blue-action {
    background: var(--blue);
}

.red-action {
    background: var(--danger);
}

.blue-action span,
.red-action span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #fff;
    border-radius: 3px;
}

.red-action span {
    color: var(--danger);
}

.document-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.document-column {
    display: grid;
    gap: 12px;
}

.document-column label {
    display: grid;
    grid-template-columns: 100px minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.document-column select {
    max-width: 180px;
}

.mini-equals,
.mini-more {
    width: 32px;
    height: 28px;
    color: #444;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.document-footer {
    display: flex;
    justify-content: center;
    gap: 38px;
    padding-top: 12px;
}

.document-footer .secondary-button,
.document-footer .primary-button {
    min-width: 150px;
    min-height: 44px;
}

.product-card-window {
    width: min(1080px, calc(100vw - 48px));
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.product-card-header,
.currency-modal-header {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
}

.product-card-header h2,
.currency-modal-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
}

.product-card-header button,
.currency-modal-header button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #444;
    background: #fff;
    border: 0;
    font-size: 22px;
    line-height: 1;
}

.product-card-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

.product-card-tabs {
    min-height: 650px;
    padding: 0;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    overflow: hidden;
}

.product-card-tabs button {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    color: var(--navy);
    background: #fff;
    border: 0;
    text-align: left;
    font-weight: 800;
}

.product-card-tabs button.active {
    color: #fff;
    background: var(--blue);
}

.product-card-content {
    min-height: 650px;
    padding: 34px 96px 24px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
}

.product-card-hero {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto 28px;
}

.product-card-icon {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f3f6fb;
}

.product-card-icon img {
    width: 82px;
    height: 82px;
}

.product-card-hero p {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.45;
}

.product-card-form {
    display: grid;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
}

.product-card-form label {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 800;
}

.product-card-form input,
.product-card-form select,
.product-card-form button {
    height: 38px;
    min-width: 0;
    padding: 0 12px;
    color: #555;
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    font-weight: 800;
}

.product-card-form button {
    display: grid;
    place-items: center;
    padding: 0;
    color: #8a8a8a;
    font-size: 18px;
}

.product-card-form select {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.product-price-row {
    grid-template-columns: 150px 110px 90px 100px 90px !important;
    margin-top: 22px;
}

.product-price-row span:nth-of-type(2) {
    text-align: right;
}

.product-card-done {
    width: 300px;
    min-height: 50px;
    display: block;
    margin: 24px auto 0;
}

.currency-modal-window {
    width: min(820px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid #8193ad;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.currency-modal-content {
    padding: 28px 70px 44px;
}

.currency-modal-content p {
    max-width: 690px;
    margin: 0 auto 42px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.currency-field {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.currency-field input,
.currency-field select {
    height: 48px;
    min-width: 0;
    padding: 0 18px;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 7px;
    font-size: 20px;
    font-weight: 900;
}

.currency-field input[type="date"] {
    grid-column: 2;
}

.currency-field input[type="time"] {
    grid-column: 3;
}

.currency-field select,
.currency-field>input:last-child {
    grid-column: 2 / 4;
}

.currency-actions {
    display: flex;
    justify-content: center;
    gap: 54px;
    padding-top: 6px;
}

.currency-actions .primary-button,
.currency-actions .secondary-button {
    min-width: 170px;
    min-height: 54px;
    font-size: 18px;
}

.group-card-window {
    width: min(720px, calc(100vw - 48px));
    background: #f4f4f4;
    border: 1px solid #c8c8c8;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.group-card-header {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #d7d7d7;
}

.group-card-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
}

.group-card-header button {
    width: 28px;
    height: 28px;
    border: 0;
    background: #fff;
    color: #444;
    font-size: 22px;
    line-height: 1;
}

.group-card-body {
    display: grid;
    grid-template-columns: 230px 170px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 36px 22px;
}

.group-card-media {
    display: flex;
    justify-content: center;
}

.group-card-icon {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #a9d9ff;
}

.group-card-icon img {
    width: 74px;
    height: 74px;
}

.group-card-tools {
    display: grid;
    align-content: start;
    gap: 10px;
    padding-top: 42px;
}

.group-card-tools .green-action,
.group-card-tools .blue-action,
.group-card-tools .red-action {
    min-height: 34px;
    justify-content: center;
}

.group-card-fields {
    grid-column: 1 / -1;
    display: grid;
    gap: 18px;
    max-width: 460px;
    margin: 0 auto;
}

.group-card-fields label {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.group-card-fields label:not(:first-child) {
    grid-template-columns: 1fr;
}

.group-card-fields span {
    font-size: 15px;
}

.group-card-fields input,
.group-card-fields select,
.group-card-fields textarea {
    min-width: 0;
    padding: 0 12px;
    color: var(--navy);
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 5px;
    font-weight: 700;
}

.group-card-fields input,
.group-card-fields select,
.group-card-fields button {
    height: 36px;
}

.group-card-fields textarea {
    height: 74px;
    padding-top: 10px;
    resize: none;
}

.group-card-fields button {
    border: 1px solid #c8c8c8;
    border-radius: 5px;
    background: #fff;
    color: #777;
    font-size: 16px;
}

.group-card-footer {
    display: flex;
    justify-content: center;
    gap: 38px;
    padding: 22px 0 24px;
}

.group-card-footer .primary-button,
.group-card-footer .secondary-button {
    min-width: 140px;
    min-height: 44px;
}

.expenses-toolbar {
    display: grid;
    grid-template-columns: 280px 280px minmax(260px, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.range-filter,
.expense-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    border: 2px solid var(--blue);
    border-radius: 8px;
    overflow: hidden;
}

.expenses-toolbar select,
.range-filter input,
.expense-search input {
    height: 42px;
    min-width: 0;
    padding: 0 14px;
    color: var(--navy);
    background: #fff;
    border: 0;
    font-size: 14px;
    font-weight: 800;
}

.expenses-toolbar select {
    border: 2px solid var(--blue);
    border-radius: 8px;
}

.range-filter img,
.expense-search img {
    width: 22px;
    height: 22px;
    margin: auto;
}

.expense-search button {
    height: 42px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 0;
}

.expenses-panel {
    min-height: 700px;
}

.expenses-table th,
.expenses-table td {
    padding-left: 34px;
    padding-right: 34px;
}

.directory-print {
    min-width: 300px;
}

.customers-toolbar {
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--navy);
    font-weight: 800;
}

.customers-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    overflow: hidden;
}

.customers-search input,
.customers-search button {
    height: 36px;
    border: 0;
    background: #fff;
}

.customers-search input {
    padding: 0 12px;
}

.customers-search button {
    color: #000;
    font-size: 14px;
}

.customers-panel,
.orders-panel {
    min-height: 520px;
}

.customers-table,
.orders-table {
    font-size: 15px;
}

.customers-table th,
.customers-table td,
.orders-table th,
.orders-table td {
    height: 38px;
    padding-left: 18px;
    padding-right: 18px;
    white-space: normal;
}

.customers-table td:last-child,
.customers-table th:last-child,
.orders-table td:last-child,
.orders-table th:last-child {
    text-align: center;
}

.status-select {
    height: 28px;
    padding: 0 8px;
    color: var(--blue);
    background: #f7fbff;
    border: 1px solid var(--blue);
    border-radius: 5px;
    font-weight: 800;
}

.customers-actions,
.orders-actions {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding-top: 16px;
}

.customers-actions .primary-button,
.customers-actions .secondary-button,
.orders-actions .secondary-button,
.orders-actions .green-action {
    min-width: 150px;
    min-height: 42px;
}

.customer-editor-window {
    width: min(760px, calc(100vw - 48px));
    min-height: 475px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.customer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 500px;
    margin: 0 auto;
    padding-top: 22px;
}

.customer-tabs button {
    height: 28px;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--blue);
    font-weight: 800;
}

.customer-tabs button.active {
    background: #aee1ff;
}

.customer-editor-tab {
    display: none;
    width: 500px;
    min-height: 330px;
    margin: 0 auto;
    padding: 56px 30px 28px;
    border: 1px solid var(--blue);
    border-top: 0;
}

.customer-editor-tab.active {
    display: grid;
    gap: 20px;
}

.customer-editor-tab label {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
}

.customer-editor-tab input,
.customer-editor-tab select,
.customer-editor-tab textarea {
    min-width: 0;
    padding: 0 12px;
    color: #555;
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
}

.customer-editor-tab input,
.customer-editor-tab select {
    height: 38px;
}

.customer-editor-tab textarea {
    height: 110px;
    padding-top: 10px;
    resize: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.orders-table th,
.orders-table td {
    font-size: 14px;
}

.orders-table [data-href] {
    cursor: pointer;
}

.orders-table [data-href]:focus {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.order-detail-form {
    min-height: calc(100vh - 150px);
}

.order-detail-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 24px;
    margin: 0 0 78px;
}

.order-detail-tab {
    height: 46px;
    color: var(--navy);
    background: #fff;
    border: 1px solid #c5c5c5;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 800;
}

.order-detail-tab.active {
    color: var(--blue);
    background: #aee1ff;
    border-color: #7bbced;
}

.order-detail-section {
    display: none;
}

.order-detail-section.active {
    display: block;
}

.order-info-grid,
.order-date-grid,
.order-payment-grid {
    width: min(980px, 100%);
    margin: 0 auto;
}

.order-info-grid,
.order-date-grid {
    display: grid;
    gap: 22px;
}

.order-info-grid label,
.order-date-grid label,
.order-payment-grid label {
    display: grid;
    grid-template-columns: 380px minmax(280px, 1fr);
    align-items: center;
    gap: 28px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
}

.order-info-grid input,
.order-date-grid input,
.order-payment-grid input {
    min-width: 0;
    height: 58px;
    padding: 0 18px;
    color: #555;
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 7px;
    font-size: 22px;
    font-weight: 900;
}

.order-payment-grid {
    display: grid;
    gap: 22px;
    max-width: 650px;
}

.order-payment-grid label {
    grid-template-columns: 190px minmax(220px, 1fr);
}

.order-detail-actions {
    display: flex;
    justify-content: center;
    gap: 42px;
    padding-top: 20px;
}

.order-detail-actions .primary-button,
.order-detail-actions .secondary-button {
    min-width: 155px;
    min-height: 50px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 16px;
}

.order-items-panel {
    min-height: 610px;
    overflow: hidden;
    border: 1px solid #222;
    border-radius: 7px;
    background: #fff;
}

.order-items-table {
    color: #000;
    font-size: 16px;
}

.order-items-table th,
.order-items-table td {
    height: 48px;
    padding-left: 18px;
    padding-right: 18px;
}

.order-items-table td:last-child,
.order-items-table th:last-child {
    text-align: center;
}

.order-item-input {
    width: 100%;
    min-width: 0;
    height: 34px;
    color: #000;
    background: transparent;
    border: 0;
    font-weight: 800;
}

.order-item-input:focus {
    outline: 1px solid var(--blue);
    background: #fff;
}

.order-item-input.number {
    text-align: center;
}

.order-total-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    padding-top: 10px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 900;
}

.order-total-line strong {
    min-width: 170px;
    min-height: 50px;
    display: grid;
    place-items: center;
    color: #666;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 7px;
    font-size: 20px;
}

.directory-filters {
    display: grid;
    gap: 14px;
    margin-bottom: 10px;
}

.directory-filters.two {
    grid-template-columns: 1fr 1fr;
}

.directory-filter-form,
.product-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 12px;
}

.directory-filter-form {
    grid-column: 1 / span 2;
}

.directory-filters select,
.directory-filter-form select {
    height: 36px;
    min-width: 0;
    padding: 0 12px;
    border: 2px solid var(--blue);
    border-radius: 7px;
    color: #000;
    background: #fff;
    font-weight: 700;
}

.directory-panel {
    min-height: 620px;
    overflow: hidden;
    border: 2px solid var(--blue);
    border-radius: 8px;
    background: #fff;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.directory-table th,
.directory-table td {
    height: 42px;
    padding: 0 34px;
    text-align: left;
    white-space: nowrap;
}

.directory-table th {
    color: #000;
    background: #fff;
    border-bottom: 1px solid #acacac;
}

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

.directory-table tbody tr.selected {
    color: #fff;
    background: var(--blue);
}

.directory-table tbody tr.danger {
    color: #e82727;
    background: #ffd9d9;
}

.directory-table td:last-child,
.directory-table th:last-child {
    text-align: right;
}

.directory-empty {
    height: 140px !important;
    color: var(--muted) !important;
    text-align: center !important;
}

.sales-list-table th,
.sales-list-table td {
    padding-left: 42px;
    padding-right: 42px;
}

.products-table th,
.products-table td {
    padding-left: 34px;
    padding-right: 34px;
}

.product-code {
    display: inline-block;
    min-width: 72px;
}

.groups-panel {
    min-height: 530px;
}

.directory-list {
    padding: 0;
}

.directory-list-row {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    padding: 0 14px 0 20px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.directory-list-row.selected {
    color: #fff;
    background: var(--blue);
}

.row-icon-button {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: var(--blue);
}

.directory-list-row.selected .row-icon-button {
    background: #fff;
}

.row-icon-button img {
    width: 18px;
    height: 18px;
}

.directory-list-row.selected .row-icon-button img {
    filter: none;
}

.directory-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
}

.green-action,
.outline-green-action {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 7px;
    font-weight: 800;
}

.green-action {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    background: var(--green);
    border: 0;
}

.green-action.compact {
    min-height: 38px;
}

.green-action span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: #fff;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1;
}

.outline-green-action {
    color: var(--green-dark);
    background: #fff;
    border: 1px solid var(--green);
}

.currency-panel {
    min-height: 650px;
}

.currency-table th,
.currency-table td {
    padding-left: 42px;
}

@media (max-width: 900px) {
    .directory-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--blue);
    }

    .directory-main {
        padding: 16px;
    }

    .directory-filters.two,
    .directory-filter-form,
    .product-filters {
        grid-template-columns: 1fr;
    }

    .directory-filter-form {
        grid-column: auto;
    }

    .directory-table {
        font-size: 15px;
    }

    .directory-table th,
    .directory-table td {
        padding: 0 12px;
    }
}

@media (max-width: 1180px) {
    :root {
        --sidebar-width: 176px;
    }

    .pos-layout {
        grid-template-columns: var(--sidebar-width) 8px minmax(0, 1fr);
    }

    .pos-workspace {
        grid-template-columns: 1fr;
    }

    .product-pane {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cart-table,
    .product-list {
        height: 430px;
    }
}

@media (max-width: 760px) {
    .topbar {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .topbar-title {
        font-size: 18px;
    }

    .pos-layout {
        display: block;
    }

    .sidebar-resizer {
        display: none;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--blue);
    }

    .sidebar-nav {
        gap: 10px;
    }

    .daily-card {
        margin: 12px 16px;
    }

    .pos-main {
        padding: 14px;
    }

    .cart-head,
    .cart-row {
        grid-template-columns: minmax(130px, 1fr) 72px 76px 70px;
    }

    .cart-head,
    .cart-row,
    .product-head,
    .product-row {
        font-size: 14px;
    }

    .sale-actions,
    .checkout-actions {
        grid-template-columns: 1fr;
    }

    .cash-total strong {
        font-size: 28px;
    }

    .sell-button {
        font-size: 14px;
    }

    .product-head,
    .product-row {
        grid-template-columns: minmax(120px, 1fr) 78px 66px;
    }

    .product-detail h2 {
        font-size: 18px;
    }

    .product-detail-grid {
        gap: 16px;
    }

    .product-detail-grid>div+div {
        padding-left: 16px;
    }

    .product-search {
        grid-template-columns: 1fr 44px;
    }

    .product-search>span {
        grid-column: 1 / -1;
    }
}

@media print {

    .topbar,
    .sidebar,
    .sidebar-resizer,
    .product-pane,
    .sale-actions,
    .sell-button {
        display: none;
    }

    .pos-layout,
    .pos-workspace {
        display: block;
    }

    .pos-main {
        padding: 0;
    }

    .report-window {
        border: 0;
    }

    .report-close,
    .report-toolbar,
    .report-filters,
    .report-actions {
        display: none;
    }
}
