:root {
    --navy: #272c78;
    --navy-dark: #1d2160;
    --red: #ca202c;
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1c2340;
    --muted: #5f6884;
    --line: #dce2f0;
    --line-strong: #c7d0e4;
    --green: #176b45;
    --green-bg: #e7f5ee;
    --amber: #8a5a00;
    --amber-bg: #fff3dd;
    --blue: #1d5c9e;
    --blue-bg: #e9f1fb;
    --red-bg: #fdecee;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(28, 35, 64, 0.08);
    --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.55;
}

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

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 1.65rem;
}

h2 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 12px;
}

p:last-child {
    margin-bottom: 0;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.86rem;
}

.center {
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

.block {
    display: block;
}

.strong {
    font-weight: 650;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
}

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 650;
    line-height: 1.1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(39, 44, 120, 0.28);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
}

.btn-outline {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--navy);
}

.btn-outline:hover {
    border-color: var(--navy);
    background: #f7f8ff;
}

.btn-quiet {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.btn-quiet:hover {
    background: #eef1f9;
    color: var(--text);
}

.btn-wa {
    background: #1f8f4e;
    border-color: #1f8f4e;
    color: #fff;
}

.btn-wa:hover {
    background: #177a41;
    border-color: #177a41;
    color: #fff;
}

.btn-small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.86rem;
}

.btn-full {
    width: 100%;
}

.head-actions,
.head-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- App chrome ---------- */

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.app-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.brand-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 10px;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
    display: none;
}

.app-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}

.app-nav a:hover {
    background: #f1f3fa;
    color: var(--text);
    text-decoration: none;
}

.app-nav a.is-active {
    background: #eef0fb;
    color: var(--navy);
}

.userbox {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}

.user-meta strong {
    font-size: 0.88rem;
}

.user-meta span {
    font-size: 0.74rem;
    color: var(--muted);
}

.logout-form {
    margin: 0;
}

.app-main {
    padding: 26px 0 48px;
}

.app-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 30px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--line);
}

/* ---------- Public / client ---------- */

.public-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.public-header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-tag {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.public-main {
    padding: 34px 16px 20px;
}

.public-shell {
    max-width: 660px;
    margin: 0 auto;
}

.public-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 20px 40px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.78rem;
}

.public-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.public-card h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.public-card-center {
    text-align: center;
}

.public-card-center .left {
    text-align: left;
}

.lead {
    font-size: 1.02rem;
    color: #3c4664;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.case-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    background: #f7f9ff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
}

.case-summary .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.case-summary strong {
    font-size: 0.95rem;
}

.privacy-note {
    background: #f5f7ff;
    border: 1px solid #dfe4f7;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
}

.privacy-note strong {
    display: block;
    margin-bottom: 4px;
}

.privacy-note p {
    color: #46506e;
    font-size: 0.88rem;
}

.callout {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
}

.callout-soft {
    background: #f6f8ff;
    border: 1px solid var(--line);
}

