:root {
    --bg: #f5f8fa;
    --panel: #ffffff;

    --text: #1b6787;
    --muted: #687b85;

    --line: #dbe8ed;
    --surface: #edf5f7;

    --dark: #1b6787;
    --brand: #439db8;
    --brand-light: #a7d0de;
    --brand-soft: #edf7fa;

    --green: #269d63;
    --green-soft: #edf8f2;

    --orange: #b96f00;
    --orange-soft: #fff3dc;

    --red: #c44740;
    --red-soft: #fff0ef;

    --blue: #5471dc;

    --radius: 18px;
    --shadow: 0 14px 42px rgba(27,103,135,.08);
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--text);

    background:
        radial-gradient(
            circle at 20% 0%,
            #ffffff 0,
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 4%,
            rgba(67,157,184,.11) 0,
            transparent 24%
        ),
        var(--bg);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* =========================================================
   LOGIN
========================================================= */

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

.login-card {
    width: min(400px, 100%);
    padding: 27px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0,0,0,.11);
    backdrop-filter: blur(14px);
}

.login-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    overflow: hidden;
    background: white;
    box-shadow: 0 7px 20px rgba(27,103,135,.14);
}

.login-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.login-card h1 {
    margin: 18px 0 5px;
    font-size: 25px;
    letter-spacing: -.035em;
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.login-field {
    margin-top: 11px;
}

.login-field label {
    display: block;
    margin-bottom: 5px;
    color: #696a71;
    font-size: 11px;
    font-weight: 750;
}

.login-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dcdde1;
    border-radius: 10px;
    outline: none;
    background: white;
}

.login-field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(67,157,184,.11);
}

.login-submit {
    width: 100%;
    margin-top: 17px;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    background: var(--dark);
    color: white;
    font-weight: 800;
}

.login-error {
    min-height: 17px;
    margin-top: 10px;
    color: var(--red);
    font-size: 11px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-chip {
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--surface);
    color: #5d5f66;
    font-size: 11px;
    font-weight: 750;
}

.logout-button {
    border: 0;
    padding: 7px 9px;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

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

/* =========================================================
   APP
========================================================= */

.app {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.topbar {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 28px;

    background:
        rgba(255,255,255,.83);

    border-bottom:
        1px solid
        rgba(0,0,0,.055);

    backdrop-filter:
        blur(15px);

    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;

    gap: 11px;

    cursor: pointer;
}

.brand-mark {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    overflow: hidden;
    background: white;
    box-shadow: 0 5px 14px rgba(27,103,135,.13);
}

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

.brand-text strong {
    display: block;
    color: var(--dark);

    font-size: 16px;
    letter-spacing: -.02em;
}

.brand-text span {
    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-size: 11px;
}

.upload-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    border: 0;
    border-radius: 11px;

    padding: 10px 15px;

    background: var(--dark);
    color: white;

    box-shadow:
        0 7px 20px
        rgba(0,0,0,.13);

    font-size: 13px;
    font-weight: 780;
}

.upload-button input {
    display: none;
}

.upload-button,
.login-submit,
.small-button.primary {
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.upload-button:hover,
.login-submit:hover,
.small-button.primary:hover {
    background: #165b77;
}

.upload-button:active,
.login-submit:active {
    transform: translateY(1px);
}

.content {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;

    padding: 26px 28px 40px;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 22px;
}

.dashboard-title h1 {
    margin: 0;

    font-size: 27px;
    letter-spacing: -.035em;
}

.dashboard-title p {
    margin: 6px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.tabs {
    display: inline-flex;

    padding: 3px;

    border-radius: 11px;

    background: #eaeaed;
}

.tabs button {
    border: 0;
    border-radius: 8px;

    padding: 8px 12px;

    background: transparent;
    color: #686970;

    font-size: 12px;
    font-weight: 780;
}

.tabs button.active {
    background: white;
    color: var(--text);

    box-shadow:
        0 1px 5px
        rgba(0,0,0,.08);
}

.receipt-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(260px, 1fr)
        );

    gap: 15px;
}

.receipt-card {
    min-height: 310px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--line);

    border-radius:
        var(--radius);

    background: var(--panel);

    box-shadow:
        0 8px 28px
        rgba(0,0,0,.045);

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.receipt-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #d8d9dd;

    box-shadow:
        var(--shadow);
}

.receipt-thumb {
    height: 165px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f7f7f8,
            #ececef
        );

    position: relative;

    cursor: pointer;
}

.receipt-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.92)
        contrast(.98);
}

.status-badge {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 5px 8px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.92);

    box-shadow:
        0 3px 12px
        rgba(0,0,0,.09);

    color: #55565d;

    font-size: 10.5px;
    font-weight: 850;
}

