
#content {
	padding: 2rem;
}

/* ---------- Base ---------- */

:root {

    font-family: Inter, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: #111315;
    font-synthesis: none;
    text-rendering: optimizeLegibility;

    --background: #111315;
    --surface: #191b1f;
    --surface-hover: #22252a;
    --border: #30343a;
    --muted: #9299a4;
    --text: #e5e7eb;

    --blue: #3b82f6;
    --blue-hover: #2563eb;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-size: 14px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* ---------- Page ---------- */

.page {
    width: 100%;
    padding: 28px 32px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.page-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
    white-space: nowrap;
}

.button-primary {
    color: #ffffff;
    background: var(--blue);
    border: 1px solid var(--blue);
}

.button-primary:hover {
    background: var(--blue-hover);
    filter: brightness(1.1);
}

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

.button-secondary:hover {
    background: var(--surface-hover);
}

/* ---------- Search ---------- */

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.search:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgb(59 130 246 / 15%);
}

.search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search input::placeholder {
    color: #737b87;
}

/* ---------- Table ---------- */

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.data-table thead {
    background: var(--surface);
}

.data-table th {
    padding: 12px 16px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.data-table tbody tr {
	transition: background 100ms ease;
}

.data-table tbody tr:hover {
    background: var(--hover);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr.selected {
    background: #1c2b40;
}

.data-table tbody tr {
    cursor: pointer;
}

.data-table td:first-child {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

/* ---------- Focus ---------- */

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .page {
        padding: 20px 14px;
    }

    .page-header {
        align-items: flex-start;
    }

    .page-title {
        font-size: 21px;
    }

    .data-table th,
    .data-table td {
        padding: 11px 12px;
    }
}

/* ---------- Menus ---------- */

#module-menu[hidden], .dropdown-menu[hidden]{
	display:none;
}

#module-menu {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index:100;

	display: flex;
	flex-direction: column;

	width: 180px;
	padding: 6px;

	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

#module-menu button {
	padding: 10px 12px;
	border: none;
	border-radius:5px;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

#module-menu button:focus {
	outline: 2px solid var(--blue);
	outline-offset: -2px;
	background: var(--surface-hover);
}

#module-menu button:hover {
	background: var(--surface-hover);
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
	cursor: pointer;
	border: none;
	border-radius: var(--radius);
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	padding: 4px 10px;
}

.dropdown-toggle:hover {
	color: var(--text);
	background: var(--surface-hover);
}

.dropdown-toggle:focus {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.dropdown-menu {
	position: fixed;
	z-index: 1000;

	min-width: 140px;
	padding: 5px;

	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

.dropdown-menu[hidden] {
	display:none;
}


.dropdown-menu button {
	display: block;
	width: 100%;
	padding: 9px 10px;

	border: none;
	border-radius: 5px;
	background: transparent;
	color: inherit;

	text-align: left;
	font: inherit;
	cursor: pointer;

}

.dropdown-menu button:hover {
	background: var(--surface-hover);
}




/* ---------- Client Form ---------- */

.form-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.form-header {
    margin-bottom: 28px;
}

.form-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.form-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.client-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section-title {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    outline: none;
    resize:none:
}

.form-field input {
    height: 38px;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #737b87;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgb(59 130 246 / 15%);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--blue);
}

.form-checkbox label {
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ---------- Form Responsive ---------- */

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }
}

/* ---------- User Form ---------- */
.user-form-page {
    max-width: 600px;
    margin: 0 auto;
}

.user-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.user-form-header {
    margin-bottom: 2rem;
}

.user-form-header h2 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.user-form-header p {
    margin: 0;
    color: #9ca3af;
}

.user-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.user-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-form-field label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-form-field input,
.user-form-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
}

.user-form-field input:focus,
.user-form-field select:focus {
    outline: none;
    border-color: var(--blue);
}

