* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f3f1eb;
    color: #1f2428;
}

body.device-profile-tablet {
    --wrap-max-width: 1600px;
    --panel-width: 92%;
    --panel-max-width: calc(var(--wrap-max-width) * 0.92);
    --tile-height: 120px;
}

:root {
    --wrap-max-width: 1280px;
    --panel-width: 72%;
    --panel-max-width: calc(var(--wrap-max-width) * 0.72);
    --tile-height: 140px;
}

.wrap {
    max-width: var(--wrap-max-width);
    margin: 0 auto;
    padding: 24px;
}

main.wrap {
    padding-top: 16px;
}

.topbar {
    background: linear-gradient(135deg, #143642, #305252);
    color: #fff;
}

.topbar .wrap {
    padding-top: 6px;
    padding-bottom: 6px;
}

.topbar-shell {
    position: relative;
}

.topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-inner-compact {
    width: var(--panel-width);
    margin: 0 auto;
}

.topbar-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.topbar-access {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 5;
    min-width: 220px;
}

.topbar-access-active {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    min-width: 220px;
}

.topbar-access-name {
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.topbar-access-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 54, 66, 0.18);
    color: #143642;
}

.topbar-access-form {
    display: grid;
    gap: 10px;
}

.topbar-access-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #143642;
}

.topbar-access-form input {
    width: 100%;
}

.topbar h1 {
    margin: 0;
}

.muted {
    color: #6a737d;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.topbar .muted {
    color: rgba(255,255,255,0.8);
}

.topbar-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    text-decoration: none;
}

.topbar-logo {
    display: block;
    height: 100%;
    max-height: none;
    width: auto;
    object-fit: contain;
}

body.site-home {
    background: #f5f2eb;
    color: #1d2327;
}

.site-home-picker {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.site-home-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-home-picker-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    border: 1px solid rgba(20, 54, 66, 0.1);
}

.site-home-picker-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.site-home-picker-head h1 {
    margin: 0;
    color: #143642;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.site-home-app-grid {
    display: grid;
    gap: 14px;
}

.site-home-app-tile {
    display: grid;
    gap: 4px;
    padding: 20px;
    border-radius: 18px;
    text-decoration: none;
    background: linear-gradient(180deg, #1d63e0 0%, #124bb0 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(18, 75, 176, 0.18);
}

.site-home-app-tile strong {
    font-size: 22px;
    line-height: 1.1;
}

.site-home-app-tile span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.4;
}

.site-home-app-tile:hover {
    transform: translateY(-1px);
}

.site-home-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 242, 235, 0.96);
    border-bottom: 1px solid rgba(20, 54, 66, 0.1);
}

.site-home-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-home-brand {
    color: #143642;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-home-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-home-nav a {
    color: #305252;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 999px;
}

.site-home-nav a:hover {
    background: rgba(20, 54, 66, 0.05);
}

.site-home-nav-cta {
    background: #143642;
    color: #fff !important;
}

.site-home-hero {
    padding: 56px 0 28px;
}

.site-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 24px;
    align-items: start;
}

.site-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #7c4f2e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-home-hero-copy h1,
.site-home-section-head h2,
.site-home-contact-card h2 {
    margin: 0;
    color: #143642;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-home-hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(38px, 6vw, 68px);
}

.site-home-lead {
    max-width: 66ch;
    margin: 20px 0 0;
    color: #4b5358;
    font-size: 18px;
    line-height: 1.72;
}

.site-home-actions,
.site-home-contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.site-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: #143642;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: none;
}

.site-home-button.secondary {
    background: transparent;
    color: #143642;
    box-shadow: inset 0 0 0 1px rgba(20, 54, 66, 0.18);
}

.site-home-summary-card,
.site-home-project-card,
.site-home-process-card,
.site-home-audience-card,
.site-home-contact-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(20, 54, 66, 0.1);
    box-shadow: none;
}

.site-home-summary-card {
    padding: 22px;
}

.site-home-summary-card strong {
    display: block;
    color: #143642;
    font-size: 18px;
}

.site-home-summary-list {
    margin: 14px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #4b5358;
    line-height: 1.6;
}

.site-home-section {
    padding: 26px 0 38px;
}

.site-home-section.alt {
    background: rgba(20, 54, 66, 0.03);
}

.site-home-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.site-home-section-head h2,
.site-home-contact-card h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.site-home-section-head p {
    max-width: 72ch;
    margin: 0;
    color: #4b5358;
    line-height: 1.7;
}

.site-home-project-grid,
.site-home-process-grid,
.site-home-audience-grid,
.site-home-benefit-grid {
    display: grid;
    gap: 18px;
}

.site-home-project-grid,
.site-home-process-grid,
.site-home-audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-home-project-card,
.site-home-process-card,
.site-home-audience-card {
    padding: 22px;
}

.site-home-project-card h3,
.site-home-process-card strong,
.site-home-audience-card strong {
    color: #143642;
}

.site-home-project-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.site-home-project-card p,
.site-home-process-card p,
.site-home-audience-card p,
.site-home-contact-card p {
    margin: 0;
    color: #4b5358;
    line-height: 1.68;
}

.site-home-project-card a {
    display: inline-flex;
    margin-top: 18px;
    color: #143642;
    font-weight: 700;
    text-decoration: none;
}

.site-home-process-card strong,
.site-home-audience-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.site-home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-home-benefit-item {
    padding: 18px 20px;
    border-top: 1px solid rgba(20, 54, 66, 0.12);
    color: #143642;
    font-weight: 600;
}

.site-home-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 28px;
    align-items: center;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.section-page-title {
    margin: 0 0 16px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #143642;
    letter-spacing: 0.01em;
}

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

.cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 20px;
}

.two {
    grid-template-columns: 1fr 1.4fr;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(20, 54, 66, 0.08);
}

.narrow-panel {
    width: var(--panel-width);
    max-width: var(--panel-max-width);
    margin-left: auto;
    margin-right: auto;
}

.list-panel {
    width: var(--panel-width);
    max-width: var(--panel-max-width);
    margin-left: auto;
    margin-right: auto;
}

