:root {
    --paper: #f7f5ef;
    --surface: #fffdf8;
    --surface-2: #fbf8f1;
    --ink: #24201b;
    --muted: #6f685f;
    --line: #ded6c7;
    --line-soft: #ece4d8;
    --gold: #d7ad35;
    --blue: #5c7f9f;
    --pine: #3d594b;
    --red: #9d2734;
    --shadow: 0 12px 34px rgba(35, 29, 22, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.topbar {
    align-items: center;
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    min-height: 58px;
    padding: 8px 28px;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-weight: 700;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    height: 34px;
    overflow: hidden;
    width: 34px;
}

.brand-mark img,
.page-icon img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brand-copy {
    display: grid;
    gap: 0;
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: 0;
}

.brand-copy small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    max-width: 100%;
}

.nav a {
    border-radius: 6px;
    color: var(--muted);
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.nav-menu {
    position: relative;
}

.nav-menu summary {
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}

.nav-menu summary::-webkit-details-marker {
    display: none;
}

.nav-menu[open] summary,
.nav-menu summary:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.nav-menu div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 36px;
    z-index: 50;
}

.stock-link {
    background: var(--gold);
    color: #24201b !important;
    font-weight: 800;
}

.page-cover {
    background:
        radial-gradient(circle at 16% 40%, rgba(215, 173, 53, 0.24), transparent 230px),
        linear-gradient(135deg, #2d2925, #393128 54%, #283c35);
    height: 210px;
    overflow: hidden;
    position: relative;
}

.cover-pattern {
    inset: 0;
    opacity: 0.34;
    position: absolute;
    background-image:
        url("data:image/svg+xml,%3Csvg width='220' height='170' viewBox='0 0 220 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d7ad35' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M42 130 C60 90 102 57 160 34'/%3E%3Cpath d='M74 93 C52 77 51 49 76 28 C98 49 98 76 74 93Z' fill='%23d7ad35' fill-opacity='.13'/%3E%3Cpath d='M116 61 C100 40 108 18 136 8 C151 31 145 52 116 61Z' fill='%23d7ad35' fill-opacity='.13'/%3E%3Cpath d='M40 130 C20 116 17 93 33 76 C55 88 59 112 40 130Z' fill='%23d7ad35' fill-opacity='.13'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f3ead7' stroke-width='3' stroke-linecap='round' opacity='.42' transform='translate(148 20)'%3E%3Cpath d='M34 8 C20 24 14 45 15 67 C16 91 28 114 42 132'/%3E%3Cpath d='M34 8 C51 26 58 49 57 70 C56 94 47 115 42 132'/%3E%3Cpath d='M16 48 C31 38 44 38 58 48'/%3E%3Cpath d='M15 72 C32 60 48 60 60 72'/%3E%3Cpath d='M20 98 C34 88 48 88 56 98'/%3E%3C/g%3E%3C/svg%3E");
    background-position: 8% 18px, right 20px top 0;
    background-repeat: repeat-x;
    background-size: 280px 210px;
}

.page {
    margin: -58px auto 0;
    max-width: 1120px;
    padding: 0 28px 48px;
    position: relative;
    z-index: 1;
}

.page-identity {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.page-icon {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    height: 112px;
    overflow: hidden;
    width: 112px;
}

.page-identity p {
    color: var(--gold);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    margin: 0 0 8px;
}

.page-identity h1 {
    color: var(--ink);
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 28px;
    min-width: 0;
}

.auth {
    margin: 78px 0 0 auto;
    max-width: 520px;
}

.is-public .topbar {
    position: static;
}

.is-public .topbar .brand {
    pointer-events: none;
}

.is-public .page {
    max-width: 820px;
}

.is-public .auth {
    margin: 42px auto 0;
    max-width: 640px;
}

.auth h1,
.panel h1 {
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 28px;
}

.toolbar {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.toolbar h1 {
    font-size: 30px;
    letter-spacing: 0;
    margin: 0 0 6px;
}

.filters {
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 160px 120px;
    margin-bottom: 16px;
    padding: 12px;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid #d8d0c2;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(92, 127, 159, 0.16);
    outline: 0;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    color: var(--muted);
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.grid {
    display: grid;
    gap: 18px;
}

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

.field-help {
    color: var(--muted);
    font-size: 12px;
    margin: 6px 0 0;
}

.inline-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 18px;
}

.scan-input {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 46px;
}

.icon-btn {
    min-width: 46px;
    padding: 0;
}

.mini-discount {
    display: grid;
    gap: 6px;
    grid-template-columns: 72px 88px auto;
}

.service-adjust-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 92px 112px 150px auto;
    min-width: 470px;
}

.service-adjust-form label {
    display: grid;
    gap: 5px;
}

.service-adjust-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.service-adjust-form input[type="number"] {
    font-weight: 800;
    height: 44px;
    min-width: 0;
    width: 100%;
}

.service-adjust-form button {
    align-self: end;
    min-height: 44px;
    padding-left: 16px;
    padding-right: 16px;
}

.redeem-toggle {
    align-items: center;
    align-self: end;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
}

.redeem-toggle input {
    flex: 0 0 auto;
    height: 18px;
    margin: 0;
    width: 18px;
}

.redeem-toggle span {
    color: var(--ink) !important;
    font-size: 14px !important;
}

.purchase-adjust-form {
    display: grid;
    gap: 8px;
    grid-template-columns: 48px 64px 76px 76px 64px;
    min-width: 360px;
}

.purchase-adjust-form label,
.purchase-adjust-form .readonly-pair {
    display: grid;
    gap: 4px;
}

.purchase-adjust-form label span,
.purchase-adjust-form .readonly-pair span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.purchase-adjust-form .readonly-pair strong,
.purchase-adjust-form input {
    align-items: center;
    background: #fff;
    border: 1px solid #d9cdbd;
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    height: 40px;
    min-width: 0;
    padding: 8px 10px;
    width: 100%;
}

.purchase-adjust-form .readonly-pair strong {
    background: #f6f2eb;
}

.purchase-adjust-form button {
    align-self: end;
    font-size: 16px;
    height: 40px;
    min-height: 40px;
    padding: 0 10px;
}

.cost-table {
    min-width: 900px;
}

.cost-table th,
.cost-table td {
    padding-left: 12px;
    padding-right: 12px;
}

.cost-product-cell {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: 68px minmax(120px, 1fr);
    min-width: 240px;
}

.cost-product-cell strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
}

.cost-money-cell {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(92px, 1fr) minmax(118px, 1fr);
    min-width: 240px;
}

.cost-money-cell > div > strong {
    display: block;
    font-size: 17px;
    line-height: 1.6;
    white-space: nowrap;
}

.cost-money-cell > div > span {
    color: var(--muted);
    display: block;
    white-space: nowrap;
}

.cost-summary {
    display: grid;
    gap: 4px;
    min-width: 118px;
}

.cost-summary span {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.cost-summary strong {
    color: var(--ink);
    font-size: 18px;
    white-space: nowrap;
}

.row-actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
    min-width: 72px;
}

.row-actions .btn,
.row-actions button {
    min-height: 38px;
    padding: 8px 10px;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.btn,
button {
    align-items: center;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    text-decoration: none;
}

.btn:hover,
button:hover {
    background: #3a332c;
}

.btn:disabled,
button:disabled {
    background: #d8d1c7;
    border-color: #d8d1c7;
    color: #7c746b;
    cursor: not-allowed;
}

.btn.secondary {
    background: var(--pine);
    border-color: var(--pine);
}

.btn.secondary:disabled,
button.secondary:disabled {
    background: #d8d1c7;
    border-color: #d8d1c7;
    color: #7c746b;
}

.btn.ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn.danger,
button.danger {
    background: var(--red);
    border-color: var(--red);
}

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

table {
    border-collapse: collapse;
    min-width: 900px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line-soft);
    padding: 13px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #fbf8f1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

tbody tr:hover {
    background: rgba(215, 173, 53, 0.07);
}

.thumb {
    aspect-ratio: 4 / 5;
    background: #efe6d6;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    width: 74px;
}

.empty-thumb {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    justify-content: center;
}

.product-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: start;
}

.photo-main {
    aspect-ratio: auto;
    background: #efe6d6;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: block;
    max-height: min(72vh, 720px);
    object-fit: contain;
    width: 100%;
}

.qr-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    overflow: hidden;
}

.qr-card img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    height: auto;
    max-width: min(100%, 260px);
}

