/* सम्पूर्ण वेबसाइट */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 20px;
}

/* शीर्षक */

.topbar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: -20px -20px 30px;
    padding: 25px 24px;
    color: #fff;
    background:
        radial-gradient(ellipse at 82% 135%, rgba(52, 211, 153, 0.3), transparent 38%),
        linear-gradient(115deg, #102d46 0%, #124b58 55%, #147d69 100%);
    box-shadow: 0 8px 24px rgba(16, 45, 70, 0.2);
}

.topbar::after {
    position: absolute;
    z-index: 1;
    top: -110px;
    right: 12%;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        0 0 0 32px rgba(255, 255, 255, 0.035),
        0 0 0 66px rgba(255, 255, 255, 0.025);
    content: "";
}

.topbar-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 16px;
}

.brand-mark {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-mark svg,
.brand-logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-mark svg {
    fill: #d7fff1;
}

.brand-mark.has-custom-logo svg {
    display: none;
}

.brand-logo-image[hidden],
.brand-mark svg[hidden] {
    display: none;
}

.brand-copy {
    min-width: 0;
}

.topbar-eyebrow {
    margin: 0 0 4px;
    color: #a7e8d2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.title {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.subtitle {
    margin: 5px 0 0;
    color: #d2e7e8;
    font-size: 16px;
}

.brand-address {
    margin: 4px 0 0;
    color: #d2e7e8;
    font-size: 13px;
}

.topbar-tools {
    display: grid;
    width: 400px;
    justify-items: end;
    gap: 8px;
    margin-left: auto;
}

.topbar-actions {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.topbar-clock {
    width: 310px;
    padding: 13px 16px;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(5, 28, 42, 0.16);
    color: #233344;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.topbar-clock-nepali-date,
.topbar-clock-ad-date,
.topbar-clock-bs-date,
.topbar-clock-tithi,
.topbar-clock-details,
.topbar-clock-location {
    margin: 0;
}

.topbar-clock-nepali-date {
    color: #c62828;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

.topbar-clock-ad-date,
.topbar-clock-bs-date,
.topbar-clock-details,
.topbar-clock-location {
    color: #657487;
    font-size: 12px;
    line-height: 1.5;
}

.topbar-clock-bs-date {
    margin-top: 2px;
}

.topbar-clock-tithi {
    margin-top: 3px;
    color: #172a3a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.topbar-clock-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-clock-time {
    display: block;
    margin: 7px 0 1px;
    color: #52657a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.topbar-clock-location {
    display: flex;
    gap: 7px;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #effff9;
    font-size: 13px;
    white-space: nowrap;
}

.topbar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64e6ac;
    box-shadow: 0 0 0 4px rgba(100, 230, 172, 0.15);
}

.admin-link {
    color: #effff9;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.date-converter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #effff9;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.date-converter-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.pwa-install-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: #64e6ac;
    color: #103c38;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.pwa-install-button[hidden] {
    display: none;
}

.pwa-install-message {
    width: min(1120px, 100%);
    margin: -16px auto 20px;
    padding: 10px 14px;
    border: 1px solid #e8d49c;
    border-radius: 7px;
    background: #fff8e8;
    color: #59451d;
    line-height: 1.5;
}

.topbar-watermark-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.13;
    pointer-events: none;
}

.topbar-watermark-image[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .topbar {
        padding: 20px 16px;
    }

    .topbar-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 13px;
    }

    .brand-mark svg,
    .brand-logo-image {
        width: 29px;
        height: 29px;
    }

    .topbar-badge {
        padding: 7px 10px;
        font-size: 12px;
    }

    .topbar-tools {
        width: calc(100% - 60px);
        justify-items: stretch;
        margin-left: 60px;
    }

    .topbar-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-link {
        justify-self: center;
    }

    .date-converter-link {
        margin-left: 0;
    }

    .topbar-clock {
        width: 100%;
        text-align: center;
    }

    .topbar-clock-details,
    .topbar-clock-location {
        justify-content: center;
    }

}

.admin-page {
    min-height: 100vh;
}

.admin-topbar .topbar-content {
    justify-content: space-between;
}

.admin-back-link {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.admin-back-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-topbar .topbar-content {
    flex-wrap: wrap;
}

.admin-main {
    width: min(760px, 100%);
    margin: 30px auto;
}

.admin-panel {
    padding: 26px;
    border: 1px solid #dfe5eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 45, 70, 0.08);
}

.admin-backup-panel {
    margin-top: 20px;
}

.admin-backup-content {
    display: grid;
    gap: 18px;
}

.admin-backup-notice {
    margin: 0;
    padding: 13px 15px;
    border-left: 4px solid #d59b24;
    border-radius: 5px;
    background: #fff8e8;
    color: #59451d;
    line-height: 1.6;
}

.admin-restore-field {
    margin: 0;
}

.admin-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-panel-heading h2 {
    margin: 0 0 6px;
    color: #17364b;
}

.admin-panel-heading p:last-child {
    margin: 0;
    color: #687889;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: #147d69;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.admin-brand-preview {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #b6c2ce;
    border-radius: 12px;
    background: #f5f8fa;
    color: #778697;
    font-size: 13px;
}

.admin-brand-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-form {
    display: grid;
    gap: 20px;
}

.admin-field {
    display: grid;
    gap: 8px;
    color: #263b4d;
    font-weight: 700;
}

.admin-field input:not([type="file"]) {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c8d1da;
    border-radius: 7px;
    background: #fff;
    color: #1d2d3b;
    font: inherit;
    font-weight: 400;
}

.admin-field input:focus {
    border-color: #147d69;
    outline: 3px solid rgba(20, 125, 105, 0.15);
}

.admin-field input[type="file"] {
    max-width: 100%;
    color: #506174;
    font: inherit;
    font-size: 13px;
}

.admin-help {
    margin: -4px 0 2px;
    color: #758395;
    font-size: 12px;
    font-weight: 400;
}

.admin-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-subfield {
    margin-top: 6px;
    font-size: 13px;
}

.admin-poster-preview-wrap {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-top: 4px;
}

.admin-poster-preview-wrap[hidden] {
    display: none;
}

.admin-poster-preview-wrap img {
    display: block;
    width: min(100%, 520px);
    max-height: 240px;
    border: 1px solid #e1e7eb;
    border-radius: 8px;
    background: #f7f9fa;
    object-fit: contain;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.admin-save-button,
.admin-secondary-button {
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    font: inherit;
    cursor: pointer;
}

.admin-save-button {
    background: #176b3a;
    color: #fff;
    font-weight: 700;
}

.admin-secondary-button {
    border: 1px solid #cbd4dd;
    background: #f8fafb;
    color: #34495c;
}

.admin-message {
    margin: 0;
    padding: 11px 13px;
    border-radius: 7px;
    background: #e9f7ef;
    color: #176b3a;
}

.admin-message-error {
    background: #fff0ef;
    color: #a52a2a;
}

.converter-page {
    min-height: 100vh;
}

.converter-topbar .topbar-content {
    justify-content: space-between;
}

.converter-back-link {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.converter-main {
    width: min(760px, 100%);
    margin: 30px auto;
}

.converter-panel {
    padding: 26px;
    border: 1px solid #dfe5eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 45, 70, 0.08);
}

.converter-heading {
    margin-bottom: 22px;
}

.converter-heading h2 {
    margin: 0 0 6px;
    color: #17364b;
}

.converter-heading p:last-child {
    margin: 0;
    color: #687889;
}

.converter-direction-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.converter-direction-switch button,
.converter-submit,
.converter-copy {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #cbd4dd;
    border-radius: 7px;
    background: #f8fafb;
    color: #34495c;
    font: inherit;
    cursor: pointer;
}

.converter-direction-switch button[aria-pressed="true"] {
    border-color: #176b3a;
    background: #176b3a;
    color: #fff;
}

.converter-form {
    display: grid;
    gap: 16px;
}

.converter-form label {
    display: grid;
    gap: 8px;
    color: #263b4d;
    font-weight: 700;
}

.converter-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c8d1da;
    border-radius: 7px;
    color: #1d2d3b;
    font: inherit;
    font-weight: 400;
}

.converter-form input:focus {
    border-color: #147d69;
    outline: 3px solid rgba(20, 125, 105, 0.15);
}

.converter-submit {
    justify-self: start;
    border: 0;
    background: #176b3a;
    color: #fff;
    font-weight: 700;
}

.converter-result {
    margin-top: 20px;
    padding: 17px;
    border: 1px solid #cfe5d6;
    border-radius: 9px;
    background: #f2faf4;
}

.converter-result[hidden] {
    display: none;
}

.converter-result-label {
    margin: 0 0 5px;
    color: #587261;
    font-size: 13px;
}

.converter-result-value {
    margin: 0;
    color: #176b3a;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
}

.converter-result-extra {
    margin: 5px 0 13px;
    color: #587261;
}

.converter-error {
    margin: 0;
    padding: 11px 13px;
    border-radius: 7px;
    background: #fff0ef;
    color: #a52a2a;
}

.converter-copy {
    border-color: #b7c8d8;
    background: #fff;
    font-weight: 700;
}

.converter-message {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: #176b3a;
    font-size: 13px;
}

@media (max-width: 600px) {
    .admin-page {
        padding: 14px;
    }

    .admin-topbar {
        margin: -14px -14px 24px;
    }

    .admin-topbar .topbar-content {
        align-items: flex-start;
    }

    .admin-back-link {
        font-size: 12px;
    }

    .admin-panel {
        padding: 19px;
    }

    .admin-panel-heading {
        gap: 12px;
    }

    .converter-page {
        padding: 14px;
    }

    .converter-topbar {
        margin: -14px -14px 24px;
    }

    .converter-panel {
        padding: 19px;
    }
}

/* विवरण थप्ने फारम */

.entry-dashboard {
    display: grid;
    width: min(1180px, 100%);
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 20px;
    margin: 30px auto;
}

.day-section,
.entry-section {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
}

.day-section h2,
.entry-section h2 {
    margin-top: 0;
}

@media (max-width: 760px) {
    .entry-dashboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.day-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.day-controls[hidden] {
    display: none;
}

.day-controls label {
    display: grid;
    gap: 7px;
}

.day-controls input {
    min-height: 42px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
}

.day-controls p {
    margin: 0;
}

.day-controls button {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 5px;
    background-color: #176b3a;
    color: white;
    font: inherit;
    cursor: pointer;
}

.day-controls .close-day-button {
    background-color: #a52a2a;
}

.day-reconciliation {
    display: grid;
    flex-basis: 100%;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d5dbe2;
    border-radius: 8px;
    background-color: #f7f9fb;
}

.day-reconciliation[hidden] {
    display: none;
}

.day-reconciliation h3,
.day-reconciliation p {
    margin: 0;
}

.day-reconciliation label {
    display: grid;
    gap: 7px;
}

.day-reconciliation input,
.day-reconciliation textarea {
    width: 100%;
    max-width: 420px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
}

.day-reconciliation input {
    min-height: 42px;
}

.day-reconciliation textarea {
    resize: vertical;
}

#cash-entry-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

#cash-entry-form label {
    display: grid;
    gap: 7px;
}

#cash-entry-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
}

.entry-balance {
    margin: 0;
    font-weight: bold;
}

#cash-entry-form button {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 5px;
    background-color: #176b3a;
    color: white;
    font: inherit;
    cursor: pointer;
}

#cash-entry-form button:hover {
    background-color: #10552d;
}