.user-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.user-form-actions button {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

/* ---------- POS Page ---------- */



/* POS layout */
.pos {
    --pos-bg: #111315;
    --pos-panel: #191b1f;
    --pos-panel-hover: #22252a;
    --pos-border: #30343a;
    --pos-text: #e5e7eb;
    --pos-muted: #9ca3af;
    --pos-blue: #3b82f6;
    --pos-blue-hover: #2563eb;
    --pos-radius: 8px;

    color: var(--pos-text);
    min-height: calc(100vh - 4rem);
}

.pos *,
.pos-modal * {
    box-sizing: border-box;
}

.pos h1,
.pos h2,
.pos p {
    margin-top: 0;
}

.pos h2 {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pos-header .page-title {
    margin-bottom: 0.35rem;
}

.pos-header .page-subtitle {
    margin-bottom: 0;
    color: var(--pos-muted);
    font-size: 0.875rem;
}

/* Shared controls */
.pos input,
.pos select,
.pos-modal input,
.pos-modal select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    color: var(--pos-text);
    background: #141619;
    border: 1px solid var(--pos-border);
    border-radius: 6px;
    font: inherit;
    outline: none;
}

.pos input:focus,
.pos select:focus,
.pos-modal input:focus,
.pos-modal select:focus {
    border-color: var(--pos-blue);
    box-shadow: 0 0 0 2px rgb(59 130 246 / 15%);
}

.pos button,
.pos-modal button {
    font: inherit;
}

.pos .button {
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.pos .button-secondary {
    color: var(--pos-text);
    background: var(--pos-panel-hover);
    border: 1px solid var(--pos-border);
}

.pos .button-secondary:hover {
    background: #2b2f35;
}

.pos .button-primary {
    color: white;
    background: var(--pos-blue);
    border: 1px solid var(--pos-blue);
}

.pos .button-primary:hover:not(:disabled) {
    background: var(--pos-blue-hover);
}

.pos .button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Main two-column workspace */
.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.pos-catalog,
.pos-cart {
    min-width: 0;
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
}

.pos-catalog {
    padding: 1.25rem;
}

.pos-cart {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

/* Customer selector */
.pos-customer {
    position: relative;
}

.pos-client-search{
    margin-top: 0.5rem;
}

.pos-client-results {
    position: absolute;
    z-index: 10;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
    box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

.pos-client-result {
    display: block;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--pos-border);
    background: transparent;
    color: var(--pos-text);
    text-align: left;
    cursor: pointer;
}

.pos-client-result:last-child {
    border-bottom: 0;
}

.pos-client-result:hover,
.pos-client-result:focus-visible {
    background: var(--pos-panel-hover);
    outline: none;
}

.pos-client-result strong,
.pos-client-result span {
    display: block;
}

.pos-client-result span,
.pos-client-empty {
    margin-top: 0.2rem;
    color: var(--pos-muted);
    font-size: 0.85rem;
}

.pos-client-result.active {
    background: var(--pos-panel-hover);
    outline: none;
}

.pos-client-empty {
    padding: 0.75rem 0.9rem;
}

.pos-client-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
    background: var(--pos-panel);
}

.pos-client-selected[hidden]{
	display:none;
}

.pos-client-selected button {
    border: 0;
    background: transparent;
    color: var(--pos-blue);
    cursor: pointer;
}

.pos-client-selected button:hover {
    color: var(--pos-blue-hover);
}

/* Catalog header and search */
.pos-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.pos-catalog-header input {
    max-width: 280px;
}

/* Product cards */
.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.pos-product {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    min-height: 145px;
    padding: 1rem;
    color: var(--pos-text);
    text-align: left;
    background: #141619;
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease,
                transform 120ms ease;
}

.pos-product[hidden]{
	display:none;
}

.pos-product:hover {
    background: var(--pos-panel-hover);
    border-color: var(--pos-blue);
    transform: translateY(-1px);
}

.pos-product:active {
    transform: translateY(0);
}

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

.pos-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pos-product-price {
    color: #93c5fd;
    font-size: 1.05rem;
    font-weight: 600;
}

.pos-product-add {
    margin-top: auto;
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Cart header */
.pos-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pos-border);
}

#pos-item-count {
    color: var(--pos-muted);
    font-size: 0.8rem;
}

/* Cart contents */
.pos-cart-items {
    display: grid;
    gap: 0;
    margin: 0;
}

.pos-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pos-border);
}

.pos-cart-details {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-width: 0;
}

.pos-cart-details strong {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pos-cart-details span {
    color: var(--pos-muted);
    font-size: 0.8rem;
}

.pos-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-quantity span {
    min-width: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.pos-quantity button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--pos-text);
    background: var(--pos-panel-hover);
    border: 1px solid var(--pos-border);
    border-radius: 5px;
    cursor: pointer;
}

.pos-quantity button:hover {
    border-color: var(--pos-blue);
    background: #292e36;
}

.pos-line-total {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.pos-empty {
    padding: 2rem 0;
    color: var(--pos-muted);
    font-size: 0.875rem;
    text-align: center;
}


/* Cart total and primary action */
.pos-cart-footer {
    display: grid;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.pos-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pos-total span {
    color: var(--pos-muted);
    font-size: 0.9rem;
}

.pos-total strong {
    font-size: 1.65rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#pos-checkout {
width: 100%;
min-height: 46px;
font-size: 0.95rem;
font-weight: 600;
}

/*Cart Comments*/

.pos-cart-commentary textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    outline: none;
    resize:none;
}


/* Checkout modal */

.pos-modal {
    width: min(460px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    color: var(--pos-text);
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 10px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}

.pos-modal::backdrop {
    background: rgb(0 0 0 / 70%);
    backdrop-filter: blur(3px);
}

/* Modal layout */
.pos-modal {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.pos-modal[open] {
    display: flex;
}

/* Header */
.pos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pos-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.pos-modal-header button {
    min-width: 38px;
    min-height: 38px;
    padding: 0.4rem;
    flex-shrink: 0;
}

/* Client and total */
#pos-checkout-client {
    margin: 0;
    color: var(--pos-muted);
    font-size: 0.9rem;
}

.pos-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--pos-border);
    border-bottom: 1px solid var(--pos-border);
}