.status-badge.settled {
    background:
        rgba(237,248,242,.95);

    color:
        var(--green);
}

.receipt-card-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 14px;
}

.receipt-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}

.receipt-card-title h3 {
    margin: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 15px;
}

.receipt-card-total {
    flex: 0 0 auto;

    font-weight: 900;
}

.receipt-card-meta {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11.5px;
}

.progress-track {
    width: 100%;
    height: 5px;

    overflow: hidden;

    margin-top: auto;

    border-radius: 999px;

    background: #ececef;
}

.progress-bar {
    height: 100%;

    border-radius: inherit;

    background: var(--green);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 8px;

    color: var(--muted);

    font-size: 10.5px;
}

.problem-badge {
    color: var(--orange);

    font-weight: 750;
}

.empty-board {
    min-height: 390px;

    display: grid;
    place-items: center;

    grid-column: 1 / -1;

    text-align: center;

    color: var(--muted);
}

.empty-board-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    margin:
        0 auto 12px;

    border-radius: 18px;

    background: white;

    box-shadow:
        var(--shadow);

    font-size: 29px;
}

.empty-board strong {
    display: block;

    color: #393a3f;
}

.empty-board span {
    display: block;

    margin-top: 5px;

    font-size: 13px;
}


/* =========================================================
   DETAIL
========================================================= */

.detail-page {
    height:
        calc(100vh - 98px);

    min-height: 650px;
}

.detail-toolbar {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.back-button,
.icon-button {
    border: 0;

    background: transparent;
    color: var(--muted);

    padding: 8px 9px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 750;
}

.back-button:hover,
.icon-button:hover {
    background: #ececef;
}

.detail-actions {
    display: flex;
    align-items: center;

    gap: 5px;
}

.detail-grid {
    height:
        calc(100% - 60px);

    display: grid;

    grid-template-columns:
        minmax(0,.94fr)
        minmax(0,1.06fr);

    gap: 14px;
}

.panel {
    min-height: 0;
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--line);

    border-radius:
        var(--radius);

    background: white;

    box-shadow:
        var(--shadow);
}

.panel-head {
    min-height: 58px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding:
        11px 13px;

    border-bottom:
        1px solid
        var(--line);
}

.panel-body {
    min-height: 0;
    flex: 1 1 auto;
}


/* =========================================================
   LEFT PREVIEW
========================================================= */

.segmented {
    display: inline-flex;

    padding: 3px;

    border-radius: 10px;

    background: #ececef;
}

.segmented button {
    border: 0;

    border-radius: 7px;

    padding: 7px 10px;

    background: transparent;
    color: #66676e;

    font-size: 11.5px;
    font-weight: 780;
}

.segmented button.active {
    background: white;
    color: var(--text);

    box-shadow:
        0 1px 5px
        rgba(0,0,0,.08);
}

.left-view {
    height: 100%;
    min-height: 0;

    display: none;
}

.left-view.active {
    display: block;
}

.image-viewport {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f9f9fa,
            #ececef
        );

    cursor: grab;

    touch-action: none;
}

.image-viewport.dragging {
    cursor: grabbing;
}

.image-stage {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    transform-origin: center center;
}

.image-stage img {
    max-width: 94%;
    max-height: 94%;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 14px 38px
        rgba(0,0,0,.16);

    user-select: none;
    pointer-events: none;
}

.zoom-controls {
    position: absolute;

    left: 12px;
    bottom: 12px;

    display: flex;

    overflow: hidden;

    border:
        1px solid
        rgba(0,0,0,.08);

    border-radius: 10px;

    background:
        rgba(255,255,255,.9);

    box-shadow:
        0 5px 18px
        rgba(0,0,0,.1);

    backdrop-filter:
        blur(8px);
}

.zoom-controls button {
    width: 36px;
    height: 34px;

    border: 0;
    border-right:
        1px solid
        #e6e6e9;

    background: transparent;

    font-weight: 800;
}

.zoom-controls button:last-child {
    border-right: 0;
}

.json-output {
    height: 100%;

    margin: 0;

    padding: 17px;

    overflow: auto;

    background: #111214;
    color: #dbe5df;

    font:
        12px/1.55
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    white-space: pre-wrap;
    word-break: break-word;
}


/* =========================================================
   RIGHT ITEMS
========================================================= */

.right-layout {
    height: 100%;

    display: flex;
    flex-direction: column;
}

.items-scroll {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;

    padding: 15px;
}

.items-footer {
    flex: 0 0 auto;

    padding: 13px 15px 15px;

    border-top:
        1px solid
        var(--line);

    background:
        rgba(255,255,255,.97);

    backdrop-filter:
        blur(12px);
}

.receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;
}

.merchant-title {
    margin: 0;

    font-size: 20px;
    letter-spacing: -.025em;
}