.calendar-panel {
    width: 92%;
    max-width: calc(var(--wrap-max-width) * 0.92);
}

.dashboard-panel {
    min-height: 420px;
}

.card h2, .card h3 {
    margin-top: 0;
}

.stat .big {
    font-size: 40px;
    font-weight: 700;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

input, select, textarea, button {
    font: inherit;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7d4cb;
    border-radius: 10px;
    background: #fffdf8;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.inline-checks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.check input {
    width: auto;
}

.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    background: #305252;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: #dfe8e8;
    color: #254046;
}

.button.warning {
    background: #d4a514;
    color: #1f2428;
}

.button.success {
    background: #2f8f4e;
    color: #fff;
}

.button.danger {
    background: #d64c4c;
    color: #fff;
}

.small-button {
    padding: 8px 12px;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #ece7dc;
    text-align: left;
    vertical-align: top;
}

.simple-list {
    margin: 0;
    padding-left: 18px;
}

.stack {
    display: grid;
    gap: 12px;
}

.row {
    display: flex;
    gap: 12px;
}

.between {
    justify-content: space-between;
}

.center {
    align-items: center;
}

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

.sort-links a {
    text-decoration: none;
    color: #305252;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf2f2;
}

.sort-links a.active {
    background: #305252;
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2f2;
}

.success-badge {
    background: #d9efe0;
    color: #1d5a30;
}

.warning-badge {
    background: #fff1cf;
    color: #7a5810;
}

.danger-badge {
    background: #f6d8d8;
    color: #8f2c2c;
}

.group-block + .group-block {
    margin-top: 18px;
}

.group-block.strong {
    padding: 12px 14px;
    border-top: 1px solid #ece7dc;
    border-radius: 14px;
    background: #edf6ef;
    border: 1px solid #cfe4d4;
}

.group-block.strong h3 {
    font-size: 22px;
    margin-bottom: 0;
}

.alert {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #fff3d6;
}

.info-box {
    padding: 14px;
    border-radius: 12px;
    background: #edf2f2;
}

.top-space {
    margin-top: 16px;
}

.tile-section {
    margin-top: 20px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-auto-rows: var(--tile-height);
    align-content: start;
    align-items: stretch;
}

.home-grid {
    align-items: stretch;
}

.fixed-grid {
    min-height: 0;
}

.selector-grid {
    min-height: 0;
}

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

.settings-section-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.setting-tab {
    width: auto;
    min-height: 40px;
    padding: 8px 16px;
    justify-content: center;
    font-size: 16px;
    white-space: nowrap;
}

.setting-tab.active {
    background: #305252;
    color: #fff;
    border-color: #305252;
}

.page-switch-tabs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.page-switch-tabs.equal-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-switch-tab {
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.1;
}

.page-switch-tab.active {
    pointer-events: none;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
}

.page-switch-spacer {
    display: block;
}

.page-switch-target {
    justify-self: end;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.1;
}

.suspended-badge {
    background: #f5d7d7;
    color: #8a2f2f;
}

.calendar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-page-title {
    margin: 0;
    min-width: 240px;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-weekdays {
    margin-bottom: 10px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #4f5c60;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-day {
    min-height: 155px;
    padding: 10px;
    border: 1px solid #e1ddd4;
    border-radius: 14px;
    background: #fffdf8;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.customer-calendar-mobile-list {
    display: none;
}

.customer-calendar-mobile-day {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 10px 12px;
    border: 1px solid #e1ddd4;
    border-radius: 14px;
    background: #fffdf8;
    cursor: pointer;
}

.customer-calendar-mobile-day + .customer-calendar-mobile-day {
    margin-top: 8px;
}

.customer-calendar-mobile-day.weekend {
    background: #e8decd;
}

.customer-calendar-mobile-day.today {
    border-color: #305252;
    box-shadow: inset 0 0 0 1px #305252;
}

.customer-calendar-mobile-day.closed-day {
    background: #f8d9d9;
    border-color: #e07a7a;
}

.customer-calendar-mobile-head {
    display: grid;
    align-content: center;
    gap: 4px;
    padding-right: 8px;
    border-right: 1px solid #e7dfd1;
}

.customer-calendar-mobile-weekday {
    font-size: 13px;
    font-weight: 700;
    color: #4f5c60;
    line-height: 1.1;
}

.customer-calendar-mobile-date {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #143642;
}

.customer-calendar-mobile-events {
    display: grid;
    gap: 6px;
    align-content: center;
    min-width: 0;
}

.customer-calendar-mobile-empty {
    font-size: 13px;
    color: #6a737d;
}

.customer-calendar-hint {
    margin: 0 0 12px;
    text-align: center;
    color: #4f5c60;
    font-size: 15px;
}

.staff-schedule-panel {
    width: calc(100vw - 96px);
    max-width: calc(100vw - 96px);
    margin-left: calc(50% - 50vw + 48px);
    margin-right: calc(50% - 50vw + 48px);
    padding: 12px;
}

.staff-schedule-note {
    margin: 6px 0 0;
}

.staff-schedule-sheet {
    width: 100%;
}

.staff-schedule-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.staff-schedule-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.staff-schedule-filter-pill {
    position: relative;
    display: inline-flex;
}

.staff-schedule-filter-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.staff-schedule-filter-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #7f8a8f;
    background: #f8fafb;
    color: #273136;
    font-size: 12px;
    font-weight: 700;
    border-top: 4px solid var(--employee-color);
    cursor: pointer;
}

.staff-schedule-filter-pill input:not(:checked) + span {
    opacity: 0.45;
    background: #eceff1;
}

.staff-schedule-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.staff-schedule-actions form {
    margin: 0;
}

.staff-generation-summary {
    border: 1px solid #d7d4cb;
    border-radius: 12px;
    background: #fffdf8;
    padding: 10px 12px;
}

.staff-generation-summary-modal {
    max-width: 980px;
}

.staff-generation-summary-table-wrap {
    overflow-x: auto;
}

.staff-generation-summary-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    table-layout: fixed;
}