.success-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--green-bg);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.rating-summary {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Rating control */
.rating-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.rating-fieldset legend {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.rating-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.rating-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.rating-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1.5px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.rating-option:hover span {
    border-color: var(--navy);
    background: #f5f6ff;
}

.rating-option input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.rating-option input:focus-visible + span {
    outline: 3px solid rgba(39, 44, 120, 0.3);
    outline-offset: 2px;
}

.rating-hint {
    margin-top: 10px;
}

/* ---------- Layout blocks ---------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-head h1 {
    margin-bottom: 4px;
}

.page-head p {
    margin: 0;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(28, 35, 64, 0.03);
    margin-bottom: 20px;
    min-width: 0;
}

.panel h2 {
    margin-bottom: 12px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel-head h2 {
    margin: 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.split-aside {
    grid-template-columns: 1.15fr 0.85fr;
}

.detail-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
    align-items: start;
}

/* ---------- Stats ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-note {
    font-size: 0.78rem;
    color: var(--muted);
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mini-stats div {
    background: #f7f9ff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.mini-stats strong {
    font-size: 1.2rem;
}

.mini-stats span {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ---------- Badges & ratings ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-grey { background: #eef0f6; color: #545e78; }
.badge-dark { background: #3b3f55; color: #fff; }

.rating {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.rating-good { background: var(--green-bg); color: var(--green); }
.rating-low { background: var(--red-bg); color: var(--red); }

.big-rating .rating {
    font-size: 1.6rem;
    padding: 6px 14px;
    border-radius: 12px;
}

/* ---------- Forms ---------- */

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.field > span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3a4360;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(39, 44, 120, 0.12);
    outline: none;
}

.field-inline {
    flex-direction: column;
    gap: 4px;
}

.field-grow {
    flex: 1 1 200px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.filter-bar .field-inline {
    min-width: 150px;
}

.filter-bar-tight {
    display: inline-flex;
}

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

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row input {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.send-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.message-preview {
    margin: 10px 0;
    font-size: 0.9rem;
}

.message-preview summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}

.message-text {
    background: #f7f9ff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    color: #3c4664;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.meta-grid .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.meta-grid strong {
    font-size: 0.86rem;
}

/* ---------- Tables ---------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    background: #f8f9fd;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf0f7;
    vertical-align: top;
}

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

.table tbody tr:hover {
    background: #fafbff;
}

.table-compact td,
.table-compact th {
    padding: 8px 10px;
}

.table-team td {
    vertical-align: middle;
}

.comment-cell {
    min-width: 220px;
    max-width: 360px;
    white-space: normal;
    color: #3c4664;
}

.product-cell {
    min-width: 180px;
}

.details-summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
}

.inline-details {
    display: inline-block;
    margin-right: 6px;
    position: relative;
}

.inline-details > summary {
    list-style: none;
    display: inline-flex;
}

.inline-details > summary::-webkit-details-marker {
    display: none;
}

.reset-form {
    position: absolute;
    right: 0;
    top: 40px;
    z-index: 10;
    width: 250px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Lists, details ---------- */

.detail-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.action-list,
.comment-list,
.plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.action-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f7;
}

.action-list li:last-child {
    border-bottom: 0;
}

.action-list .small {
    display: block;
}

.comment-list li {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f7;
}

.comment-list li:last-child {
    border-bottom: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.comment-body {
    color: #3c4664;
    font-size: 0.92rem;
}

.plain-list li {
    padding: 8px 0 8px 18px;
    position: relative;
    font-size: 0.92rem;
    border-bottom: 1px solid #edf0f7;
}

.plain-list li:last-child {
    border-bottom: 0;
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.result-box {
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: #f9fafe;
}

.result-good {
    background: #f4fbf7;
    border-color: #cfe9db;
}

.comment-block {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #3c4664;
}

.empty {
    padding: 22px;
    text-align: center;
    color: var(--muted);
    background: #fbfcff;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    font-size: 0.92rem;
}

/* ---------- Flash & pagination ---------- */

.flash {
    padding: 12px 16px;
    border-radius: 11px;
    border: 1px solid transparent;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.flash-success { background: var(--green-bg); border-color: #c8e6d7; color: var(--green); }
.flash-error { background: var(--red-bg); border-color: #f5c9ce; color: #9d1b25; }
.flash-info { background: var(--blue-bg); border-color: #cadff5; color: var(--blue); }
.flash-warning { background: var(--amber-bg); border-color: #f0dcb6; color: var(--amber); }

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
}

.page-link:hover {
    border-color: var(--navy);
    text-decoration: none;
}

.page-link.is-current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ---------- Modal / QR ---------- */

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 22, 45, 0.55);
}

.modal-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: min(420px, 100%);
    box-shadow: 0 20px 60px rgba(10, 14, 35, 0.3);
}

.qr-target {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.qr-target svg {
    width: min(300px, 100%);
    height: auto;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

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

@media (max-width: 900px) {
    .split-grid,
    .split-aside,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .userbox {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 8px;
    }

    .user-meta {
        text-align: left;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .app-shell {
        padding: 0 14px;
    }

    .public-main {
        padding: 20px 12px;
    }

    .public-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .public-card h1 {
        font-size: 1.55rem;
    }

    h1 {
        font-size: 1.4rem;
    }

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

    .page-head .btn {
        width: 100%;
    }

    .filter-bar {
        padding: 12px;
    }

    .filter-bar .field-inline,
    .filter-bar .field-grow {
        width: 100%;
        flex: 1 1 100%;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .split-grid,
    .stat-grid {
        gap: 12px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .send-grid {
        grid-template-columns: 1fr;
    }

    .copy-row {
        flex-direction: column;
    }

    .detail-list > div {
        grid-template-columns: 110px 1fr;
    }

    .table {
        font-size: 0.84rem;
    }

    .reset-form {
        right: auto;
        left: 0;
    }

    .app-footer,
    .public-footer {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media print {
    body.qr-open {
        background: #fff;
    }

    body.qr-open > *:not(.modal) {
        display: none !important;
    }

    body.qr-open .modal {
        position: static;
        display: block;
        padding: 0;
    }

    body.qr-open .modal-backdrop,
    body.qr-open .modal-actions {
        display: none !important;
    }

    body.qr-open .modal-panel {
        box-shadow: none;
        width: 100%;
        text-align: center;
    }
}