.cancel-edit-button {
    background-color: #555 !important;
}

.cancel-edit-button:hover {
    background-color: #333 !important;
}

/* तीनवटा Card राख्ने भाग */

.cash-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* सबै Card को साझा डिजाइन */

.card {
    width: 100%;
    max-width: 300px;
    min-height: 130px;

    padding: 20px;
    border-radius: 10px;

    text-align: center;
    border: 1px solid #ccc;
}

/* नगद प्राप्ति */

.received {
    background-color: lightgreen;
}

/* नगद भुक्तानी */

.payment {
    background-color: lightcoral;
}

/* नगद मौज्दात */

.balance {
    background-color: lightblue;
}

/* Card भित्रको रकम */

.card p {
    font-size: 24px;
    font-weight: bold;
}

/* Table */

.table-container {
    width: 100%;
    overflow-x: auto;
}

.cash-table {
    width: 100%;
    border-collapse: collapse;
}

.cash-table th,
.cash-table td {
    border: 1px solid black;
    padding: 15px;
    text-align: center;
}

.cash-table th {
    background-color: lightblue;
}

.action-icon-button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    margin: 2px;
    padding: 7px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    vertical-align: middle;
}

.action-icon-button svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.action-icon-button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 2px;
}

.edit-button {
    background-color: #175f9c;
}