.meta {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.badge {
    background: rgba(215, 173, 53, 0.16);
    border: 1px solid rgba(215, 173, 53, 0.28);
    border-radius: 6px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

.badge.status-pending {
    background: #ece9e2;
    border-color: #d8d0c2;
    color: #5f5950;
}

.badge.status-stock {
    background: #e5f3ec;
    border-color: #b9dec9;
    color: #1f5f42;
}

.flash {
    border-radius: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.flash.success {
    background: #e5f3ec;
    color: #1f5f42;
}

.flash.error {
    background: #f8e4e1;
    color: var(--red);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scan-box {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.checkout-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    margin-bottom: 18px;
}

.report-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.report-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
    padding: 18px;
}

.report-card span,
.report-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.report-card strong {
    color: var(--ink);
    font-size: 30px;
    line-height: 1.15;
}

.report-chart {
    display: grid;
    gap: 10px;
}

.report-bar-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 52px minmax(0, 1fr) 86px;
}

.report-bar-label,
.report-bar-value {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.report-bar-value {
    text-align: right;
}

.report-bars {
    display: grid;
    gap: 4px;
}

.report-bar {
    border-radius: 999px;
    display: block;
    height: 9px;
    min-width: 2px;
}

.report-bar.revenue,
.legend.revenue {
    background: var(--pine);
}

.report-bar.cost,
.legend.cost {
    background: var(--gold);
}

.report-bar.profit,
.legend.profit {
    background: var(--blue);
}

.report-bar.loss {
    background: var(--red);
}

.legend {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    margin: 0 5px 0 10px;
    vertical-align: middle;
    width: 18px;
}

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

.compact-table table {
    min-width: 420px;
}

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

.discount-grid button {
    grid-column: span 2;
}

.checkout-total {
    color: var(--red);
    font-size: 24px;
    white-space: nowrap;
}

.checkout-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.picker-list {
    display: grid;
    gap: 10px;
    max-height: 70vh;
    overflow: auto;
}

.picker-row {
    align-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 72px minmax(0, 1fr);
    margin: 0;
    padding: 10px;
}

.picker-row img,
.mini-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    height: 56px;
    width: 56px;
}

.picker-row small,
.item-cell small {
    color: var(--muted);
    display: block;
}

.item-cell {
    align-items: center;
    display: flex;
    gap: 10px;
}

.stock-search {
    grid-template-columns: minmax(0, 1fr) auto;
}

.category-scroll {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-scroll a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    flex: 0 0 auto;
    font-weight: 800;
    padding: 8px 13px;
    text-decoration: none;
    white-space: nowrap;
}

.category-scroll a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.stock-list {
    display: grid;
    gap: 12px;
}

.stock-row {
    align-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 12px;
}

.stock-row img,
.stock-image {
    aspect-ratio: 4 / 5;
    background: #efe6d6;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: contain;
    width: 96px;
    max-height: 120px;
}

.stock-row h2 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0;
}

.stock-card-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.btn.tiny {
    min-height: 32px;
    padding: 5px 10px;
}

.stock-detail {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
}

.stock-detail > img,
.stock-detail > .stock-image {
    max-height: 260px;
    object-fit: contain;
    width: 100%;
}

.scan-modal {
    align-items: center;
    background: rgba(36, 32, 27, 0.64);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 100;
}

.scan-modal[hidden] {
    display: none;
}

.scan-dialog {
    background: var(--surface);
    border-radius: 10px;
    max-width: 560px;
    padding: 18px;
    width: 100%;
}

#scan-video {
    background: #111;
    border-radius: 8px;
    min-height: 320px;
    width: 100%;
}