.staff-generation-summary-table th,
.staff-generation-summary-table td {
    border: 1px solid #6f7a80;
    padding: 10px 8px;
    text-align: center;
}

.staff-generation-summary-table thead th {
    background: color-mix(in srgb, var(--summary-color, #305252) 32%, #ffffff);
    font-size: 15px;
}

.staff-generation-summary-table thead th:first-child {
    background: #edf2ee;
}

.staff-generation-summary-table tbody th {
    width: 160px;
    background: #edf2ee;
    text-align: left;
    font-size: 14px;
}

.staff-generation-summary-table tbody td {
    background: color-mix(in srgb, var(--summary-color, #305252) 18%, #ffffff);
    font-size: 16px;
    font-weight: 700;
}

.staff-schedule-table-wrap {
    overflow-x: auto;
}

.staff-schedule-table {
    border-collapse: collapse;
    width: auto;
    table-layout: fixed;
    background: #fffdf8;
}

.staff-schedule-table th,
.staff-schedule-table td {
    border: 1px solid #7f8a8f;
    padding: 0;
}

.staff-schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #edf2ee;
    min-height: 44px;
    height: 44px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.staff-schedule-table thead th:first-child {
    background: #efe8da;
}

.staff-col-day {
    width: 92px;
}

.staff-col-employee {
    width: 102px;
}

.staff-col-events {
    width: 260px;
}

.staff-schedule-header-name {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-top: 4px solid var(--employee-color);
    background: #edf2ee;
    word-break: break-word;
    line-height: 1.1;
}

.staff-schedule-header-link {
    color: inherit;
    text-decoration: none;
}

.staff-schedule-table thead th:last-child {
    background: #dde7ea;
}

.staff-day-start td,
.staff-day-start th {
    border-top: 2px solid #3f474c;
}

.staff-day-start.weekend .staff-day-cell,
.staff-day-second.weekend .staff-day-cell {
    background: #e4d4b8;
}

.staff-day-cell {
    width: 92px;
    min-width: 92px;
    vertical-align: middle;
    background: #fffdf8;
    padding: 0;
}

.staff-day-main {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px;
    text-align: center;
}

.staff-day-weekday {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.staff-day-date {
    font-size: 15px;
    font-weight: 700;
    color: #2b353a;
}

.staff-shift-cell {
    width: 102px;
    min-width: 102px;
    background: var(--employee-column-tint, #f8fafb);
    position: relative;
}

.staff-shift-cell[data-availability-pill]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 18px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.staff-shift-cell.availability-available::after {
    background: #cda93a;
}

.staff-shift-cell.availability-preferred::after {
    background: #2f8f4e;
}

.staff-shift-cell.availability-unavailable::after {
    background: #b85c5c;
}

.staff-shift-toggle {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.staff-shift-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.staff-shift-toggle span {
    width: 100%;
    height: 100%;
    min-height: 40px;
    border: 1px solid #8b959b;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 22px;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    position: relative;
    z-index: 1;
}

.staff-shift-toggle input:checked + span {
    background: #3f8f70;
    border-color: #2e6f57;
    color: #ffffff;
}

.staff-availability-toggle {
    width: 100%;
    min-height: 40px;
    border: 1px solid #8b959b;
    background: rgba(255, 255, 255, 0.55);
    color: #263238;
    font: inherit;
    cursor: pointer;
    padding: 4px 6px;
}

.staff-availability-toggle.availability-preferred {
    background: rgba(212, 165, 20, 0.28);
}

.staff-availability-toggle.availability-unavailable {
    background: rgba(184, 92, 92, 0.28);
}

.availability-label {
    display: block;
    font-size: 12px;
    line-height: 1.1;
}

.staff-events-cell {
    width: 260px;
    min-width: 260px;
    vertical-align: top;
    padding: 0;
}

.staff-events-lane-table {
    position: relative;
    min-height: 80px;
    background: #f4f1e8;
    height: 100%;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.staff-events-lane-table::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #5f696f;
    z-index: 0;
}

.staff-schedule-row > .staff-schedule-toggle:nth-last-child(n + 2),
.staff-schedule-row > .staff-schedule-side,
.staff-schedule-row > .staff-schedule-events-lane {
    margin-right: -1px;
}

.staff-schedule-sticky-head > * {
    margin-right: -1px;
}

.staff-schedule-event-block {
    position: absolute;
    z-index: 1;
    background: var(--event-color);
    color: #fff;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

.staff-schedule-event-block.closed {
    background: #df8080;
}


.customer-event-info-modal {
    max-width: 560px;
}

.calendar-day.empty {
    background: transparent;
    border: 1px dashed #ddd6c8;
}

.calendar-day.today {
    border-color: #305252;
    box-shadow: inset 0 0 0 1px #305252;
}

.calendar-day.closed-day {
    background: #f8d9d9;
    border-color: #e07a7a;
    box-shadow: inset 0 0 0 1px #e07a7a;
}

.calendar-day-number {
    align-self: flex-start;
    background: transparent;
    color: #143642;
    border: none;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.calendar-day.closed-day .calendar-day-number {
    color: #9b4949;
}

.calendar-day-events {
    display: grid;
    gap: 6px;
    align-content: start;
}

.calendar-event-chip {
    display: grid;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--event-color) 60%, #ffffff 40%);
    background: color-mix(in srgb, var(--event-color) 14%, #ffffff 86%);
    color: #183238;
    cursor: pointer;
}

.calendar-request-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #ff8d2a;
    background: #ffe2c2;
    color: #8a3d00;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.calendar-request-chip.backup {
    border-color: #b9b4d9;
    background: #f2f0fb;
    color: #453d72;
}

.calendar-request-chip.active {
    box-shadow: inset 0 0 0 2px #c14e00;
    background: #ffcf99;
}

.calendar-event-chip:focus-visible,
.calendar-day-number:focus-visible,
.color-choice-button:focus-visible {
    outline: 2px solid #305252;
    outline-offset: 2px;
}

.color-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-choice-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #d3cec2;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.color-choice-button.active {
    border-color: #305252;
    box-shadow: inset 0 0 0 2px #305252;
}

.color-choice-swatch {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: var(--color-choice);
}

.color-choice-default {
    background:
        linear-gradient(135deg, #305252 0 50%, #d3ded7 50% 100%);
}

.calendar-event-time {
    font-size: 12px;
    font-weight: 700;
}

.calendar-event-title {
    font-size: 13px;
    line-height: 1.2;
}

.calendar-closed-label {
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    background: #efb7b7;
    color: #8f4343;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.calendar-day-event-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-request-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-stack {
    gap: 8px;
}

.calendar-month-list h3 {
    margin-bottom: 0;
}

.calendar-list-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #183238;
    background: color-mix(in srgb, var(--event-color) 18%, #ffffff 82%);
    border: 1px solid color-mix(in srgb, var(--event-color) 58%, #ffffff 42%);
}

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

.events-single-column {
    grid-template-columns: 1fr;
}

.compact-checks {
    gap: 8px;
}

#customer-birthday-only.hidden {
    display: none;
}

.customer-step-title {
    font-size: 20px;
}

.customer-picked-date {
    font-size: 20px;
    font-weight: 600;
    color: #143642;
}

.customer-step-label {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #4f5c60;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.customer-summary-box {
    border: 1px solid #ddd6c8;
    border-radius: 12px;
    background: #fffdf8;
    padding: 14px;
}

.customer-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #eee8dc;
}

.customer-summary-row:last-child {
    border-bottom: none;
}

.weekday-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.event-mode-section {
    padding: 14px;
    border: 1px solid #ece7dc;
    border-radius: 14px;
    background: #fffdf8;
}

.inline-choice-row {
    flex-wrap: wrap;
}

.choice-tab,
.weekday-tab,
.duration-tab,
.staff-count-tab,
.event-mode-tab {
    min-height: 40px;
}

.weekday-check {
    min-width: 72px;
}

.weekday-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekday-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-choice .setting-tab {
    min-width: 58px;
}

.weekday-choice input:checked + .setting-tab {
    background: #305252;
    color: #fff;
    border-color: #305252;
}

.label-inline {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tile, .mini-tile {
    border: 1px solid #d7d4cb;
    background: #fffdf8;
    color: #1f2428;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    font-weight: 700;
    min-height: var(--tile-height);
}

.tile {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
}

.dashboard-tile-with-badge {
    position: relative;
}

.dashboard-notice-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f8f4e;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.selector-grid .tile,
.home-grid .tile,
.settings-grid .tile {
    min-height: var(--tile-height);
}

.setting-tile {
    font-size: 20px;
    font-weight: 700;
}

.setting-tile.active {
    background: #305252;
    color: #fff;
    border-color: #305252;
}

.mini-tile {
    font-weight: 600;
}

.nav-tile {
    font-size: 24px;
}

.nav-tile.active {
    background: #305252;
    color: #fff;
    border-color: #305252;
}

.muted-tile {
    color: #6a737d;
    background: #f5f2ea;
}

.muted-tile:empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.empty-tile {
    cursor: default;
}

.alert-error {
    background: #fff0ee;
    border-color: #d88d82;
    color: #7d281f;
}

.invoice-app {
    background:
        radial-gradient(circle at top left, rgba(15, 74, 163, 0.14), transparent 34%),
        radial-gradient(circle at right top, rgba(58, 125, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f5f9ff 0%, #e9f1ff 100%);
    min-height: 100vh;
}

.invoice-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(15, 74, 163, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.invoice-topbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoice-topbar-shell {
    padding-top: 12px;
    padding-bottom: 12px;
}

.invoice-brand {
    color: #113b7a;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.invoice-brand strong {
    font-size: 24px;
    line-height: 1.1;
}

.invoice-brand-eyebrow {
    color: #5d7094;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.invoice-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.invoice-topbar-actions form {
    margin: 0;
}

.invoice-wrap {
    padding-top: 28px;
    padding-bottom: 44px;
}

.invoice-app .card {
    background: linear-gradient(180deg, #f4f8ff 0%, #e8f0ff 100%);
    border: 1px solid #cddcff;
    box-shadow: 0 12px 28px rgba(17, 59, 122, 0.10);
}

.invoice-app .alert {
    background: #eef4ff;
    color: #113b7a;
    border: 1px solid #d8e4fb;
}

.invoice-app .alert-error {
    background: #fff0ee;
    border-color: #d88d82;
    color: #7d281f;
}

.invoice-app .button,
.invoice-app button {
    background: linear-gradient(135deg, #0f4aa3 0%, #1f67da 100%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 12px 26px rgba(17, 59, 122, 0.14);
}

.invoice-home-panel {
    max-width: 760px;
    margin: 0 auto;
}

.invoice-demo-banner {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d8e4fb;
    color: #113b7a;
}

.invoice-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    background:
        linear-gradient(135deg, #0f4aa3 0%, #1d64d6 55%, #4f94ff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 18px 44px rgba(17, 59, 122, 0.20);
}

.invoice-home-hero .muted,
.invoice-home-hero a {
    color: rgba(255, 255, 255, 0.86);
}

.invoice-home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.invoice-home-side {
    display: grid;
    gap: 12px;
}

.invoice-home-side-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

.invoice-home-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-home-status span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
}

.invoice-home-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.invoice-home-primary-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 22px;
    border-radius: 22px;
    text-decoration: none;
    background: linear-gradient(135deg, #0f4aa3 0%, #1f67da 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(17, 59, 122, 0.16);
}

.invoice-home-primary-action strong {
    font-size: clamp(30px, 7vw, 38px);
    line-height: 1.02;
}

.invoice-home-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-home-menu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #d8e4fb;
    background: #ffffff;
    text-decoration: none;
    color: #113b7a;
    box-shadow: 0 10px 22px rgba(17, 59, 122, 0.06);
}

.invoice-home-menu-item strong {
    font-size: 23px;
    line-height: 1.08;
}

.invoice-app input,
.invoice-app select,
.invoice-app textarea {
    background: #ffffff;
    border-color: #d8e4fb;
    color: #1f2428;
}

.invoice-app input:focus,
.invoice-app select:focus,
.invoice-app textarea:focus {
    outline: none;
    border-color: #7faef8;
    box-shadow: 0 0 0 3px rgba(31, 103, 218, 0.14);
}

.invoice-app input:-webkit-autofill,
.invoice-app input:-webkit-autofill:hover,
.invoice-app input:-webkit-autofill:focus,
.invoice-app textarea:-webkit-autofill,
.invoice-app textarea:-webkit-autofill:hover,
.invoice-app textarea:-webkit-autofill:focus,
.invoice-app select:-webkit-autofill,
.invoice-app select:-webkit-autofill:hover,
.invoice-app select:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f2428;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-out 0s;
    border: 1px solid #d8e4fb;
}

.invoice-app .tile,
.invoice-app .mini-tile {
    border: 1px solid #d8e4fb;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    color: #113b7a;
    box-shadow: 0 8px 18px rgba(17, 59, 122, 0.06);
}

.invoice-app .setting-tile.active,
.invoice-app .tile.active {
    background: linear-gradient(135deg, #0f4aa3 0%, #1f67da 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(17, 59, 122, 0.18);
}

.invoice-login-shell {
    max-width: 980px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.invoice-login-copy,
.invoice-login-panel,
.invoice-setting-card,
.invoice-lookup-result {
    border: 1px solid #d8e4fb;
    border-radius: 20px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(17, 59, 122, 0.08);
}

.invoice-login-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background:
        linear-gradient(135deg, #0f4aa3 0%, #1f67da 60%, #4b94ff 100%);
    color: #fff;
    border: none;
}

.invoice-login-copy .muted {
    color: rgba(255, 255, 255, 0.86);
}

.invoice-hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.invoice-login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-login-points span,
.invoice-quick-info span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
}

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

.invoice-home-grid {
    display: grid;
    grid-template-columns: var(--invoice-tile-columns, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
}

.invoice-home-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.invoice-home-tile {
    min-height: var(--invoice-tile-height, 138px);
    font-size: var(--invoice-tile-font-size, 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d8e4fb;
    color: #113b7a;
    box-shadow: 0 10px 24px rgba(17, 59, 122, 0.08);
}

.invoice-home-tile:hover {
    transform: translateY(-1px);
    border-color: #a9c6fb;
}

.invoice-home-tile-primary {
    background: linear-gradient(135deg, #0f4aa3 0%, #1f67da 100%);
    color: #fff;
    border: none;
}

.invoice-home-tile-primary .invoice-home-tile-copy {
    color: rgba(255, 255, 255, 0.88);
}

.invoice-home-tile-title {
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.05;
    font-weight: 800;
}

.invoice-home-tile-copy {
    font-size: 15px;
    line-height: 1.45;
    color: #5d7094;
    max-width: 52ch;
}

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

.invoice-setting-card h3 {
    margin: 0;
}

.invoice-app .invoice-setting-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

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

.invoice-lookup-form label {
    margin: 0;
}

.invoice-inline-submit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: end;
}

.invoice-inline-submit-row-compact {
    grid-template-columns: minmax(0, 1fr) 108px;
}

.invoice-inline-submit-field {
    margin: 0;
}

.invoice-inline-submit-row .button {
    width: 100%;
    min-height: 48px;
}

.invoice-two-up-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.invoice-two-up-row-dates,
.invoice-two-up-row-prices,
.invoice-two-up-row-quantity,
.invoice-two-up-row-service-vat {
    grid-template-columns: 1fr 1fr;
}

.invoice-two-up-row-split {
    gap: 0;
}

.invoice-two-up-row-split > label:first-child {
    padding-right: 10px;
}

.invoice-two-up-row-split > label:last-child {
    padding-left: 10px;
}

.invoice-modal-open {
    overflow: hidden;
}

.invoice-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 30, 66, 0.42);
    backdrop-filter: blur(6px);
}

.invoice-modal-backdrop-centered {
    align-items: center !important;
    justify-content: center;
    padding-top: 24px;
}

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

.invoice-modal-sheet {
    width: min(560px, 100%);
    max-height: min(82vh, 760px);
    overflow-y: auto;
    border-radius: 24px;
    border: 1px solid #d8e4fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 24px 54px rgba(17, 59, 122, 0.22);
    padding: 18px;
}

.invoice-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoice-modal-head strong {
    font-size: 22px;
    color: #113b7a;
}

.invoice-confirm-sheet {
    max-width: 460px;
}

.invoice-save-defaults-row {
    margin-top: -6px;
}

.invoice-save-defaults-row[hidden] {
    display: none !important;
}

.invoice-primary-button {
    background: linear-gradient(135deg, #0f4aa3 0%, #1f67da 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(17, 59, 122, 0.16);
}

.invoice-app .button.secondary,
.invoice-app button.secondary {
    background: #edf4ff;
    color: #0f4aa3;
    border: 1px solid #c9dcff;
    box-shadow: inset 0 0 0 1px rgba(15, 74, 163, 0.02);
}

.invoice-app .button.secondary:hover,
.invoice-app button.secondary:hover {
    background: #e3efff;
    border-color: #a9c6fb;
}

.invoice-app .button.warning,
.invoice-app button.warning {
    background: #edf4ff;
    color: #0f4aa3;
    border: 1px solid #c9dcff;
    box-shadow: inset 0 0 0 1px rgba(15, 74, 163, 0.02);
}

.invoice-app .button.warning:hover,
.invoice-app button.warning:hover {
    background: #e3efff;
    border-color: #a9c6fb;
}

.invoice-line-summary-table {
    border: 1px solid #d7ddea;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.invoice-line-summary-head,
.invoice-line-summary-values {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(74px, 0.8fr) minmax(78px, 0.8fr) minmax(78px, 0.8fr);
}

.invoice-line-summary-head {
    background: linear-gradient(135deg, #0f4aa3 0%, #1f67da 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.invoice-line-summary-values {
    color: #113b7a;
    font-size: 14px;
}

.invoice-line-summary-head span,
.invoice-line-summary-values strong {
    min-width: 0;
    padding: 10px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-line-summary-values strong {
    font-weight: 700;
}

.invoice-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.invoice-quick-info a {
    color: #0f4aa3;
    font-weight: 700;
}

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

.invoice-summary-card {
    border: 1px solid #d8e4fb;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(17, 59, 122, 0.06);
}

.invoice-summary-card strong {
    font-size: 28px;
}

.invoice-inline-check {
    align-self: end;
}

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

.simple-list-card {
    border: 1px solid #d8e4fb;
    border-radius: 16px;
    padding: 14px 16px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.invoice-recent-card-main {
    min-width: 0;
    flex: 1;
}

.invoice-recent-line-table {
    border: 1px solid #d8e4fb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.invoice-recent-line-head,
.invoice-recent-line-values {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(74px, 0.8fr) minmax(74px, 0.8fr) minmax(74px, 0.8fr);
}

.invoice-recent-line-head {
    background: #eef4ff;
    color: #5d7094;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-recent-line-values {
    color: #113b7a;
    font-size: 13px;
}

.invoice-recent-line-head span,
.invoice-recent-line-values strong {
    min-width: 0;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-document-row {
    border: 1px solid #d8e4fb;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.invoice-document-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0f4aa3;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.invoice-mini-table {
    border: 1px solid #d8e4fb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.invoice-mini-table-head,
.invoice-mini-table-values {
    display: grid;
}

.invoice-mini-table-3 .invoice-mini-table-head,
.invoice-mini-table-3 .invoice-mini-table-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invoice-mini-table-4 .invoice-mini-table-head,
.invoice-mini-table-4 .invoice-mini-table-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.invoice-mini-table-head {
    background: #eef4ff;
    color: #5d7094;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-mini-table-values {
    color: #113b7a;
    font-size: 13px;
}

.invoice-mini-table-head span,
.invoice-mini-table-values strong {
    min-width: 0;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-print-card {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.invoice-document-sheet {
    background: #ffffff;
    border: 1px solid #d8e4fb;
    border-radius: 18px;
    padding: 28px;
    color: #1f2428;
}

.invoice-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d8e4fb;
}

.invoice-sheet-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-sheet-total span {
    color: #6a737d;
    font-weight: 600;
}

.invoice-sheet-total strong {
    font-size: 28px;
}

.invoice-sheet-parties {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.invoice-sheet-party {
    border: 1px solid #d8e4fb;
    border-radius: 14px;
    padding: 16px;
    background: #f7fbff;
}

.invoice-sheet-party h3,
.invoice-sheet-notes h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.invoice-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.invoice-sheet-table th,
.invoice-sheet-table td {
    border-bottom: 1px solid #d8e4fb;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.invoice-sheet-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5d7094;
    background: #eef4ff;
}

.invoice-sheet-summary {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    font-size: 18px;
}

.invoice-sheet-notes {
    margin-top: 24px;
}

.no-print {
    display: flex;
}

body.input-mode-keyboard .tile {
    min-height: 112px;
    padding: 14px;
}

body.input-mode-keyboard .button,
body.input-mode-keyboard button {
    padding-top: 9px;
    padding-bottom: 9px;
}

@media (max-width: 900px) {
    .invoice-login-shell,
    .invoice-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .invoice-home-hero {
        grid-template-columns: 1fr;
    }

    .invoice-topbar-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .invoice-home-grid,
    .invoice-summary-grid,
    .invoice-sheet-parties {
        grid-template-columns: 1fr;
    }

    .invoice-home-tile {
        min-height: var(--invoice-tile-height-mobile, 104px);
        font-size: var(--invoice-tile-font-size-mobile, 22px);
    }

    .invoice-lookup-form {
        grid-template-columns: 1fr;
    }

    .invoice-inline-submit-row {
        grid-template-columns: minmax(0, 1fr) 88px;
        gap: 8px;
    }

    .invoice-inline-submit-row-compact {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .invoice-two-up-row-dates,
    .invoice-two-up-row-prices,
    .invoice-two-up-row-service-vat {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .invoice-two-up-row-quantity {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .invoice-two-up-row-split {
        gap: 0;
    }

    .invoice-two-up-row label,
    .invoice-inline-submit-row label {
        min-width: 0;
    }

    .invoice-two-up-row input,
    .invoice-two-up-row select,
    .invoice-inline-submit-row input,
    .invoice-inline-submit-row select {
        min-width: 0;
        padding: 9px 10px;
    }

    .invoice-modal-backdrop {
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .invoice-modal-sheet {
        width: 100%;
        max-height: 88vh;
        border-radius: 22px;
        padding: 16px;
    }

    .invoice-modal-head strong {
        font-size: 20px;
    }

    .invoice-line-summary-head {
        font-size: 11px;
    }

    .invoice-line-summary-values {
        font-size: 13px;
    }

    .invoice-line-summary-head span,
    .invoice-line-summary-values strong {
        padding: 9px 8px;
    }

    .simple-list-card,
    .invoice-document-row,
    .invoice-sheet-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-document-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

body.input-mode-keyboard .nav a {
    padding-top: 10px;
    padding-bottom: 10px;
}

body.device-profile-tablet .wrap {
    padding-left: 18px;
    padding-right: 18px;
}

body.device-profile-tablet .topbar-inner-compact,
body.device-profile-tablet .narrow-panel,
body.device-profile-tablet .list-panel,
body.device-profile-tablet .calendar-panel {
    width: 100%;
    max-width: 100%;
}

body.device-profile-tablet .card {
    border-radius: 16px;
}

body.device-profile-tablet .button,
body.device-profile-tablet button,
body.device-profile-tablet input,
body.device-profile-tablet select,
body.device-profile-tablet textarea {
    min-height: 48px;
}

body.device-profile-tablet .settings-grid,
body.device-profile-tablet .home-grid,
body.device-profile-tablet .selector-grid,
body.device-profile-tablet .tile-grid,
body.device-profile-tablet .tile-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.device-profile-tablet .setting-tile,
body.device-profile-tablet .nav-tile {
    font-size: 22px;
}

body.device-profile-tablet .staff-schedule-panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
}

.tree-card {
    padding: 16px;
    border-radius: 14px;
    background: #fffdf8;
    border: 1px solid #ece7dc;
}

.category-mini-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.category-add-tile {
    font-size: 36px;
    text-decoration: none;
    color: #305252;
}

.shopping-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shopping-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 12px;
    border-bottom: 1px solid #ece7dc;
    border-radius: 14px;
    background: #fffdf8;
}

.shopping-line.alt {
    background: #f8f2e7;
}

.shopping-main {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

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

.shopping-line-top,
.shopping-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shopping-title {
    font-size: 20px;
    line-height: 1.15;
}

.shopping-amount {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.shopping-side {
    font-size: 15px;
    color: #6a737d;
    text-align: right;
    white-space: nowrap;
}

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

.product-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-right {
    margin-left: auto;
    justify-content: flex-end;
}

.toolbar-right input {
    width: min(280px, 100%);
}

.list-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
}

.search-row {
    width: 100%;
}

.suggestion-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    margin-top: -6px;
}

.suggestion-item {
    width: 100%;
    justify-content: flex-start;
    background: #f6efe6;
    color: #5c4938;
    border: 1px solid #dfd1c0;
}

.contact-confirm-label {
    font-size: 18px;
    font-weight: 700;
    color: #305252;
}

.decision-button {
    min-width: 72px;
    font-weight: 700;
}

.product-filters {
    display: none;
    gap: 12px;
}

.product-filters.filter-open {
    display: grid;
}

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

.product-filter-button {
    background: #f7efe3;
    color: #6c5638;
    border: 1px solid #d8c1a1;
}

.product-filter-button.active,
.filter-toggle-button.active {
    background: #d6c0a6;
    color: #3e2d18;
    border: 1px solid #b39573;
}

.filter-toggle-button {
    display: inline-flex;
    background: #f7efe3;
    color: #6c5638;
    border: 1px solid #d8c1a1;
}

.product-card {
    border: 1px solid #ece7dc;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fffdf8;
}

.product-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.product-card-title-wrap {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-card-title {
    font-size: 21px;
    line-height: 1.2;
}

.product-card-stock {
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.product-card-title-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.add-mini-button {
    background: #2f8f4e;
}

.queued-add-button {
    background: #d4a514;
    color: #1f2428;
    min-width: 48px;
}

.low-stock-add-button {
    background: #d64c4c;
    color: #fff;
}

.delivery-add-button {
    background: #87b88c;
    color: #1f2428;
    min-width: 48px;
}

.icon-mini-button {
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.button-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.queued-qty,
.queued-qty-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.queued-qty-label {
    min-width: 42px;
    text-align: right;
    color: #7a5b00;
}


.product-card-more {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ece7dc;
}

.draft-title-row {
    flex-wrap: wrap;
    gap: 8px;
}

.draft-title-row .badge {
    white-space: nowrap;
}

.purchase-order-details {
    background: #f7f4ee;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e6ded0;
}

.order-item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-more-actions {
    display: flex;
    justify-content: flex-end;
}

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

.quick-inline-form {
    position: relative;
    display: flex;
    align-items: center;
}

.quick-inline-panel {
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #d7d4cb;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(20, 54, 66, 0.12);
    white-space: nowrap;
}

.quick-inline-form.active .quick-inline-panel {
    display: flex;
}

.quick-inline-quantity {
    width: 86px;
    padding: 8px 10px;
    text-align: center;
}

.quick-inline-unit {
    font-size: 14px;
    font-weight: 700;
    color: #254046;
}

.quick-inline-message {
    font-size: 14px;
    font-weight: 700;
    color: #2f8f4e;
}

.quick-inline-form .icon-mini-button[data-active="true"] {
    font-size: 16px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 54, 66, 0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

.quick-add-card {
    width: min(420px, 100%);
}

.modal-backdrop > .card {
    width: min(var(--panel-max-width), calc(100vw - 40px));
    max-width: min(var(--panel-max-width), calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-unit {
    display: flex;
    align-items: end;
    padding-bottom: 10px;
}

.input-prefix-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.input-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d7d4cb;
    border-radius: 10px;
    background: #fffdf8;
    color: #254046;
    font-weight: 600;
}

.add-panel {
    align-self: start;
}

.hidden {
    display: none !important;
}

.category-pill {
    min-width: 220px;
    justify-content: center;
}

.manual-form .category-pill {
    width: fit-content;
    min-width: 220px;
}

.manual-form .hidden {
    display: none !important;
}

.nip-inline-form {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 10px;
    align-items: stretch;
}

.square-icon-button {
    width: 56px;
    min-width: 56px;
    padding: 0;
}

.link-button {
    background: transparent;
    color: #305252;
    padding: 0;
}

.link-button.danger {
    color: #9c2f2f;
}

.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    width: 58px;
    height: 58px;
    min-width: 58px;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(20, 54, 66, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-fab-icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    transform: translateY(3px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: transparent;
}

.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 1201;
    width: min(420px, calc(100vw - 24px));
    height: min(78vh, 720px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(20, 54, 66, 0.24);
    border: 1px solid #dfe8e8;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.chat-settings {
    padding: 10px 12px;
    border: 1px solid #e7e1d3;
    border-radius: 12px;
    background: #f8f5ee;
}

.chat-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #ece7dc;
}

.chat-panel-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
    min-height: 0;
    overflow-y: auto;
}

.chat-panel-actions {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 144px);
    gap: 10px;
    align-items: stretch;
}

.chat-messages {
    flex: 1 1 180px;
    min-height: 140px;
    height: 180px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #d7d4cb;
    border-radius: 12px;
    background: #fffdf8;
    display: grid;
    gap: 10px;
}

.chat-message {
    padding: 10px 12px;
    border-radius: 12px;
    background: #edf2f2;
}

.chat-message-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 13px;
}

.chat-message-body {
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.chat-admin-page {
    background: linear-gradient(180deg, #eef3f1 0%, #f7f4ee 100%);
}

.chat-admin-shell {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.chat-admin-card {
    width: min(860px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(20, 54, 66, 0.16);
    padding: 18px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    min-height: calc(100vh - 40px);
    overflow: hidden;
}

.chat-admin-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.chat-admin-header h1 {
    margin: 0 0 4px;
    font-size: 28px;
    color: #143642;
}

.chat-admin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 280px);
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid #e7e1d3;
    border-radius: 14px;
    background: #f8f5ee;
}

.chat-admin-messages {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #d7d4cb;
    border-radius: 16px;
    background: #fffdf8;
    display: grid;
    gap: 12px;
}

.chat-admin-message {
    padding: 12px 14px;
    border-radius: 14px;
    background: #edf2f2;
}

.chat-admin-message-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.chat-admin-message-body {
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-admin-compose {
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.chat-panel-body > label,
.chat-admin-compose > label {
    display: grid;
    gap: 8px;
}

#test-chat-body,
#chat-admin-body {
    width: 100%;
    min-height: 88px;
    box-sizing: border-box;
    resize: vertical;
}

.chat-admin-actions {
    display: grid;
    grid-template-columns: 1fr minmax(132px, 148px);
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .card {
        padding: 15px;
    }

    .narrow-panel {
        width: 100%;
    }

    .list-panel {
        width: 100%;
    }

    .calendar-panel {
        width: 100%;
        max-width: 100%;
    }

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

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

    .group-block.strong {
        padding: 9px 10px;
    }

    .calendar-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-month-nav {
        justify-content: center;
    }

    .calendar-page-title {
        min-width: 0;
        font-size: 21px;
    }

    .customer-calendar-mobile-list {
        display: block;
        margin-top: 10px;
    }

    .customer-calendar-page .calendar-weekdays,
    .customer-calendar-page .calendar-grid {
        display: none;
    }

    .customer-calendar-page .calendar-header-row {
        gap: 10px;
    }

    .customer-calendar-page .calendar-month-nav {
        justify-content: space-between;
    }

    .customer-calendar-page .calendar-page-title {
        font-size: 20px;
    }

    .customer-calendar-mobile-day {
        grid-template-columns: 84px 1fr;
        gap: 8px;
        padding: 8px 10px;
    }

    .customer-calendar-mobile-events {
        gap: 4px;
    }

    .customer-calendar-mobile-weekday {
        font-size: 12px;
    }

    .customer-calendar-mobile-date {
        font-size: 24px;
    }

    .customer-calendar-mobile-events .calendar-event-chip {
        padding: 5px 7px;
        border-radius: 9px;
        width: 100%;
    }

    .customer-calendar-mobile-events .calendar-event-time,
    .customer-calendar-mobile-events .calendar-event-title,
    .customer-calendar-mobile-events .calendar-closed-label {
        font-size: 12px;
    }

    .topbar-inner {
        justify-content: center;
    }

    .topbar-inner-compact {
        width: 100%;
    }

    .topbar-cluster {
        width: 100%;
        gap: 0;
    }

    .topbar-access {
        right: 12px;
        min-width: auto;
    }

    .topbar-access-active {
        min-width: auto;
    }

    .topbar-logo {
        height: 100%;
        max-height: none;
    }

    .section-page-title {
        font-size: 22px;
    }

    .list-toolbar,
    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-right {
        margin-left: 0;
        justify-content: flex-start;
    }

    .toolbar-right input {
        width: 100%;
    }

    .list-search {
        max-width: none;
        margin-left: 0;
    }

    .product-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .quick-inline-panel {
        right: 56px;
        top: auto;
        bottom: calc(100% + 8px);
        transform: none;
    }

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

    .chat-fab {
        right: 12px;
        bottom: 12px;
    }

    .chat-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 70px;
        height: 76vh;
    }

    .chat-panel-body {
        gap: 10px;
        padding: 12px;
    }

    .chat-messages {
        flex-basis: 132px;
        min-height: 132px;
        height: 132px;
    }

    .chat-panel-actions,
    .chat-admin-actions {
        grid-template-columns: 1fr;
    }

    .chat-admin-shell {
        padding: 10px;
    }

    .chat-admin-card {
        border-radius: 16px;
        padding: 14px;
    }

    .chat-admin-header {
        flex-direction: column;
    }

    .chat-admin-toolbar {
        grid-template-columns: 1fr;
    }

    .chat-admin-messages {
        min-height: 0;
    }

    .product-card-title {
        font-size: 19px;
    }

    .product-card-stock {
        font-size: 17px;
    }

    .site-home-topbar {
        align-items: flex-start;
        padding: 14px 0;
    }

    .site-home-hero {
        padding-top: 44px;
    }

    .site-home-hero-grid,
    .site-home-project-grid,
    .site-home-process-grid,
    .site-home-audience-grid,
    .site-home-benefit-grid,
    .site-home-contact-card {
        grid-template-columns: 1fr;
    }

    .site-home-nav {
        justify-content: flex-start;
    }

    .site-home-hero-copy h1 {
        max-width: 100%;
    }

    .site-home-summary-card,
    .site-home-process-card,
    .site-home-audience-card,
    .site-home-project-card,
    .site-home-contact-card {
        border-radius: 16px;
    }

    .site-home-picker {
        align-items: flex-start;
        padding: 20px 0;
    }

    .site-home-picker-shell {
        padding: 20px;
        border-radius: 18px;
    }

    .site-home-app-tile {
        padding: 18px;
        border-radius: 16px;
    }
}

@media (min-width: 901px) {
}

@media print {
    .topbar,
    .invoice-topbar,
    .chat-fab,
    .chat-panel,
    .chat-panel-backdrop,
    .no-print {
        display: none !important;
    }

    body,
    main.wrap {
        background: #fff;
        padding: 0;
        margin: 0;
    }

    .card,
    .invoice-document-sheet {
        box-shadow: none;
        border: none;
    }

    .invoice-document-sheet {
        padding: 0;
    }
}