.edit-button:hover {
    background-color: #104676;
}

.cancel-entry-button,
.restore-button {
    margin: 2px;
}

.cancel-entry-button {
    background-color: #a52a2a;
}

.cancel-entry-button:hover {
    background-color: #7d1f1f;
}

.restore-button {
    background-color: #176b3a;
}

.restore-button:hover {
    background-color: #10552d;
}

.print-button {
    background-color: #176b3a;
}

.print-button:hover {
    background-color: #10552d;
}

.cancelled-entry {
    color: #777;
    background-color: #f3f3f3;
    text-decoration: line-through;
}

.cancelled-entry button {
    text-decoration: none;
}

.entry-search-section {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin: 20px 0 8px;
}

.entry-search-section label {
    display: grid;
    flex: 1 1 260px;
    gap: 7px;
    font-weight: 700;
}

.entry-search-section input {
    width: 100%;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
}

.entry-search-section button {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #cbd4dd;
    border-radius: 5px;
    background: #f8fafb;
    color: #34495c;
    font: inherit;
    cursor: pointer;
}

#entry-search-count,
.entries-empty {
    margin: 0;
    color: #52657a;
}

.entry-search-section #entry-search-count {
    flex-basis: 100%;
}

.report-section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
}

.report-section h2 {
    margin-top: 0;
}