.receipt-meta {
    margin-top: 4px;

    color: var(--muted);

    font-size: 11.5px;
}

.progress-pill {
    flex: 0 0 auto;

    padding: 6px 9px;

    border:
        1px solid
        var(--line);

    border-radius: 999px;

    background: var(--surface);

    color: #5c5d63;

    font-size: 10.5px;
    font-weight: 800;
}

.problem-filter {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 12px;

    padding:
        9px 10px;

    border:
        1px solid
        var(--line);

    border-radius: 11px;

    background: #fafafb;

    color: #606168;

    font-size: 11.5px;
}

.switch-small {
    position: relative;

    width: 38px;
    height: 22px;

    border: 0;
    border-radius: 999px;

    background: #dadade;

    transition:
        background .16s ease;
}

.switch-small::after {
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 2px 4px
        rgba(0,0,0,.2);

    transition:
        transform .16s ease;
}

.switch-small.on {
    background: var(--dark);
}

.switch-small.on::after {
    transform:
        translateX(16px);
}

.item-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.item-card {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap: 12px;

    padding: 12px;

    border:
        1px solid
        var(--line);

    border-radius: 13px;

    background: white;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.item-card:hover {
    border-color: #d3d4d8;
}

.item-card.verified {
    background: var(--green-soft);
    border-color: #caead9;
}

.item-card.problem {
    border-left:
        3px solid
        #e1a33a;
}

.item-name {
    margin-right: 4px;

    font-size: 13.5px;
    font-weight: 820;
}

.item-source {
    margin-top: 4px;

    display: none;

    color: #8a8b91;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 10px;
}

.item-source.visible {
    display: block;
}

.item-chips {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;

    padding: 3px 6px;

    border-radius: 6px;

    background: var(--surface);

    color: #686970;

    font-size: 10.5px;
    font-weight: 650;
}

.chip.discount {
    background:
        var(--orange-soft);

    color:
        var(--orange);
}

.chip.problem {
    background:
        var(--red-soft);

    color:
        var(--red);
}

.item-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.price {
    min-width: 72px;

    text-align: right;
}

.net-price {
    font-size: 15px;
    font-weight: 900;
}

.gross-price {
    margin-top: 2px;

    color: #999aa0;

    font-size: 10px;

    text-decoration:
        line-through;
}

.verify-toggle {
    position: relative;

    width: 42px;
    height: 24px;

    flex: 0 0 auto;

    border: 0;
    border-radius: 999px;

    background: #dedee2;

    transition:
        background .17s ease;
}

.verify-toggle::after {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 2px 5px
        rgba(0,0,0,.18);

    transition:
        transform .17s ease;
}

.verify-toggle.on {
    background:
        var(--green);
}

.verify-toggle.on::after {
    transform:
        translateX(18px);
}

.more-button {
    width: 27px;
    height: 27px;

    border: 0;

    border-radius: 8px;

    background: transparent;
    color: #888990;

    font-weight: 800;
}

.more-button:hover {
    background: #f0f0f2;
}

.edit-form {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 8px;

    margin-top: 7px;

    padding-top: 10px;

    border-top:
        1px solid
        var(--line);
}

.field {
    min-width: 0;
}

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

.field label {
    display: block;

    margin-bottom: 4px;

    color: #85868c;

    font-size: 9.5px;
    font-weight: 750;
}

.field input {
    width: 100%;

    border:
        1px solid
        #dcdde1;

    border-radius: 8px;

    padding: 7px 8px;

    outline: none;

    font-size: 12px;
}

.field input:focus {
    border-color: #9c9da4;
}

.edit-buttons {
    grid-column: span 3;

    display: flex;
    justify-content: flex-end;

    gap: 6px;

    margin-top: 2px;
}

.small-button {
    border: 0;
    border-radius: 8px;

    padding: 7px 10px;

    font-size: 10.5px;
    font-weight: 780;
}

.small-button.primary {
    background: var(--dark);
    color: white;
}

.small-button.secondary {
    background: #ececef;
    color: #5f6066;
}

.small-button.danger {
    margin-right: auto;

    background: var(--red-soft);
    color: var(--red);
}

.total-card {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 8px 18px;

    padding: 13px 14px;

    border-radius: 13px;

    background: var(--dark);
    color: white;
}

.total-row-label {
    color: #a5a6ab;

    font-size: 10.5px;
}

.total-row-value {
    text-align: right;

    font-size: 11px;
    font-weight: 780;
}

.total-final-label {
    margin-top: 3px;

    font-size: 12px;
    font-weight: 820;
}

.total-final-value {
    margin-top: 3px;

    text-align: right;

    font-size: 21px;
    font-weight: 930;
}

.math-status {
    margin-top: 7px;

    min-height: 15px;

    text-align: right;

    color: var(--muted);

    font-size: 10.5px;
}

.math-status.ok {
    color: var(--green);
}

.math-status.bad {
    color: var(--red);
}

.complete-box {
    display: none;

    margin-top: 9px;

    padding: 10px;

    border:
        1px solid
        #c9ead9;

    border-radius: 11px;

    background:
        var(--green-soft);

    color: #39775a;

    font-size: 11px;
    font-weight: 750;

    animation:
        appear .25s ease;
}

.complete-box.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

@keyframes appear {
    from {
        opacity: 0;
        transform:
            translateY(4px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

.settle-button {
    border: 0;

    border-radius: 8px;

    padding: 8px 11px;

    background: var(--green);
    color: white;

    font-size: 10.5px;
    font-weight: 820;
}

.settle-button.reopen {
    background: #ececef;
    color: #55565c;
}

.no-problems {
    padding: 25px;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   LOADING
========================================================= */

.loading-overlay {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: center;
    justify-content: center;

    background:
        rgba(245,246,248,.88);

    backdrop-filter:
        blur(12px);
}

.loading-overlay.visible {
    display: flex;
}

.loading-card {
    width:
        min(390px, calc(100% - 32px));

    padding: 27px;

    border:
        1px solid
        rgba(0,0,0,.07);

    border-radius: 19px;

    background: white;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,.13);

    text-align: center;
}

.spinner {
    width: 46px;
    height: 46px;

    margin:
        0 auto 16px;

    border:
        4px solid
        #ececef;

    border-top-color:
        var(--brand);

    border-radius: 50%;

    animation:
        spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform:
            rotate(360deg);
    }
}

.loading-card strong {
    display: block;

    font-size: 16px;
}

.loading-card span {
    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   SNACKBAR
========================================================= */

.snackbar {
    position: fixed;

    left: 50%;
    bottom: 22px;

    z-index: 120;

    min-width: 280px;

    display: none;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    transform:
        translateX(-50%);

    padding: 11px 13px;

    border-radius: 11px;

    background: #164f67;
    color: white;

    box-shadow:
        0 12px 38px
        rgba(0,0,0,.24);

    font-size: 11.5px;
}

.snackbar.visible {
    display: flex;
}

.snackbar button {
    border: 0;
    background: transparent;

    color: #a6c7ff;

    font-size: 10.5px;
    font-weight: 900;
}


/* V2 dashboard: più compatta e coerente */
.receipt-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.receipt-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 108px minmax(0,1fr);
}

.receipt-thumb {
    height: 100%;
    min-height: 132px;
}

.receipt-card-body {
    min-width: 0;
    padding: 13px;
}

.progress-track {
    margin-top: auto;
}

@media (max-width: 560px) {
    .receipt-grid {
        grid-template-columns: 1fr;
    }

    .receipt-card {
        grid-template-columns: 90px minmax(0,1fr);
    }
}

/* =========================================================
   SWIPE VERIFY
========================================================= */

.swipe-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--green);
    touch-action: pan-y;
}

.swipe-wrap.is-verified {
    background: #7f828a;
}

.swipe-action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 18px;
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    user-select: none;
}

