/*
 * Reservify · capa de producto sobre Wemvy Design System v7.
 * tokens.css y components.css se conservan como copias exactas del DS.
 */

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    -webkit-font-smoothing: antialiased;
    background: var(--w-slate-50);
    color: var(--w-ink);
    font-family: var(--w-font-sans);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    min-width: 320px;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

::selection {
    background: var(--w-cyan-100);
    color: var(--w-ink);
}

.rv-skip-link {
    background: var(--w-ink);
    border-radius: 0 0 var(--w-radius-md) 0;
    color: var(--w-white);
    font-size: 12px;
    font-weight: 800;
    left: 0;
    padding: 10px 14px;
    position: fixed;
    top: 0;
    transform: translateY(-120%);
    transition: transform var(--w-fast);
    z-index: 200;
}

.rv-skip-link:focus {
    transform: translateY(0);
}

.rv-brand {
    align-items: center;
    display: inline-flex;
    max-width: 100%;
    text-decoration: none;
}

.rv-logo-lockup {
    background: transparent;
    display: inline-block;
    flex: 0 0 auto;
    height: 38px;
    overflow: visible;
    width: 190px;
}

.rv-logo-lockup img {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.rv-logo-lockup--symbol {
    height: 42px;
    width: 42px;
}

.rv-logo-lockup--symbol img {
    height: 100%;
    width: 100%;
}

.rv-logo-lockup--compact {
    height: 30px;
    width: 150px;
}

.rv-logo-lockup--hero {
    height: 48px;
    width: 240px;
}

.rv-logo-lockup--product {
    height: 21px;
    width: 105px;
}

.rv-page-kicker {
    align-items: center;
    color: var(--w-cyan-800);
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    gap: 7px;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.rv-page-kicker::before {
    background: var(--w-cyan-500);
    border-radius: 99px;
    content: "";
    height: 2px;
    width: 18px;
}

.rv-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rv-page > .rv-stack:where(:has(> .w-alert:first-child)) {
    margin-top: 18px;
}

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

/* Auth */

.rv-auth-body {
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 195, 212, .11), transparent 26%),
        radial-gradient(circle at 88% 82%, rgba(253, 86, 196, .09), transparent 25%),
        var(--w-slate-50);
}

.rv-login-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    padding: 20px;
}

.rv-login-frame {
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-2xl);
    box-shadow: var(--w-shadow-md);
    max-width: 960px;
    min-height: min(680px, calc(100dvh - 40px));
    overflow: hidden;
    width: 100%;
}

.rv-login-brand {
    margin-bottom: 42px;
}

.rv-login-copy h1 {
    font-family: var(--w-font-display);
    font-size: 30px;
    font-weight: 780;
    letter-spacing: -.05em;
    line-height: 1.08;
    margin: 15px 0 7px;
}

.rv-login-copy p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.rv-login-alert {
    margin-top: 20px;
}

.rv-login-alert > .w-icon {
    flex: 0 0 auto;
}

.rv-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.rv-password-control .w-input {
    padding-right: 48px;
}

.rv-password-toggle {
    color: var(--w-slate-500);
    position: absolute;
    right: 5px;
    top: 5px;
}

.rv-password-requirements {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: -4px 0 0;
    padding: 0;
}

.rv-password-requirements li {
    align-items: flex-start;
    color: var(--w-slate-500);
    display: flex;
    font-size: 12px;
    gap: 8px;
    line-height: 1.35;
}

.rv-password-req-mark {
    align-items: center;
    background: var(--w-slate-200);
    border-radius: 999px;
    color: var(--w-slate-500);
    display: inline-flex;
    flex: 0 0 auto;
    height: 14px;
    justify-content: center;
    margin-top: 1px;
    width: 14px;
}

.rv-password-req-mark::before {
    content: "";
    display: block;
    height: 6px;
    width: 6px;
    border-radius: 999px;
    background: currentColor;
}

.rv-password-requirements li[data-ok="true"] {
    color: var(--w-success);
}

.rv-password-requirements li[data-ok="true"] .rv-password-req-mark {
    background: var(--w-success-soft);
    color: var(--w-success);
}

.rv-password-requirements li[data-ok="true"] .rv-password-req-mark::before {
    background: transparent;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    border-radius: 0;
    height: 5px;
    margin-top: -1px;
    transform: rotate(-45deg);
    width: 8px;
}

.rv-password-symbols {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
}

.rv-login-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}

.rv-login-meta {
    color: var(--w-slate-500);
    font-size: 11px;
    margin-top: 28px;
    text-align: center;
}

.rv-login-meta span + span::before {
    color: var(--w-slate-300);
    content: "·";
    margin: 0 7px;
}

.rv-login-art {
    background:
        linear-gradient(160deg, rgba(0, 195, 212, .10), transparent 45%),
        var(--w-cyan-50);
}

.rv-login-art::before,
.rv-login-art::after {
    opacity: .72;
}

.rv-login-quote {
    backdrop-filter: blur(9px);
}

.rv-login-quote .w-avatar {
    display: grid;
}

.rv-demo-badge {
    margin-left: 8px;
    vertical-align: middle;
}

.rv-login-quote blockquote {
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.35;
    margin: 18px 0 8px;
}

.rv-login-quote p {
    font-size: 12px;
    margin: 0;
}

.rv-auth-flow-frame {
    display: block;
    max-width: 560px;
    min-height: 0;
}

.rv-auth-flow-panel {
    min-height: 600px;
    padding: 48px 54px;
}

.rv-auth-flow-panel > div {
    max-width: 420px;
}

.rv-auth-flow-brand {
    margin-bottom: 38px;
}

.rv-auth-note {
    color: var(--w-slate-500);
    font-size: 11px;
    line-height: 1.55;
    margin: 22px auto 0;
    max-width: 340px;
    text-align: center;
}

.rv-auth-account {
    align-items: center;
    background: var(--w-slate-50);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    color: var(--w-slate-500);
    display: grid;
    font-size: 11px;
    gap: 1px 10px;
    grid-template-columns: 26px minmax(0, 1fr);
    margin: 20px 0 0;
    padding: 11px 13px;
}

.rv-auth-account > [data-icon] {
    color: var(--w-cyan-700);
    grid-row: 1 / 3;
}

.rv-auth-account .w-icon {
    height: 18px;
    width: 18px;
}