.report-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 15px;
}

.report-controls label {
    display: grid;
    gap: 7px;
}

.report-controls [hidden] {
    display: none !important;
}

.report-controls input,
.report-controls select {
    min-width: 150px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
}

.report-bs-period-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 15px;
}

.report-bs-period-fields[hidden] {
    display: none;
}

.report-controls button {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 5px;
    background-color: #176b3a;
    color: white;
    font: inherit;
    cursor: pointer;
}

.report-controls .print-report-button {
    background-color: #175f9c;
}

.report-controls .export-report-button {
    background-color: #147d69;
}

.report-export-help {
    margin: 10px 0 0;
    color: #657487;
    font-size: 13px;
}

.report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 15px 0;
}

.report-summary p {
    margin: 0;
}

.print-receipt {
    display: none;
}

@page thermal-receipt {
    size: 80mm 200mm;
    margin: 3mm;
}

@media print {
    body.printing {
        page: thermal-receipt;
        padding: 0;
        background: white;
    }

    body.printing > :not(#print-receipt) {
        display: none !important;
    }

    body.printing #print-receipt {
        display: block !important;
        width: 74mm;
        margin: 0;
        padding: 0;
        color: black;
        font-family: Arial, sans-serif;
        font-size: 9pt;
    }

    body.printing .receipt-copy {
        width: 100%;
        padding: 1mm 0 2mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.printing .receipt-copy + .receipt-copy {
        margin-top: 1mm;
        padding-top: 2mm;
        border-top: 1px dashed black;
    }

    body.printing .receipt-brand-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 2mm;
        margin-bottom: 1mm;
    }

    body.printing .receipt-copy h1 {
        margin: 0 0 2mm;
        font-size: 11pt;
        text-align: left;
    }

    body.printing .receipt-logo {
        display: block;
        flex: 0 0 10mm;
        width: 10mm;
        height: 10mm;
        margin: 0;
        object-fit: contain;
    }

    body.printing .receipt-logo[hidden] {
        display: none !important;
    }

    body.printing .receipt-brand-name {
        margin: 0;
        font-size: 9.5pt;
        text-align: left;
    }

    body.printing .receipt-brand-address {
        margin: 0;
        text-align: left;
    }

    body.printing .receipt-copy h2 {
        margin: 0 0 1mm;
        font-size: 9pt;
        text-align: left;
    }

    body.printing .receipt-copy p {
        margin: 0.6mm 0;
        overflow-wrap: anywhere;
    }

    body.printing .receipt-number-row {
        font-size: 7.5pt;
        text-align: left;
    }

    body.printing .receipt-copy table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1mm;
    }

    body.printing .receipt-signatures {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2mm;
        margin-top: 2mm;
        text-align: left;
    }

    body.printing .receipt-signature-field {
        display: grid;
        min-width: 0;
        gap: 1.5mm;
        font-size: 7pt;
        line-height: 1.3;
    }

    body.printing .receipt-signature-line {
        display: block;
        height: 7mm;
        border-top: 1px solid black;
    }

    body.printing .receipt-footer {
        margin-top: 1mm;
        padding-top: 1mm;
        border-top: 1px dotted black;
        font-size: 6.5pt;
        text-align: left;
    }

    body.printing .receipt-copy th,
    body.printing .receipt-copy td {
        padding: 0.8mm;
        border-bottom: 1px solid black;
        text-align: left;
    }

    body.printing-report > :not(#report-section) {
        display: none !important;
    }

    body.printing-report #report-section {
        display: block !important;
        margin: 0;
        padding: 0;
        border: 0;
    }

    body.printing-report .report-controls {
        display: none !important;
    }

    body.printing-report .report-export-help {
        display: none !important;
    }
}