.swipe-wrap .item-card {
    position: relative;
    z-index: 1;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    user-select: none;
}

.swipe-wrap.dragging .item-card {
    transition: none;
}

.swipe-wrap.is-verified .item-card {
    background: var(--green-soft);
    border-color: #c8ead9;
}

.swipe-wrap.problem .item-card {
    border-left: 3px solid #e1a33a;
}

.swipe-status {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    border-radius: 50%;
    background: #ececef;
    color: #8a8b91;
    font-size: 10px;
    font-weight: 900;
}

.swipe-wrap.is-verified .swipe-status {
    background: var(--green);
    color: white;
}

.item-name-row {
    display: flex;
    align-items: center;
    min-width: 0;
}

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

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {
    .topbar {
        height: 64px;

        padding:
            0 14px;
    }

    .brand-text span {
        display: none;
    }

    .content {
        padding:
            17px 13px 30px;
    }

    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-page {
        height: auto;
    }

    .detail-grid {
        height: auto;

        grid-template-columns: 1fr;
    }

    .panel:first-child {
        height: 68vh;
        min-height: 480px;
    }

    .panel:last-child {
        min-height: 650px;
    }

    .right-layout {
        min-height: 650px;
    }
}

@media (max-width: 560px) {
    .receipt-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title h1 {
        font-size: 23px;
    }

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

    .field.wide,
    .edit-buttons {
        grid-column: span 2;
    }

    .item-card {
        gap: 8px;
    }

    .item-actions {
        gap: 5px;
    }

    .price {
        min-width: 61px;
    }
}