.rv-auth-account strong {
    color: var(--w-ink);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.rv-auth-inline-emphasis {
    color: var(--w-ink);
}

.rv-otp-input {
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 24px;
    font-weight: 780;
    height: 54px;
    letter-spacing: .34em;
    padding-left: calc(14px + .34em);
    text-align: center;
}

.rv-otp-input::placeholder {
    color: var(--w-slate-300);
}

.rv-auth-secondary-actions {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.rv-auth-secondary-actions form {
    margin: 0;
}

.rv-auth-terms-wrap {
    padding-block: 32px;
}

.rv-auth-terms-frame {
    max-width: 740px;
}

.rv-auth-terms-panel {
    min-height: 0;
    padding: 48px 58px;
}

.rv-auth-terms-panel > div {
    max-width: 620px;
}

.rv-auth-version {
    background: var(--w-cyan-50);
    border: 1px solid var(--w-cyan-200);
    border-radius: var(--w-radius-round);
    color: var(--w-cyan-800);
    display: inline-flex;
    font-size: 10px;
    font-weight: 850;
    margin: 18px 0 0;
    min-height: 27px;
    padding: 7px 11px;
}

.rv-auth-terms-copy {
    background: var(--w-slate-50);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-xl);
    color: var(--w-slate-700);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 20px;
    padding: 20px 22px;
}

.rv-auth-terms-copy p {
    margin: 0;
}

.rv-auth-terms-copy p + p {
    border-top: 1px solid var(--w-slate-150);
    margin-top: 14px;
    padding-top: 14px;
}

.rv-auth-terms-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

.rv-legal-footer {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: -52px;
    padding: 0 20px 20px;
    position: relative;
}

.rv-legal-page + .rv-legal-footer {
    border-top: 1px solid rgba(16, 40, 43, .08);
    margin: 12px clamp(16px, 3vw, 44px) 0;
    padding: 18px 20px 28px;
}

.rv-legal-footer a {
    align-items: center;
    color: var(--w-slate-600);
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    gap: 8px;
    min-height: 24px;
    text-decoration: none;
}

.rv-legal-page + .rv-legal-footer a::before {
    background: var(--w-success);
    border: 3px solid rgba(53, 199, 150, .15);
    border-radius: 50%;
    box-sizing: content-box;
    content: "";
    height: 6px;
    width: 6px;
}

.rv-legal-footer a:hover,
.rv-legal-footer a:focus-visible {
    color: var(--w-cyan-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rv-auth-reject-form {
    margin-top: 8px;
    text-align: center;
}

/* Error pages */

.rv-error-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    padding: 22px;
}

.rv-error-card {
    background:
        radial-gradient(circle at 92% 8%, rgba(253, 86, 196, .10), transparent 28%),
        linear-gradient(145deg, var(--w-white), var(--w-cyan-25));
    max-width: 630px;
    overflow: hidden;
    padding: clamp(30px, 6vw, 58px);
    position: relative;
    width: 100%;
}

.rv-error-card .rv-brand {
    margin-bottom: 58px;
}

.rv-error-code {
    color: var(--w-cyan-100);
    font-family: var(--w-font-display);
    font-size: clamp(100px, 23vw, 180px);
    font-weight: 850;
    letter-spacing: -.09em;
    line-height: .7;
    position: absolute;
    right: 20px;
    top: 40px;
    user-select: none;
}

.rv-error-card .rv-page-kicker,
.rv-error-card h1,
.rv-error-card > p,
.rv-error-actions {
    position: relative;
    z-index: 1;
}

.rv-error-card h1 {
    font-family: var(--w-font-display);
    font-size: clamp(29px, 6vw, 44px);
    letter-spacing: -.055em;
    line-height: 1.02;
    margin: 16px 0 12px;
    max-width: 500px;
}

.rv-error-card > p {
    color: var(--w-slate-600);
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}

.rv-error-reference {
    font-size: 11px;
    margin-top: 14px !important;
}

.rv-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

/* Panel shell */

.rv-panel-body {
    min-height: 100dvh;
}

.rv-topbar {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 rgba(16, 43, 49, .035);
    gap: 12px;
    padding-inline: clamp(16px, 2.2vw, 30px);
    position: sticky;
    top: 0;
    z-index: 60;
}

.rv-topbar .w-topbar-brand {
    flex: 0 0 auto;
}

.rv-desktop-nav {
    justify-content: center;
}

.rv-desktop-nav a {
    font-size: 12px;
    font-weight: 680;
    min-height: 42px;
}

.rv-desktop-nav a.active {
    box-shadow: inset 0 0 0 1px rgba(0, 195, 212, .05);
    font-weight: 800;
}

.rv-topbar-spacer,
.rv-nav-toggle {
    display: none;
}

.rv-restaurant-active {
    flex: 0 1 auto;
    max-width: min(310px, 28vw);
}

.rv-restaurant-active > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-restaurant-switcher {
    align-items: center;
    background: var(--w-cyan-25);
    border: 1px solid var(--w-cyan-200);
    border-radius: 999px;
    display: flex;
    gap: 5px;
    min-height: 34px;
    padding: 3px 4px 3px 9px;
    position: relative;
    z-index: 40;
}

.rv-restaurant-switcher > span {
    color: var(--w-cyan-700);
    flex: 0 0 auto;
}

.rv-restaurant-switcher select {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--w-cyan-900);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    max-width: 170px;
    outline: 0;
    padding: 2px;
}

.rv-restaurant-switcher .w-selectbox {
    flex: 1 1 auto;
    max-width: 260px;
    min-width: 0;
}

.rv-restaurant-switcher .w-selectbox-trigger {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--w-cyan-900);
    font-size: 11px;
    font-weight: 800;
    gap: 4px;
    height: 26px;
    min-width: 142px;
    padding: 0 4px 0 2px;
    width: 100%;
}

.rv-restaurant-switcher .w-selectbox-trigger:hover,
.rv-restaurant-switcher .w-selectbox-trigger:focus-visible,
.rv-restaurant-switcher .w-selectbox.open .w-selectbox-trigger {
    border: 0;
    box-shadow: none;
}

.rv-restaurant-switcher .w-selectbox-trigger [data-select-value] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-restaurant-switcher .w-selectbox-trigger .w-icon {
    color: var(--w-cyan-700);
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.rv-restaurant-switcher .w-selectbox-options {
    left: auto;
    min-width: 220px;
    right: 0;
    z-index: 80;
}

.rv-restaurant-switcher.rv-selectbox-enhanced button[type="submit"][hidden],
.rv-mobile-restaurant-switcher.rv-selectbox-enhanced button[type="submit"][hidden] {
    display: none;
}

.rv-restaurant-switcher > button[type="submit"] {
    align-items: center;
    background: var(--w-white);
    border: 0;
    border-radius: 50%;
    color: var(--w-cyan-700);
    cursor: pointer;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    padding: 0;
    width: 26px;
}

.rv-restaurant-switcher > button[type="submit"]:hover {
    background: var(--w-cyan-100);
}

.w-selectbox-option.is-disabled,
.w-selectbox.is-disabled .w-selectbox-trigger {
    color: var(--w-slate-400);
    cursor: not-allowed;
}

.w-selectbox-option.is-disabled:hover {
    background: transparent;
    color: var(--w-slate-400);
}

.w-field > .w-selectbox {
    width: 100%;
}

.rv-popover-anchor {
    position: relative;
}

.rv-popover {
    animation: rv-popover-in var(--w-fast) var(--w-ease);
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    box-shadow: var(--w-shadow-md);
    min-width: 230px;
    padding: 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    z-index: 70;
}

.rv-popover::before {
    background: var(--w-white);
    border-left: 1px solid var(--w-slate-150);
    border-top: 1px solid var(--w-slate-150);
    content: "";
    height: 9px;
    position: absolute;
    right: 16px;
    top: -5px;
    transform: rotate(45deg);
    width: 9px;
}

.rv-popover > strong,
.rv-popover > span {
    display: block;
}

.rv-popover > strong {
    font-size: 13px;
}

.rv-popover > span {
    color: var(--w-slate-500);
    font-size: 11px;
    margin-top: 2px;
}

.rv-notifications {
    padding: 15px;
}

.rv-user-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--w-radius-round);
    color: var(--w-ink);
    cursor: pointer;
    display: flex;
    gap: 7px;
    min-height: 42px;
    padding: 4px 7px 4px 4px;
}

.rv-user-trigger:hover {
    background: var(--w-slate-100);
}