.pos-modal-total span {
    color: var(--pos-muted);
}

.pos-modal-total strong {
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
}

/* Checkout choices and payment fields */
#pos-checkout-choice,
#pos-payment-form {
    display: grid;
    gap: 1rem;
}

#pos-checkout-choice[hidden],
#pos-payment-form[hidden] {
    display: none;
}

#pos-checkout-choice p {
    margin: 0;
    font-size: 0.9rem;
}

#pos-checkout-choice button,
#pos-payment-form button {
    width: 100%;
    min-height: 44px;
}

#pos-payment-form label {
    margin-bottom: -0.6rem;
    font-size: 0.9rem;
    color: var(--pos-muted);
}

#pos-payment-form select,
#pos-payment-form input {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    color: var(--pos-text);
    background: var(--pos-bg);
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    font: inherit;
}

#pos-payment-form select:focus,
#pos-payment-form input:focus {
    outline: 2px solid var(--pos-blue);
    outline-offset: 1px;
}

/* Footer note */
.pos-modal-note {
    margin: 0;
    color: var(--pos-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}
```

/* Responsive layout */
@media (max-width: 1100px) {
.pos-layout {
grid-template-columns: minmax(0, 1fr) 320px;
gap: 1rem;
}

.pos-catalog {
padding: 1rem;
}

.pos-product-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 760px) {
.pos-header {
align-items: flex-start;
}

.pos-layout {
grid-template-columns: minmax(0, 1fr);
}

.pos-cart {
position: static;
}

.pos-catalog-header {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-catalog-header input {
        max-width: none;
    }

    .pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .pos-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pos-header {
        flex-direction: column;
    }
}


/* ---------- Order Page ---------- */
#order-details-modal {
    width: min(900px, calc(100% - 2rem));
}

.order-details-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.order-details-info > div,
.order-details-totals > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-details-info span,
.order-details-totals span {
    color: var(--pos-muted);
    font-size: 0.85rem;
}

.order-details-info strong,
.order-details-totals strong {
    overflow-wrap: anywhere;
}

.order-details-section {
    display: grid;
    gap: 0.75rem;
}

.order-details-section h3 {
    margin: 0;
    font-size: 1rem;
}

.order-details-section .table-container {
    overflow-x: auto;
}

.order-details-section textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    outline: none;
    resize:none;
}

.order-details-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pos-border);
}
/*check what of below actually exists*/
.order-details-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

#register-payment-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pos-border);
}

#register-payment-form[hidden] {
    display: none;
}

#register-payment-modal {
    width: min(420px, calc(100% - 2rem));
}

.payment-modal-info {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--pos-panel);
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.payment-modal-info span {
    color: var(--pos-muted);
    font-size: 0.85rem;
}

#register-payment-form {
    display: grid;
    gap: 0.75rem;
}

.payment-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@media (max-width: 600px) {
    .order-details-info {
        grid-template-columns: 1fr;
    }

    .order-details-totals {
        grid-template-columns: 1fr;
    }
}


/* ---------- Login Page ---------- */

/* Page layout */

.login-page {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--background, #f3f4f6);
    color: var(--text, #202124);
    font-family: inherit;
}

/* Login panel */

.login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #dcdfe4);
    border-radius: 10px;
}

/* Header */

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    border: 1px solid var(--border, #dcdfe4);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
}

.login-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.4px;
}

.login-header p {
    margin: 0;
    color: var(--muted, #6b7280);
    font-size: 14px;
    line-height: 1.5;
}

/* Form */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 14px;
    font-weight: 600;
}

.login-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border, #dcdfe4);
    border-radius: 6px;
    background: var(--input-background, var(--surface, #ffffff));
    color: inherit;
    font: inherit;
    font-size: 14px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.login-field input::placeholder {
    color: var(--muted, #9ca3af);
}

.login-field input:focus {
    outline: none;
    border-color: var(--accent, #64748b);
    box-shadow: 0 0 0 3px var(--focus-ring, rgb(100 116 139 / 15%));
}

/* Submit button */

.login-submit {
    min-height: 42px;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid var(--button-border, #30343b);
    border-radius: 6px;
    background: var(--button-background, #30343b);
    color: var(--button-text, #ffffff);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 120ms ease;
}

.login-submit:hover {
    opacity: 0.88;
}

.login-submit:focus-visible {
    outline: 2px solid var(--accent, #64748b);
    outline-offset: 3px;
}

.login-submit:active {
    opacity: 0.75;
}

/* Error message */

.login-error {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--error-border, #e5a5a5);
    border-radius: 6px;
    background: var(--error-background, #fdf0f0);
    color: var(--error-text, #9b2525);
    font-size: 14px;
    line-height: 1.5;

    transition: opacity 300ms ease, transform 300ms ease;
}

.login-error.is-hiding {
	opacity: 0;
	transform: translateY(-4px);
}

/* Footer */

.login-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border, #dcdfe4);
    color: var(--muted, #6b7280);
    font-size: 12px;
    text-align: center;
}

/* Small screens */

@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
    }
}