#reader {
    background: #2d2925;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 320px;
    overflow: hidden;
}

.print-only {
    display: none;
}

@media (max-width: 820px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 14px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .nav a,
    .nav-menu summary {
        background: var(--surface-2);
        font-size: 13px;
        padding: 10px 8px;
        text-align: center;
    }

    .page-cover {
        height: 112px;
    }

    .page {
        margin-top: -28px;
        padding: 0 12px 32px;
        width: 100%;
    }

    .page-identity {
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .page-icon {
        border-radius: 12px;
        height: 56px;
        flex: 0 0 56px;
        width: 56px;
    }

    .page-identity h1 {
        font-size: 21px;
    }

    .page-identity p {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .auth {
        margin: 18px 0 0;
        max-width: none;
    }

    .is-public .auth {
        margin: 18px 0 0;
        max-width: none;
    }

    .auth h1,
    .panel h1 {
        font-size: 28px;
    }

    .panel {
        border-radius: 10px;
        padding: 18px;
    }

    .filters,
    .form-grid,
    .product-layout,
    .scan-box,
    .checkout-layout,
    .discount-grid,
    .inline-form,
    .mini-discount {
        grid-template-columns: 1fr;
    }

    .nav-menu div {
        position: static;
        width: 100%;
    }

    .stock-link {
        grid-column: 1 / -1;
    }

    .stock-row {
        grid-template-columns: 86px minmax(0, 1fr);
        padding: 10px;
    }

    .stock-row img,
    .stock-image {
        width: 86px;
        max-height: 108px;
    }

    .stock-card-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-detail {
        grid-template-columns: 1fr;
    }

    .stock-detail > img,
    .stock-detail > .stock-image {
        max-height: 260px;
        width: min(100%, 220px);
    }

    .mini-thumb {
        height: 48px;
        width: 48px;
    }

    .purchase-adjust-form {
        grid-template-columns: repeat(2, minmax(86px, 1fr));
        min-width: 220px;
    }

    .purchase-adjust-form button {
        grid-column: 1 / -1;
    }

    .service-adjust-form {
        grid-template-columns: 1fr 1fr;
        min-width: 260px;
    }

    .service-adjust-form .redeem-toggle,
    .service-adjust-form button {
        grid-column: 1 / -1;
    }

    .cost-table {
        min-width: 720px;
    }

    .cost-product-cell {
        grid-template-columns: 48px minmax(92px, 1fr);
        min-width: 160px;
    }

    .cost-money-cell {
        gap: 8px;
        grid-template-columns: 1fr;
        min-width: 112px;
    }

    .cost-summary {
        min-width: 118px;
    }

    .discount-grid button {
        grid-column: span 1;
    }

    .table-wrap {
        margin-left: -6px;
        margin-right: -6px;
    }

    table {
        min-width: 680px;
    }

    .photo-main {
        max-height: 390px;
    }

    .qr-card img {
        max-width: min(100%, 210px);
    }

    .checkout-total {
        font-size: 20px;
        white-space: normal;
    }

    .report-grid,
    .report-split {
        grid-template-columns: 1fr;
    }

    .report-card strong {
        font-size: 25px;
    }

    .report-bar-row {
        grid-template-columns: 44px minmax(0, 1fr) 72px;
    }

    .span-2,
    .span-3 {
        grid-column: span 1;
    }

    .toolbar {
        flex-direction: column;
    }
}

@media print {
    body {
        background: #fff;
    }

    .topbar,
    .nav,
    .page-cover,
    .page-identity,
    .no-print {
        display: none !important;
    }

    .page {
        margin: 0;
        max-width: none;
        padding: 0;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }

    .print-only {
        display: block;
    }
}