.rv-user-trigger-name {
    font-size: 11px;
    font-weight: 750;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-user-trigger > .w-icon {
    color: var(--w-slate-400);
    height: 14px;
    transform: rotate(90deg);
    transition: transform var(--w-fast);
    width: 14px;
}

.rv-user-trigger[aria-expanded="true"] > .w-icon {
    transform: rotate(-90deg);
}

.rv-user-menu {
    padding: 8px;
}

.rv-user-menu-copy {
    border-bottom: 1px solid var(--w-slate-150);
    padding: 8px 9px 11px;
}

.rv-user-menu-copy strong,
.rv-user-menu-copy span {
    display: block;
}

.rv-user-menu-copy strong {
    font-size: 13px;
}

.rv-user-menu-copy span {
    color: var(--w-slate-500);
    font-size: 10px;
    margin-top: 2px;
}

.rv-user-menu > a {
    align-items: center;
    border-radius: 10px;
    color: var(--w-slate-700);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    margin-top: 5px;
    min-height: 38px;
    padding: 8px 9px;
    text-decoration: none;
}

.rv-user-menu > a:hover {
    background: var(--w-slate-100);
    color: var(--w-ink);
}

.rv-inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rv-inline-actions form {
    margin: 0;
}

.rv-check-list {
    display: grid;
    gap: 8px;
    margin-top: 3px;
}

.rv-check-option {
    align-items: center;
    background: var(--w-slate-50);
    border: 1px solid var(--w-slate-200);
    border-radius: 10px;
    color: var(--w-slate-700);
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 650;
    gap: 9px;
    min-height: 42px;
    padding: 9px 11px;
}

.rv-check-option:has(input:checked) {
    background: var(--w-cyan-25);
    border-color: var(--w-cyan-300);
    color: var(--w-ink);
}

.rv-check-option input {
    accent-color: var(--w-cyan-600);
    height: 17px;
    margin: 0;
    width: 17px;
}

.rv-form-card {
    max-width: 900px;
}

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

.rv-form-span {
    grid-column: 1 / -1;
}

/* Restaurant configuration */

.rv-restaurants-page {
    max-width: 1320px;
}

.rv-restaurant-summary .w-card-body,
.rv-restaurant-detail-head .w-card-body {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.rv-restaurant-summary .w-card-body > div:first-child {
    align-items: center;
    display: flex;
    gap: 12px;
}

.rv-restaurant-summary strong,
.rv-restaurant-summary small,
.rv-restaurant-identity strong,
.rv-restaurant-identity small,
.rv-restaurant-contact strong,
.rv-restaurant-contact small {
    display: block;
}

.rv-restaurant-summary strong,
.rv-restaurant-identity strong,
.rv-restaurant-contact strong {
    color: var(--w-ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.rv-restaurant-summary small,
.rv-restaurant-identity small,
.rv-restaurant-contact small {
    color: var(--w-slate-500);
    font-size: 10px;
    line-height: 1.45;
    margin-top: 3px;
}

.rv-restaurant-summary-icon,
.rv-restaurant-monogram {
    align-items: center;
    background: linear-gradient(145deg, var(--w-cyan-50), var(--w-pink-50));
    border: 1px solid var(--w-cyan-100);
    border-radius: 13px;
    color: var(--w-cyan-800);
    display: flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.rv-restaurant-summary-icon .w-icon,
.rv-restaurant-monogram .w-icon {
    height: 18px;
    width: 18px;
}

.rv-restaurant-table .w-table {
    min-width: 920px;
}

.rv-restaurant-table .w-table td {
    vertical-align: middle;
}

.rv-restaurant-table .w-table tr.is-inactive {
    background: var(--w-slate-50);
}

.rv-restaurant-identity {
    align-items: center;
    display: flex;
    gap: 11px;
    min-width: 0;
}

.rv-restaurant-identity > span:last-child,
.rv-restaurant-contact {
    min-width: 0;
}

.rv-restaurant-contact {
    max-width: 235px;
}

.rv-restaurant-contact strong,
.rv-restaurant-contact small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-restaurant-state {
    position: relative;
}

.rv-restaurant-state > summary {
    cursor: pointer;
    list-style: none;
}

.rv-restaurant-state > summary::-webkit-details-marker {
    display: none;
}

.rv-restaurant-state > summary:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-restaurant-state[open] > summary {
    background: var(--w-slate-100);
    border-color: var(--w-slate-300);
}

.rv-restaurant-state > form {
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    box-shadow: var(--w-shadow-md);
    padding: 15px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(300px, calc(100vw - 36px));
    z-index: 25;
}

.rv-restaurant-state > form p {
    color: var(--w-slate-600);
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.rv-restaurant-form-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
}

.rv-restaurant-form-aside {
    position: sticky;
    top: 90px;
}

.rv-restaurant-create-summary ul {
    color: var(--w-slate-600);
    display: grid;
    font-size: 12px;
    gap: 9px;
    line-height: 1.5;
    margin: 0;
    padding-left: 18px;
}

.rv-plan-usage {
    align-items: baseline;
    display: flex;
    gap: 8px;
    margin-bottom: 13px;
}

.rv-plan-usage strong {
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 30px;
    letter-spacing: -.04em;
    line-height: 1;
}

.rv-plan-usage span {
    color: var(--w-slate-500);
    font-size: 11px;
    line-height: 1.35;
}

.rv-number-unit {
    align-items: center;
    display: flex;
    position: relative;
}

.rv-number-unit .w-input {
    padding-right: 92px;
}

.rv-number-unit > span {
    color: var(--w-slate-500);
    font-size: 10px;
    font-weight: 750;
    max-width: 82px;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-restaurant-status-card {
    max-width: 968px;
}

.rv-restaurant-status-card .w-card-header {
    align-items: center;
}

.rv-restaurant-status-card .w-card-footer {
    gap: 18px;
}

/* Dining rooms and tables */

.rv-rooms-page {
    max-width: 1320px;
}

.rv-form-alert {
    margin-bottom: 18px;
}

.rv-room-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rv-room-metric {
    align-items: center;
    display: flex;
    gap: 13px;
    min-height: 86px;
    padding: 17px 18px;
}

.rv-room-metric-icon {
    align-items: center;
    background: linear-gradient(145deg, var(--w-cyan-50), var(--w-pink-50));
    border: 1px solid var(--w-cyan-100);
    border-radius: 14px;
    color: var(--w-cyan-800);
    display: flex;
    flex: 0 0 43px;
    height: 43px;
    justify-content: center;
    width: 43px;
}

.rv-room-metric strong,
.rv-room-metric small {
    display: block;
}

.rv-room-metric strong {
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 25px;
    letter-spacing: -.04em;
    line-height: 1;
}

.rv-room-metric small {
    color: var(--w-slate-700);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 5px;
}

.rv-room-tabs {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 1px 4px;
    scrollbar-width: thin;
}

.rv-room-tabs a {
    align-items: center;
    background: var(--w-white);
    border: 1px solid var(--w-slate-200);
    border-radius: 999px;
    color: var(--w-slate-700);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 750;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    text-decoration: none;
}

.rv-room-tabs a:hover {
    background: var(--w-cyan-25);
    border-color: var(--w-cyan-200);
    color: var(--w-ink);
}

.rv-room-tabs a:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-room-tabs .w-dot {
    background: var(--w-slate-300);
}

.rv-room-tabs .w-dot.is-active {
    background: var(--w-success);
}

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

.rv-room-card {
    scroll-margin-top: calc(var(--w-header) + 18px);
}

.rv-room-card.is-inactive {
    background: var(--w-slate-50);
}

.rv-room-card-head,
.rv-room-table-head {
    align-items: center;
}

.rv-room-order {
    color: var(--w-slate-400);
    display: block;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.rv-room-card-body {
    display: grid;
    gap: 15px;
}

.rv-room-preview {
    aspect-ratio: var(--rv-room-ratio, 4 / 3);
    background-color: #f8fbfa;
    background-image:
        linear-gradient(var(--w-slate-150) 1px, transparent 1px),
        linear-gradient(90deg, var(--w-slate-150) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--w-slate-200);
    border-radius: var(--w-radius-lg);
    max-height: 235px;
    min-height: 160px;
    overflow: hidden;
    position: relative;
}

.rv-room-preview.is-inactive {
    filter: grayscale(.25);
    opacity: .68;
}

.rv-room-preview-table {
    align-items: center;
    background: var(--w-white);
    border: 2px solid var(--w-cyan-500);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(16, 43, 49, .11);
    color: var(--w-ink);
    display: flex;
    font-size: 7px;
    font-weight: 850;
    justify-content: center;
    line-height: 1;
    min-height: 21px;
    min-width: 21px;
    overflow: hidden;
    padding: 2px;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-room-preview-table.is-redonda {
    border-radius: 50%;
}

.rv-room-preview-table.is-inactive {
    background: var(--w-slate-100);
    border-color: var(--w-slate-300);
    color: var(--w-slate-500);
}

.rv-room-preview-empty {
    color: var(--w-slate-400);
    font-size: 11px;
    font-weight: 750;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.rv-room-preview-detail {
    max-height: 280px;
    min-height: 200px;
}

.rv-room-facts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.rv-room-facts > div {
    background: var(--w-slate-50);
    border: 1px solid var(--w-slate-150);
    border-radius: 10px;
    padding: 10px 11px;
}

.rv-room-facts dt {
    color: var(--w-slate-400);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rv-room-facts dd {
    color: var(--w-ink);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    margin: 4px 0 0;
}

.rv-room-facts-stacked {
    grid-template-columns: 1fr;
}

.rv-room-card-actions {
    align-items: center;
    gap: 9px;
    justify-content: flex-start;
}

.rv-resource-form-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
}

.rv-resource-form-layout > * {
    min-width: 0;
}

.rv-resource-form-aside {
    position: sticky;
    top: 90px;
}

.rv-room-guidance {
    color: var(--w-slate-600);
    display: grid;
    font-size: 12px;
    gap: 10px;
    line-height: 1.5;
    margin: 0;
    padding-left: 18px;
}

.rv-room-field-note {
    align-items: center;
    align-self: end;
    background: var(--w-slate-50);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-md);
    color: var(--w-slate-600);
    display: flex;
    font-size: 11px;
    gap: 9px;
    min-height: 44px;
    padding: 9px 11px;
}

.rv-room-field-note .w-icon {
    color: var(--w-cyan-700);
    flex: 0 0 auto;
}

.rv-field-intro {
    color: var(--w-slate-500);
    font-size: 11px;
    line-height: 1.45;
    margin: 4px 0 0;
}

.rv-resource-state {
    position: relative;
}

.rv-resource-state > summary {
    cursor: pointer;
    list-style: none;
}

.rv-resource-state > summary::-webkit-details-marker {
    display: none;
}

.rv-resource-state > summary:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-resource-state[open] > summary {
    background: var(--w-slate-100);
    border-color: var(--w-slate-300);
}

.rv-resource-state > form {
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    box-shadow: var(--w-shadow-md);
    padding: 15px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(300px, calc(100vw - 36px));
    z-index: 25;
}

.rv-resource-state > form p {
    color: var(--w-slate-600);
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.rv-resource-state-block,
.rv-resource-state-block > summary {
    width: 100%;
}

.rv-resource-state-block > summary {
    justify-content: center;
}

.rv-resource-state-block > form {
    left: 0;
    right: 0;
    width: 100%;
}

.rv-room-table .w-table {
    min-width: 820px;
}

.rv-room-table .w-table td {
    vertical-align: middle;
}

.rv-room-table .w-table tr.is-inactive {
    background: var(--w-slate-50);
}

.rv-table-identity {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.rv-table-identity > span:last-child {
    min-width: 0;
}

.rv-table-identity strong,
.rv-table-identity small {
    display: block;
}

.rv-table-identity strong {
    color: var(--w-ink);
    font-size: 12px;
}

.rv-table-identity small {
    color: var(--w-slate-500);
    font-size: 10px;
    line-height: 1.4;
    margin-top: 3px;
}

.rv-table-shape,
.rv-table-detail-shape {
    background: linear-gradient(145deg, var(--w-cyan-50), var(--w-white));
    border: 2px solid var(--w-cyan-500);
    border-radius: 5px;
    display: inline-block;
    flex: 0 0 auto;
    height: 28px;
    transform: rotate(-4deg);
    width: 28px;
}

.rv-table-shape.is-redonda,
.rv-table-detail-shape.is-redonda {
    border-radius: 50%;
}

.rv-table-shape.is-rectangular,
.rv-table-detail-shape.is-rectangular {
    width: 40px;
}

.rv-table-detail-card .w-card-body {
    align-items: center;
    display: flex;
    gap: 14px;
}

.rv-table-detail-shape {
    height: 50px;
    width: 50px;
}

.rv-table-detail-shape.is-rectangular {
    width: 70px;
}

.rv-table-detail-card strong,
.rv-table-detail-card small {
    display: block;
}

.rv-table-detail-card strong {
    color: var(--w-ink);
    font-size: 14px;
}

.rv-table-detail-card small {
    color: var(--w-slate-500);
    font-size: 11px;
    line-height: 1.4;
    margin-top: 4px;
}

.rv-room-empty {
    padding-block: 18px;
}

.rv-combination-table .w-table {
    min-width: 940px;
}

.rv-combination-members {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 150px;
}

.rv-combination-member {
    background: var(--w-cyan-25);
    border: 1px solid var(--w-cyan-200);
    border-radius: 999px;
    color: var(--w-ink);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 9px;
}

.rv-combination-member.is-inactive {
    background: var(--w-slate-100);
    border-color: var(--w-slate-300);
    color: var(--w-slate-500);
    text-decoration: line-through;
}

.rv-combination-selector {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.rv-combination-selector > legend {
    padding: 0;
}

.rv-combination-picker {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.rv-combination-choice {
    background: var(--w-white);
    border: 1px solid var(--w-slate-200);
    border-radius: var(--w-radius-md);
    min-height: 58px;
    padding: 12px;
    transition: border-color var(--w-fast), box-shadow var(--w-fast);
    width: 100%;
}

.rv-combination-choice:hover {
    border-color: var(--w-cyan-300);
}

.rv-combination-choice:has(input:checked) {
    background: var(--w-cyan-25);
    border-color: var(--w-cyan-400);
    box-shadow: 0 0 0 1px var(--w-cyan-100);
}

.rv-combination-choice.is-inactive {
    background: var(--w-slate-50);
    border-style: dashed;
}

.rv-combination-choice.is-disabled {
    cursor: not-allowed;
    opacity: .62;
}

.rv-combination-selector > .w-error {
    color: var(--w-danger);
    display: block;
    margin-top: 10px;
}

.rv-combination-picker-alert {
    margin-top: 12px;
}

.rv-logout-form {
    margin: 0;
}

.rv-logout-form button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--w-slate-700);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    margin-top: 5px;
    min-height: 38px;
    padding: 8px 9px;
    width: 100%;
}

.rv-logout-form button:hover {
    background: var(--w-slate-100);
    color: var(--w-ink);
}

.rv-mobile-nav {
    background: rgba(255, 255, 255, .99);
    border-bottom: 1px solid var(--w-slate-150);
    box-shadow: var(--w-shadow-md);
    display: grid;
    gap: 6px;
    left: 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 12px 16px 16px;
    position: fixed;
    right: 0;
    top: 68px;
    z-index: 59;
}

.rv-mobile-nav a {
    align-items: center;
    border-radius: var(--w-radius-md);
    color: var(--w-slate-700);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    min-height: 44px;
    padding: 8px 11px;
    text-decoration: none;
}

.rv-mobile-nav > a:hover {
    background: var(--w-slate-75);
}

.rv-mobile-nav > a.active {
    background: var(--w-cyan-50);
    color: var(--w-cyan-800);
}

.rv-mobile-nav-context {
    align-items: center;
    background: linear-gradient(135deg, var(--w-cyan-25), var(--w-white));
    border: 1px solid var(--w-cyan-100);
    border-radius: var(--w-radius-lg);
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    padding: 11px;
}

.rv-mobile-nav-context-icon {
    align-items: center;
    background: var(--w-cyan-50);
    border-radius: 10px;
    color: var(--w-cyan-800);
    display: flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.rv-mobile-nav-context strong,
.rv-mobile-nav-context small,
.rv-mobile-nav-footer strong,
.rv-mobile-nav-footer small {
    display: block;
}

.rv-mobile-nav-context strong,
.rv-mobile-nav-footer strong {
    font-size: 12px;
}

.rv-mobile-nav-context small,
.rv-mobile-nav-footer small {
    color: var(--w-slate-500);
    font-size: 10px;
    margin-top: 1px;
}

.rv-mobile-restaurant-switcher {
    display: grid;
    gap: 6px;
    padding: 8px 4px 10px;
}

.rv-mobile-restaurant-switcher > label {
    color: var(--w-slate-500);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rv-mobile-restaurant-switcher > div {
    display: flex;
    gap: 7px;
}

.rv-mobile-restaurant-switcher select {
    background: var(--w-white);
    border: 1px solid var(--w-slate-200);
    border-radius: 9px;
    color: var(--w-ink);
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 9px;
}

.rv-mobile-restaurant-switcher .w-selectbox {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.rv-mobile-restaurant-switcher.rv-selectbox-enhanced > div {
    display: block;
}

.rv-mobile-restaurant-switcher .w-selectbox-options {
    z-index: 80;
}

.rv-mobile-restaurant-switcher button {
    background: var(--w-cyan-600);
    border: 0;
    border-radius: 9px;
    color: var(--w-white);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 11px;
}

.rv-mobile-nav-footer {
    align-items: center;
    border-top: 1px solid var(--w-slate-150);
    display: grid;
    gap: 9px;
    grid-template-columns: auto 1fr auto;
    margin-top: 5px;
    padding: 13px 6px 2px;
}

.rv-mobile-logout button {
    color: var(--w-cyan-800);
    font-size: 11px;
    margin: 0;
    min-height: 34px;
    padding: 6px 9px;
}

/* Roles and permissions */

.rv-page.rv-roles-page {
    max-width: 1120px;
}

.rv-roles-summary .w-card-body {
    padding-block: 16px;
}

.rv-roles-summary .w-help,
.rv-role-description {
    line-height: 1.6;
    margin: 0;
}

.rv-role-list {
    gap: 16px;
}

.rv-role-card {
    overflow: visible;
}

.rv-role-card-header {
    align-items: center;
}

.rv-role-heading,
.rv-role-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rv-role-heading .w-card-title {
    margin-right: 2px;
}

.rv-role-actions {
    justify-content: flex-end;
}

.rv-role-actions form {
    margin: 0;
}

.rv-role-danger {
    position: relative;
}

.rv-role-danger > summary {
    cursor: pointer;
    list-style: none;
}

.rv-role-danger > summary::-webkit-details-marker {
    display: none;
}

.rv-role-danger > summary:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-role-danger[open] > summary {
    background: var(--w-danger-soft);
    color: var(--w-danger);
}

.rv-role-danger-panel {
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    box-shadow: var(--w-shadow-md);
    padding: 15px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(310px, calc(100vw - 36px));
    z-index: 20;
}

.rv-role-danger-panel p {
    color: var(--w-slate-600);
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.rv-role-fields {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
}

.rv-role-fields .w-textarea {
    min-height: 82px;
}

.rv-permission-fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.rv-permission-fieldset > legend {
    margin-bottom: 9px;
    padding: 0;
}

.rv-permission-matrix {
    min-width: 540px;
}

.rv-permission-matrix th:first-child {
    width: 100%;
}

.rv-permission-matrix th:nth-child(2),
.rv-permission-matrix th:nth-child(3),
.rv-permission-matrix td:nth-child(2),
.rv-permission-matrix td:nth-child(3) {
    text-align: center;
    width: 92px;
}

.rv-permission-matrix tbody th {
    border-top: 1px solid var(--w-slate-150);
    color: var(--w-ink);
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.rv-permission-matrix tbody th strong {
    display: block;
    font-size: 13px;
}

.rv-permission-matrix .w-check {
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.rv-permission-description {
    color: var(--w-slate-500);
    display: block;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    margin-top: 4px;
}

.rv-permission-help {
    line-height: 1.5;
    margin: 10px 0 0;
}

.rv-role-description {
    color: var(--w-slate-700);
    overflow-wrap: anywhere;
}

.rv-new-role {
    scroll-margin-top: calc(var(--w-header) + 18px);
}

@keyframes rv-popover-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.985);
    }
}

/* Dashboard */

.rv-page {
    margin: 0 auto;
    max-width: var(--w-content);
    padding: 30px clamp(16px, 2.4vw, 28px) 72px;
}

.rv-page-head {
    align-items: center;
    display: flex;
    gap: 22px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.rv-page-head-copy {
    min-width: 0;
}

.rv-page-head h1 {
    font-family: var(--w-font-display);
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 9px 0 4px;
}

.rv-page-head p {
    color: var(--w-slate-600);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.rv-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.rv-page-actions .w-btn {
    white-space: nowrap;
}

.w-card {
    box-shadow: 0 1px 2px rgba(16, 43, 49, .035), 0 8px 24px rgba(25, 65, 72, .035);
}

.w-card-header {
    min-height: 68px;
}

.w-card-title {
    font-weight: 760;
}

.w-card-subtitle,
.w-list-copy span {
    color: var(--w-slate-600);
    line-height: 1.45;
}

.w-btn-brand {
    color: var(--w-ink);
    text-shadow: none;
}

.w-metric {
    min-height: 145px;
    overflow: hidden;
}

.w-metric::after {
    background: linear-gradient(135deg, transparent, var(--w-cyan-25));
    border-radius: 50%;
    content: "";
    height: 100px;
    position: absolute;
    right: -44px;
    top: -42px;
    width: 100px;
}

.w-metric > :not(.w-metric-icon) {
    position: relative;
    z-index: 1;
}

.w-metric-value {
    font-size: 32px;
    margin-top: 16px;
}

.w-metric-icon {
    position: absolute;
    z-index: 2;
}

.w-metric-trend.is-negative {
    color: var(--w-danger);
}

.w-list-item {
    min-height: 58px;
}

.rv-table-sub {
    color: var(--w-slate-500);
    font-size: 11px;
    line-height: 1.45;
    margin-top: 7px;
}

.rv-status-pending {
    background: var(--w-warning-soft);
    border-color: #f1d9a7;
    color: #93600f;
}

.rv-dashboard-lead {
    background: linear-gradient(135deg, var(--w-ink), #174851);
    border: 0;
    color: var(--w-white);
    overflow: hidden;
    position: relative;
}

.rv-dashboard-lead::after {
    background: var(--w-pink-400);
    border-radius: 50%;
    content: "";
    filter: blur(40px);
    height: 120px;
    opacity: .22;
    position: absolute;
    right: -20px;
    top: -50px;
    width: 120px;
}

.rv-dashboard-lead.is-ready::after {
    background: var(--w-cyan-400);
}

.rv-dashboard-lead .w-card-body {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.rv-dashboard-lead h2 {
    color: var(--w-white);
    font-family: var(--w-font-display);
    font-size: 19px;
    letter-spacing: -.025em;
    margin: 6px 0 4px;
}

.rv-dashboard-lead p {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    margin: 0;
}

.rv-live {
    align-items: center;
    color: var(--w-cyan-200);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
}

.rv-live::before {
    animation: rv-pulse 1.8s ease-in-out infinite;
    background: var(--w-success);
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(32, 180, 134, .2);
    content: "";
    height: 9px;
    width: 9px;
}

@keyframes rv-pulse {
    50% {
        box-shadow: 0 0 0 5px rgba(32, 180, 134, .13);
    }
}

.rv-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rv-dashboard-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.rv-occupancy-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 76px minmax(80px, 1fr) 40px;
}

.rv-occupancy-row > span,
.rv-occupancy-row > strong {
    font-size: 11px;
}

.rv-occupancy-row > strong {
    text-align: right;
}

.rv-week-list {
    gap: 20px;
}

.rv-compact-empty {
    min-height: 260px;
    justify-content: center;
    padding: 26px 16px;
}

.rv-compact-empty .w-empty-visual {
    height: 58px;
    width: 58px;
}

@media (max-width: 1180px) {
    .rv-restaurant-active {
        display: none;
    }

    .rv-user-trigger-name {
        display: none;
    }
}

@media (max-width: 980px) {
    .rv-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rv-restaurant-form-aside {
        position: static;
    }

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

    .rv-resource-form-aside {
        position: static;
    }
}

@media (max-width: 900px) {
    .rv-desktop-nav {
        display: none;
    }

    .rv-topbar-spacer {
        display: block;
        flex: 1;
    }

    .rv-nav-toggle {
        display: inline-flex;
    }

    .rv-user-anchor {
        display: none;
    }
}

@media (max-width: 760px) {
    .rv-page {
        padding-bottom: 48px;
        padding-top: 22px;
    }

    .rv-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .rv-page-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    .rv-page-actions .w-btn {
        justify-content: center;
        width: 100%;
    }

    .rv-dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .rv-form-span {
        grid-column: auto;
    }

    .rv-resource-form-layout .w-card-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .rv-resource-form-layout .w-card-footer .w-btn {
        justify-content: center;
        width: 100%;
    }

    .rv-restaurant-table {
        overflow: visible;
    }

    .rv-restaurant-table .w-table {
        min-width: 0;
    }

    .rv-restaurant-table .w-table thead {
        display: none;
    }

    .rv-restaurant-table .w-table,
    .rv-restaurant-table .w-table tbody,
    .rv-restaurant-table .w-table tr,
    .rv-restaurant-table .w-table td {
        display: block;
        width: 100%;
    }

    .rv-restaurant-table .w-table tr {
        border-bottom: 1px solid var(--w-slate-150);
        padding: 14px 17px;
    }

    .rv-restaurant-table .w-table tr:last-child {
        border-bottom: 0;
    }

    .rv-restaurant-table .w-table td {
        border: 0;
        padding: 5px 0;
    }

    .rv-restaurant-table .w-table td[data-label] {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .rv-restaurant-table .w-table td[data-label]::before {
        color: var(--w-slate-400);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .rv-restaurant-table .rv-inline-actions {
        min-width: 0;
    }

    .rv-restaurant-state > form {
        left: 0;
        right: auto;
    }

    .rv-room-grid {
        grid-template-columns: 1fr;
    }

    .rv-responsive-table {
        overflow: visible;
    }

    .rv-responsive-table .w-table {
        min-width: 0;
    }

    .rv-responsive-table .w-table thead {
        display: none;
    }

    .rv-responsive-table .w-table,
    .rv-responsive-table .w-table tbody,
    .rv-responsive-table .w-table tr,
    .rv-responsive-table .w-table td {
        display: block;
        width: 100%;
    }

    .rv-responsive-table .w-table tr {
        border-bottom: 1px solid var(--w-slate-150);
        padding: 14px 17px;
    }

    .rv-responsive-table .w-table tr:last-child {
        border-bottom: 0;
    }

    .rv-responsive-table .w-table td {
        border: 0;
        padding: 6px 0;
    }

    .rv-responsive-table .w-table td[data-label] {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .rv-responsive-table .w-table td[data-label]::before {
        color: var(--w-slate-400);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .rv-responsive-table .w-table td > * {
        grid-column: 2;
    }

    .rv-role-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .rv-role-actions {
        justify-content: flex-start;
    }

    .rv-role-fields {
        grid-template-columns: 1fr;
    }

    .rv-role-edit-form .w-card-footer,
    .rv-new-role .w-card-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .rv-role-edit-form .w-card-footer .w-btn,
    .rv-new-role .w-card-footer .w-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 620px) {
    .rv-topbar {
        gap: 7px;
    }

    .rv-topbar .rv-brand {
        font-size: 18px;
    }

    .rv-topbar .rv-popover-anchor:not(.rv-user-anchor) {
        display: none;
    }

    .rv-page-head h1 {
        font-size: 28px;
    }

    .rv-page-actions {
        gap: 8px;
    }

    .rv-page-actions .w-btn {
        font-size: 12px;
        padding-inline: 11px;
    }

    .rv-dashboard-lead .w-card-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .rv-restaurant-summary .w-card-body,
    .rv-restaurant-detail-head .w-card-body,
    .rv-restaurant-status-card .w-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .rv-restaurant-summary .w-badge,
    .rv-restaurant-detail-head .rv-inline-actions {
        align-self: flex-start;
    }

    .rv-restaurant-status-card .w-card-footer .w-btn {
        justify-content: center;
        width: 100%;
    }

    .rv-dashboard-lead .w-btn {
        width: 100%;
    }

    .rv-metrics-grid {
        grid-template-columns: 1fr;
    }

    .w-list-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .w-list-copy {
        flex: 1;
    }

    .w-list-trailing {
        margin-left: 53px;
        margin-top: -7px;
        width: calc(100% - 53px);
    }

    .rv-role-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .rv-role-actions > form .w-btn,
    .rv-role-danger > summary {
        justify-content: center;
        width: 100%;
    }

    .rv-role-danger-panel {
        box-shadow: none;
        margin-top: 8px;
        position: static;
        width: 100%;
    }

    .rv-role-danger[open] {
        grid-column: 1 / -1;
    }

    .rv-restaurant-table .w-table td[data-label] {
        align-items: start;
        grid-template-columns: 1fr;
        padding-block: 7px;
    }

    .rv-restaurant-table .w-table td[data-label]::before {
        margin-bottom: 1px;
    }

    .rv-restaurant-state {
        width: 100%;
    }

    .rv-restaurant-state > summary {
        justify-content: center;
        width: 100%;
    }

    .rv-restaurant-state > form {
        box-shadow: none;
        margin-top: 8px;
        position: static;
        width: 100%;
    }

    .rv-restaurant-table .rv-inline-actions > .w-btn {
        justify-content: center;
        width: 100%;
    }

    .rv-room-metrics {
        grid-template-columns: 1fr;
    }

    .rv-room-metric {
        min-height: 76px;
    }

    .rv-room-card-head,
    .rv-room-table-head {
        align-items: flex-start;
        gap: 12px;
    }

    .rv-responsive-table .w-table td[data-label] {
        align-items: start;
        grid-template-columns: 1fr;
        padding-block: 7px;
    }

    .rv-responsive-table .w-table td[data-label]::before {
        margin-bottom: 1px;
    }

    .rv-responsive-table .w-table td > * {
        grid-column: 1;
    }

    .rv-room-table .rv-inline-actions,
    .rv-room-table .rv-inline-actions > .w-btn,
    .rv-room-table .rv-resource-state,
    .rv-room-table .rv-resource-state > summary {
        justify-content: center;
        width: 100%;
    }

    .rv-resource-state > form {
        box-shadow: none;
        left: 0;
        margin-top: 8px;
        position: static;
        right: auto;
        width: 100%;
    }

    .rv-resource-state[open] {
        width: 100%;
    }

    .rv-room-facts {
        grid-template-columns: 1fr;
    }

    .rv-combination-picker {
        grid-template-columns: 1fr;
    }

    .rv-permission-matrix {
        min-width: 460px;
    }
}

@media (max-width: 430px) {
    .rv-login-wrap {
        padding: 0;
    }

    .rv-login-frame {
        border: 0;
        border-radius: 0;
        min-height: 100dvh;
    }

    .rv-login-brand {
        margin-bottom: 34px;
    }

    .rv-auth-flow-brand {
        margin-bottom: 30px;
    }

    .rv-auth-flow-panel,
    .rv-auth-terms-panel {
        min-height: 100dvh;
        padding: 30px 22px;
    }

    .rv-auth-secondary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rv-auth-secondary-actions .w-btn {
        width: 100%;
    }

    .rv-auth-terms-wrap {
        padding: 0;
    }

    .rv-auth-terms-copy {
        padding: 17px;
    }

    .rv-page-actions {
        grid-template-columns: 1fr;
    }

    .rv-error-page {
        padding: 12px;
    }

    .rv-error-card {
        padding: 28px 22px;
    }

    .rv-error-card .rv-brand {
        margin-bottom: 70px;
    }

    .rv-error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rv-error-actions .w-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rv-live::before {
        animation: none;
    }

    .rv-popover {
        animation: none;
    }
}

@media (forced-colors: active) {
    .rv-logo-lockup,
    .rv-live::before {
        forced-color-adjust: none;
    }
}

/* Global administration */

.rv-page.rv-global-page {
    max-width: 1480px;
}

.rv-global-mode-badge {
    flex: 0 0 auto;
}

.rv-global-context {
    align-items: center;
    background: linear-gradient(120deg, var(--w-ink), var(--w-ink-soft));
    color: var(--w-white);
    display: flex;
    gap: 22px;
    justify-content: space-between;
    padding: 13px clamp(16px, 2.4vw, 30px);
    position: sticky;
    top: 68px;
    z-index: 50;
}

.rv-global-context > div:first-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.rv-global-context > div:first-child > span:last-child {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.rv-global-context-label {
    color: var(--w-cyan-300);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.rv-global-context-actions,
.rv-global-context-actions form {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0;
}

.rv-global-context .w-btn-ghost {
    color: var(--w-white);
}

.rv-global-context .w-btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.rv-global-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rv-global-metric {
    display: flex;
    flex-direction: column;
    min-height: 126px;
    padding: 19px;
}

.rv-global-metric > span {
    color: var(--w-slate-500);
    font-size: 11px;
    font-weight: 750;
}

.rv-global-metric > strong {
    color: var(--w-ink);
    font-family: var(--w-font-display);
    font-size: 31px;
    letter-spacing: -.04em;
    line-height: 1;
    margin-top: 18px;
}

.rv-global-metric > small {
    color: var(--w-slate-500);
    font-size: 10px;
    margin-top: 7px;
}

.rv-global-list-card {
    overflow: visible;
}

.rv-global-toolbar {
    align-items: end;
    border-bottom: 1px solid var(--w-slate-150);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(170px, 220px) auto;
    padding: 15px 18px;
}

.rv-global-search {
    min-width: 0;
}

.rv-global-toolbar-actions {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: flex-end;
}

.rv-global-table .w-table {
    min-width: 1120px;
}

.rv-global-table .w-table td {
    vertical-align: top;
}

.rv-global-company-copy,
.rv-global-table td:nth-child(2),
.rv-global-table td:nth-child(3),
.rv-global-table td:nth-child(4),
.rv-global-table td:nth-child(5) {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rv-global-company-copy strong,
.rv-global-table td:nth-child(2) > strong {
    color: var(--w-ink);
    font-size: 13px;
}

.rv-global-company-copy span,
.rv-global-company-copy small,
.rv-global-count,
.rv-global-date {
    color: var(--w-slate-500);
    font-size: 10px;
    line-height: 1.4;
}

.rv-global-count strong,
.rv-global-date strong {
    color: var(--w-slate-700);
}

.rv-global-row-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 170px;
}

.rv-global-row-actions > form,
.rv-global-row-actions > form .w-btn {
    margin: 0;
    width: 100%;
}

.rv-global-status-details > summary {
    cursor: pointer;
    justify-content: center;
    list-style: none;
    width: 100%;
}

.rv-global-status-details > summary::-webkit-details-marker {
    display: none;
}

.rv-global-status-details > summary:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-global-status-details[open] > summary {
    background: var(--w-cyan-25);
    color: var(--w-cyan-800);
}

.rv-global-status-details > form {
    background: var(--w-slate-50);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 13px;
    width: 260px;
}

.rv-global-status-details .w-textarea {
    min-height: 76px;
}

.rv-global-create-grid {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
}

.rv-global-create-aside {
    position: sticky;
    top: 88px;
}

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

.rv-global-form-span {
    grid-column: 1 / -1;
}

.rv-global-create-summary ul {
    color: var(--w-slate-600);
    display: grid;
    font-size: 11px;
    gap: 10px;
    line-height: 1.5;
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 1050px) {
    .rv-global-toolbar {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, .5fr));
    }

    .rv-global-toolbar-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .rv-global-context {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        position: static;
    }

    .rv-global-context-actions {
        width: 100%;
    }

    .rv-global-context-actions .w-btn {
        justify-content: center;
    }

    .rv-global-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rv-global-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rv-global-search,
    .rv-global-toolbar-actions {
        grid-column: 1 / -1;
    }

    .rv-global-create-grid {
        grid-template-columns: 1fr;
    }

    .rv-global-create-aside {
        position: static;
    }
}

@media (max-width: 620px) {
    .rv-global-mode-badge {
        display: none;
    }

    .rv-global-context-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .rv-global-context-actions form,
    .rv-global-context-actions .w-btn {
        width: 100%;
    }

    .rv-global-toolbar {
        grid-template-columns: 1fr;
    }

    .rv-global-search,
    .rv-global-toolbar-actions {
        grid-column: auto;
    }

    .rv-global-toolbar-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .rv-global-toolbar-actions .w-btn {
        justify-content: center;
        width: 100%;
    }

    .rv-global-table {
        overflow: visible;
    }

    .rv-global-table .w-table {
        min-width: 0;
    }

    .rv-global-table .w-table thead {
        display: none;
    }

    .rv-global-table .w-table,
    .rv-global-table .w-table tbody,
    .rv-global-table .w-table tr,
    .rv-global-table .w-table td {
        display: block;
        width: 100%;
    }

    .rv-global-table .w-table tr {
        border-bottom: 1px solid var(--w-slate-150);
        padding: 14px 16px;
    }

    .rv-global-table .w-table tr:last-child {
        border-bottom: 0;
    }

    .rv-global-table .w-table td,
    .rv-global-table .w-table td:nth-child(2),
    .rv-global-table .w-table td:nth-child(3),
    .rv-global-table .w-table td:nth-child(4),
    .rv-global-table .w-table td:nth-child(5) {
        border: 0;
        display: grid;
        gap: 6px 12px;
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 7px 0;
    }

    .rv-global-table .w-table td::before {
        color: var(--w-slate-400);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: .06em;
        padding-top: 3px;
        text-transform: uppercase;
    }

    .rv-global-table .w-table td > * {
        grid-column: 2;
    }

    .rv-global-row-actions,
    .rv-global-status-details > form {
        min-width: 0;
        width: 100%;
    }

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

    .rv-global-form-span {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .rv-global-metrics {
        grid-template-columns: 1fr;
    }
}

/* Dining room floor-plan editor */

.rv-page.rv-floor-plan-page {
    max-width: 1580px;
}

.rv-floor-plan-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 310px;
}

.rv-floor-plan-canvas-card {
    min-width: 0;
    overflow: hidden;
}

.rv-floor-plan-draft-alert[hidden] {
    display: none;
}

.rv-floor-plan-draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rv-floor-plan-header,
.rv-floor-plan-badges,
.rv-floor-plan-toolbar,
.rv-floor-plan-actions,
.rv-floor-plan-zoom,
.rv-floor-plan-palette,
.rv-floor-plan-mode-switch {
    align-items: center;
    display: flex;
    gap: 8px;
}

.rv-floor-plan-header {
    gap: 18px;
    justify-content: space-between;
}

.rv-floor-plan-badges {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rv-floor-plan-toolbar {
    background: var(--w-slate-50);
    border-bottom: 1px solid var(--w-slate-150);
    border-top: 1px solid var(--w-slate-150);
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 54px;
    padding: 9px 16px;
}

.rv-floor-plan-mode-switch {
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-md);
    padding: 3px;
}

.rv-floor-plan-mode-switch .w-btn {
    border-color: transparent;
    min-height: 36px;
}

.rv-floor-plan-mode-switch .w-btn.is-active {
    background: var(--w-cyan-50);
    border-color: var(--w-cyan-300);
    color: var(--w-cyan-800);
}

.rv-floor-plan-decoration-palette[hidden],
.rv-floor-plan-actions[hidden],
#rv-floor-plan-decoration-card[hidden],
#rv-floor-plan-decoration-inspector-card[hidden],
#rv-floor-plan-decoration-validation-card[hidden] {
    display: none;
}

.rv-floor-plan-palette {
    flex-wrap: wrap;
}

.rv-decoration-symbol {
    background: var(--w-slate-100);
    border: 2px solid var(--w-slate-500);
    border-radius: 3px;
    display: inline-block;
    flex: 0 0 auto;
    height: 18px;
    position: relative;
    width: 22px;
}

.rv-decoration-symbol.is-pared {
    border-radius: 1px;
    height: 5px;
    transform: rotate(-9deg);
    width: 26px;
}

.rv-decoration-symbol.is-puerta {
    background: #c5823a;
    border-color: #87521f;
    height: 7px;
    width: 24px;
}

.rv-decoration-symbol.is-barra {
    background: #9a795c;
    border-color: #6f533d;
    height: 12px;
    width: 26px;
}

.rv-decoration-symbol.is-planta {
    background: #55a77a;
    border-color: #26704b;
    border-radius: 50%;
    height: 18px;
    width: 18px;
}

.rv-decoration-symbol.is-jardinera {
    background: #7ea17b;
    border-color: #466a48;
    height: 11px;
    width: 27px;
}

.rv-decoration-symbol.is-unsupported {
    background: rgba(123, 79, 177, .12);
    border-color: #7b4fb1;
    border-style: dashed;
}

.rv-floor-plan-palette-label {
    color: var(--w-slate-500);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rv-floor-plan-palette .w-btn {
    min-height: 38px;
}

.rv-floor-plan-palette .rv-table-shape {
    height: 18px;
    width: 18px;
}

.rv-floor-plan-zoom .w-btn {
    justify-content: center;
    min-width: 38px;
}

.rv-floor-plan-action-feedback {
    background: var(--w-cyan-25);
    border-bottom: 1px solid var(--w-cyan-200);
    color: var(--w-cyan-800);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    padding: 10px 16px;
}

.rv-floor-plan-action-feedback.is-error {
    background: var(--w-danger-soft);
    border-color: rgba(217, 75, 90, .3);
    color: var(--w-danger);
}

.rv-floor-plan-action-feedback[hidden],
.rv-floor-plan-table-list[hidden],
.rv-floor-plan-empty[hidden] {
    display: none;
}

.rv-floor-plan-body {
    padding: 16px;
}

.rv-floor-plan-viewport {
    align-items: flex-start;
    background:
        linear-gradient(45deg, rgba(8, 125, 138, .035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(8, 125, 138, .035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(8, 125, 138, .035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(8, 125, 138, .035) 75%),
        var(--w-slate-50);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-lg);
    display: flex;
    justify-content: flex-start;
    min-height: 530px;
    overflow: auto;
    padding: 22px;
    position: relative;
}

.rv-floor-plan-viewport:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

#rv-floor-plan-canvas {
    background: var(--w-white);
    border: 1px solid var(--w-slate-200);
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(16, 43, 49, .14);
    flex: 0 0 auto;
    line-height: 0;
    margin: auto;
    overflow: hidden;
    touch-action: none;
}

#rv-floor-plan-canvas:empty {
    border: 0;
    box-shadow: none;
}

#rv-floor-plan-canvas .konvajs-content,
#rv-floor-plan-canvas canvas {
    border-radius: 12px;
}

.rv-floor-plan-loading {
    color: var(--w-slate-500);
    font-size: 12px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.rv-floor-plan-loading.is-error {
    color: var(--w-danger);
    font-weight: 700;
    max-width: 360px;
    text-align: center;
}

.rv-floor-plan-sidebar {
    position: sticky;
    top: 86px;
}

.rv-floor-plan-table-list {
    display: grid;
    gap: 7px;
    max-height: 310px;
    overflow: auto;
    padding: 2px;
}

.rv-floor-plan-floor-controls {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 72px;
}

.rv-floor-plan-color {
    min-height: 40px;
    padding: 4px;
    width: 100%;
}

.rv-floor-plan-decoration-list {
    display: grid;
    gap: 7px;
    max-height: 310px;
    overflow: auto;
    padding: 2px;
}

.rv-floor-plan-decoration-item {
    align-items: center;
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-md);
    color: var(--w-slate-700);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 10px;
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 50px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.rv-floor-plan-decoration-item:hover {
    background: rgba(123, 79, 177, .06);
    border-color: rgba(123, 79, 177, .45);
}

.rv-floor-plan-decoration-item:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-floor-plan-decoration-item[aria-current="true"] {
    background: rgba(123, 79, 177, .1);
    border-color: #7b4fb1;
    box-shadow: 0 0 0 1px #7b4fb1;
}

.rv-floor-plan-decoration-item.is-invalid {
    background: var(--w-danger-soft);
    border-color: var(--w-danger);
}

.rv-floor-plan-decoration-item.is-unsupported {
    cursor: not-allowed;
    opacity: .78;
}

.rv-floor-plan-decoration-item.is-unsupported:hover {
    background: var(--w-white);
    border-color: var(--w-slate-150);
}

.rv-floor-plan-decoration-item > span:last-child {
    min-width: 0;
}

.rv-floor-plan-decoration-item strong,
.rv-floor-plan-decoration-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-floor-plan-decoration-item strong {
    color: var(--w-ink);
    font-size: 12px;
}

.rv-floor-plan-decoration-item small {
    color: var(--w-slate-500);
    font-size: 10px;
    margin-top: 3px;
}

[data-decoration-field][hidden] {
    display: none;
}

.rv-floor-plan-inline-form {
    margin-top: 12px;
}

.rv-floor-plan-table-item {
    align-items: center;
    background: var(--w-white);
    border: 1px solid var(--w-slate-150);
    border-radius: var(--w-radius-md);
    color: var(--w-slate-700);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 50px;
    padding: 8px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.rv-floor-plan-table-item:hover {
    background: var(--w-cyan-25);
    border-color: var(--w-cyan-300);
}

.rv-floor-plan-table-item:focus-visible {
    box-shadow: var(--w-focus);
    outline: none;
}

.rv-floor-plan-table-item[aria-current="true"] {
    background: var(--w-cyan-50);
    border-color: var(--w-cyan-500);
    box-shadow: 0 0 0 1px var(--w-cyan-500);
}

.rv-floor-plan-table-item.is-invalid {
    background: var(--w-danger-soft);
    border-color: var(--w-danger);
}

.rv-floor-plan-table-item.is-inactive {
    border-style: dashed;
}

.rv-floor-plan-table-item.is-new {
    box-shadow: inset 3px 0 0 var(--w-cyan-500);
}

.rv-floor-plan-table-item.is-new[aria-current="true"] {
    box-shadow:
        0 0 0 1px var(--w-cyan-500),
        inset 3px 0 0 var(--w-cyan-500);
}

.rv-floor-plan-table-item > span:last-child {
    min-width: 0;
}

.rv-floor-plan-table-item strong,
.rv-floor-plan-table-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rv-floor-plan-table-item strong {
    color: var(--w-ink);
    font-size: 12px;
}

.rv-floor-plan-table-item small {
    color: var(--w-slate-500);
    font-size: 10px;
    margin-top: 3px;
}

.rv-floor-plan-inspector-empty,
.rv-floor-plan-empty {
    align-items: center;
    color: var(--w-slate-500);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.rv-floor-plan-inspector-empty > .w-icon,
.rv-floor-plan-empty > .w-icon {
    color: var(--w-cyan-600);
    height: 30px;
    width: 30px;
}

.rv-floor-plan-inspector-empty p,
.rv-floor-plan-empty p {
    font-size: 11px;
    line-height: 1.55;
    margin: 0;
}

.rv-floor-plan-empty strong {
    color: var(--w-ink);
    font-size: 13px;
}

.rv-floor-plan-inspector {
    display: grid;
    gap: 16px;
}

.rv-floor-plan-property-grid {
    display: grid;
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rv-floor-plan-property-span {
    grid-column: 1 / -1;
}

.rv-floor-plan-rotation-field {
    grid-column: 1 / -1;
}

.rv-floor-plan-rotation-control {
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.rv-floor-plan-rotation-control .w-btn {
    min-height: 40px;
}

.rv-floor-plan-switches {
    border-top: 1px solid var(--w-slate-150);
    display: grid;
    gap: 12px;
    padding-top: 15px;
}

.rv-floor-plan-switches .w-switch {
    align-items: flex-start;
}

.rv-floor-plan-inspector-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rv-floor-plan-inspector-actions .w-btn {
    justify-content: center;
    min-height: 40px;
    min-width: 0;
}

.rv-floor-plan-inspector-actions #rv-floor-plan-edit-table {
    grid-column: 1 / -1;
}

.rv-floor-plan-inspector-actions #rv-floor-plan-edit-table[hidden] {
    display: none;
}

.rv-floor-plan-dialog {
    background: transparent;
    border: 0;
    max-height: 100dvh;
    max-width: 560px;
    padding: 16px;
    width: calc(100% - 24px);
}

.rv-floor-plan-dialog::backdrop {
    background: rgba(9, 30, 34, .55);
}

.rv-floor-plan-dialog .w-modal {
    max-height: calc(100dvh - 32px);
    max-width: none;
    overflow: auto;
}

.rv-floor-plan-dialog .w-modal-head {
    gap: 16px;
}

.rv-floor-plan-dialog .w-modal-head .w-btn {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 40px;
}

.rv-floor-plan-dialog .w-modal-body p {
    color: var(--w-slate-700);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.rv-floor-plan-dialog .w-modal-body .rv-floor-plan-dialog-note {
    color: var(--w-slate-500);
    font-size: 11px;
    margin-top: 10px;
}

.rv-confirm-dialog {
    background: transparent;
    border: 0;
    max-height: 100dvh;
    max-width: 480px;
    padding: 16px;
    width: calc(100% - 24px);
}

.rv-confirm-dialog::backdrop {
    background: rgba(9, 30, 34, .55);
}

.rv-confirm-dialog .w-modal {
    max-height: calc(100dvh - 32px);
    max-width: none;
    overflow: auto;
}

.rv-confirm-dialog .w-modal-head {
    gap: 16px;
}

.rv-confirm-dialog .w-modal-head .w-btn {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 40px;
}

.rv-confirm-dialog .w-modal-body p {
    color: var(--w-slate-700);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.rv-floor-plan-validation {
    align-items: flex-start;
    color: var(--w-success);
    display: flex;
    gap: 9px;
}

.rv-floor-plan-validation .w-icon {
    flex: 0 0 auto;
    height: 19px;
    width: 19px;
}

.rv-floor-plan-validation [hidden] {
    display: none;
}

.rv-floor-plan-validation p {
    color: var(--w-slate-600);
    font-size: 11px;
    line-height: 1.5;
    margin: 1px 0 0;
}

.rv-floor-plan-validation.is-invalid {
    color: var(--w-danger);
}

.rv-floor-plan-validation.is-invalid p {
    color: var(--w-danger);
}

.rv-floor-plan-validation-review {
    margin-top: 14px;
    width: 100%;
}

#rv-floor-plan-form,
#rv-floor-plan-decoration-form {
    display: none;
}

@media (max-width: 1100px) {
    .rv-floor-plan-layout {
        grid-template-columns: minmax(0, 1fr) 285px;
    }

    .rv-floor-plan-viewport {
        min-height: 470px;
    }

    .rv-floor-plan-palette {
        flex-basis: 100%;
    }
}

@media (max-width: 900px) {
    .rv-floor-plan-layout {
        grid-template-columns: 1fr;
    }

    .rv-floor-plan-sidebar {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }

    .rv-floor-plan-validation-card {
        grid-column: 1 / -1;
    }

    .rv-floor-plan-table-list {
        max-height: 360px;
    }
}

@media (max-width: 700px) {
    .rv-floor-plan-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rv-floor-plan-badges {
        justify-content: flex-start;
    }

    .rv-floor-plan-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .rv-floor-plan-palette {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rv-floor-plan-decoration-palette {
        display: flex;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .rv-floor-plan-decoration-palette .w-btn {
        flex: 0 0 auto;
        min-height: 44px;
        scroll-snap-align: start;
    }

    .rv-floor-plan-palette-label {
        grid-column: 1 / -1;
    }

    .rv-floor-plan-palette .w-btn {
        justify-content: center;
        min-width: 0;
    }

    .rv-floor-plan-zoom {
        align-self: flex-start;
    }

    .rv-floor-plan-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rv-floor-plan-actions .w-btn {
        justify-content: center;
        min-width: 0;
    }

    .rv-floor-plan-viewport {
        min-height: 410px;
        padding: 14px;
    }

    .rv-floor-plan-sidebar {
        grid-template-columns: 1fr;
    }

    .rv-floor-plan-validation-card {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .rv-floor-plan-body {
        padding: 10px;
    }

    .rv-floor-plan-toolbar {
        padding-inline: 10px;
    }

    .rv-floor-plan-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rv-floor-plan-actions #rv-floor-plan-save,
    .rv-floor-plan-actions #rv-floor-plan-decoration-save {
        grid-column: 1 / -1;
    }

    .rv-floor-plan-viewport {
        min-height: 360px;
        padding: 10px;
    }

    .rv-floor-plan-property-grid {
        grid-template-columns: 1fr;
    }

    .rv-floor-plan-property-span,
    .rv-floor-plan-rotation-field {
        grid-column: auto;
    }

    .rv-floor-plan-palette {
        grid-template-columns: 1fr;
    }

    .rv-floor-plan-decoration-palette {
        display: flex;
    }

    .rv-floor-plan-palette-label {
        grid-column: auto;
    }

    .rv-floor-plan-inspector-actions {
        grid-template-columns: 1fr;
    }

    .rv-floor-plan-inspector-actions #rv-floor-plan-edit-table {
        grid-column: auto;
    }

    .rv-floor-plan-dialog {
        padding: 8px;
        width: calc(100% - 12px);
    }

    .rv-floor-plan-dialog .w-modal {
        max-height: calc(100dvh - 16px);
    }

    .rv-floor-plan-dialog .w-modal-foot {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .rv-floor-plan-dialog .w-modal-foot .w-btn {
        justify-content: center;
        min-height: 44px;
        width: 100%;
    }

    .rv-confirm-dialog {
        padding: 8px;
        width: calc(100% - 12px);
    }

    .rv-confirm-dialog .w-modal {
        max-height: calc(100dvh - 16px);
    }

    .rv-confirm-dialog .w-modal-foot {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .rv-confirm-dialog .w-modal-foot .w-btn {
        justify-content: center;
        min-height: 44px;
        width: 100%;
    }
}

@media (forced-colors: active) {
    .rv-floor-plan-table-item[aria-current="true"],
    .rv-floor-plan-table-item.is-invalid,
    .rv-floor-plan-decoration-item[aria-current="true"],
    .rv-floor-plan-decoration-item.is-invalid,
    .rv-floor-plan-mode-switch .w-btn.is-active {
        outline: 2px solid CanvasText;
    }
}
