.wpm-app {
    --wpm-navy: #10182a;
    --wpm-blue: #7db2ff;
    --wpm-muted: #8f98ab;
    --wpm-page: #f3f5f9;
    --wpm-nav-height: 68px;
    width: 100vw;
    max-width: 520px;
    min-height: 100vh;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    background: var(--wpm-page);
    color: #111827;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-bottom: calc(var(--wpm-nav-height) + 36px + env(safe-area-inset-bottom));
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.12);
}

/* Manager Records / Activity (v1.7.41) */
.wpm-record-type-tabs,.wpm-record-view-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.wpm-record-type-tabs a,.wpm-record-view-tabs a{border:1px solid #dbe2ee;border-radius:999px;padding:8px 13px;color:#344054;text-decoration:none;font-weight:700;background:#fff}.wpm-record-type-tabs a.is-active,.wpm-record-view-tabs a.is-active{background:#5b43f1;color:#fff;border-color:#5b43f1}.wpm-record-list,.wpm-activity-list{display:grid;gap:10px}.wpm-record-card,.wpm-activity-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.wpm-record-card>div,.wpm-activity-list article>div{display:grid;gap:3px}.wpm-record-card small{color:#b42318}.wpm-record-card form{display:flex;align-items:center;gap:8px}.wpm-record-card input{min-width:220px}.wpm-activity-filters{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr)) auto;gap:10px;align-items:end;margin:14px 0}.wpm-activity-filters label{display:grid;gap:5px;font-weight:700}.wpm-activity-list article time{color:#667085;white-space:nowrap}@media(max-width:760px){.wpm-record-card,.wpm-activity-list article{align-items:stretch;flex-direction:column}.wpm-record-card form{align-items:stretch;flex-direction:column}.wpm-record-card input{min-width:0;width:100%}.wpm-activity-filters{grid-template-columns:1fr}}

@media (min-width: 520px) {
    .wpm-app {
        width: 520px;
        margin-right: auto;
        margin-left: auto;
    }
}

.wpm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 10px;
    padding: 9px 18px 9px 12px;
    background: var(--wpm-navy);
    color: #fff;
}

.wpm-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.wpm-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c05a, #6f4d27);
    color: #fff;
    font-weight: 800;
}

.wpm-logo {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 0;
    object-fit: contain;
}

.wpm-brand-text {
    min-width: 0;
}

.wpm-title {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.wpm-subtitle {
    margin-top: 3px;
    color: var(--wpm-blue);
    font-size: 15px;
    line-height: 1.05;
    font-weight: 700;
    white-space: nowrap;
}

.wpm-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #84673f;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.wpm-account-menu {
    position: relative;
    flex: 0 0 auto;
    margin-right: 0;
}

.wpm-account-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    list-style: none;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.wpm-account-toggle::-webkit-details-marker {
    display: none;
}

.wpm-account-toggle:hover,
.wpm-account-menu[open] .wpm-account-toggle {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.wpm-account-toggle:focus-visible,
.wpm-alert-toggle:focus-visible {
    outline: 3px solid #8bb8ff;
    outline-offset: 2px;
}

.wpm-profile-icon,
.wpm-profile-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.wpm-profile-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-chevron {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.wpm-chevron svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    color: #101827;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.wpm-account-dropdown span {
    color: #697386;
    font-size: 13px;
}

.wpm-account-dropdown a {
    color: #5944f2;
    font-weight: 800;
    text-decoration: none;
}

.wpm-account-dropdown .wpm-logout button {
    width: 100%;
    padding: 10px 12px;
}

.wpm-content {
    padding: 24px 20px 0;
}

.wpm-card,
.wpm-feature-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wpm-card {
    margin-bottom: 18px;
    padding: 24px;
}

.wpm-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.2;
    color: #101827;
}

.wpm-card p {
    margin: 0 0 14px;
    color: var(--wpm-muted);
}

.wpm-menu-list {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.wpm-feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 94px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wpm-feature-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.wpm-feature-card small {
    display: block;
    margin-top: 6px;
    color: var(--wpm-muted);
    font-size: 15px;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.wpm-feature-chevron {
    margin-left: auto;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: #c4cad6;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.wpm-feature-chevron svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.wpm-feature-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-icon-blue {
    background: #e8f0ff;
    color: #2563eb;
}

.wpm-icon-purple {
    background: #f0e8ff;
    color: #7c3aed;
}

.wpm-icon-gold {
    background: #fff6df;
    color: #c98900;
}

.wpm-icon-green {
    background: #e8f8ef;
    color: #13a463;
}

.wpm-form {
    display: grid;
    gap: 14px;
}

.wpm-form label {
    display: grid;
    gap: 7px;
    color: #3f4858;
    font-weight: 700;
}

.wpm-form input,
.wpm-form textarea,
.wpm-form select {
    width: 100%;
    border: 1px solid #d9deea;
    border-radius: 12px;
    padding: 12px 14px;
    color: #111827;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}

.wpm-form input[type="checkbox"],
.wpm-form input[type="radio"] {
    width: auto;
}

.wpm-form button,
.wpm-logout button,
.wpm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    background: #5944f2;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.wpm-button-light {
    background: #e9ecf5;
    color: #101827;
}

.wpm-button:disabled,
.wpm-button[disabled] {
    cursor: not-allowed;
    opacity: 0.48;
}

.wpm-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.wpm-logout {
    margin: 0;
}

.wpm-form-link {
    margin-top: 14px;
}

.wpm-login-panel {
    display: grid;
    gap: 22px;
    padding: 26px 0 10px;
}

.wpm-login-panel h2 {
    margin: 0;
    color: #101827;
    font-size: 28px;
    line-height: 1.15;
}

.wpm-login-form label {
    color: #738096;
    font-size: 18px;
    font-weight: 800;
}

.wpm-login-form input {
    min-height: 62px;
    border-radius: 24px;
    padding: 16px 20px;
    background: #fff;
    font-size: 20px;
}

.wpm-password-wrap {
    position: relative;
    display: block;
    width: 100%;
    line-height: 1;
}

.wpm-password-wrap input,
.wpm-password-wrap input[type="password"],
.wpm-password-wrap input[type="text"] {
    width: 100%;
    padding-right: 58px !important;
    box-sizing: border-box;
}

.wpm-password-wrap input[type="password"]::-ms-reveal,
.wpm-password-wrap input[type="password"]::-ms-clear {
    display: none;
}

.wpm-password-wrap > .wpm-password-toggle,
.wpm-form .wpm-password-wrap > .wpm-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px;
    min-height: 0 !important;
    transform: translateY(-50%);
    border: 0 !important;
    background: transparent !important;
    color: #6d28d9 !important;
    padding: 8px !important;
    box-shadow: none !important;
    z-index: 2;
    margin: 0 !important;
    font-size: 0;
    line-height: 1;
}

.wpm-password-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.wpm-password-icon-hide,
.wpm-password-toggle.is-visible .wpm-password-icon-show {
    display: none;
}

.wpm-password-toggle.is-visible .wpm-password-icon-hide {
    display: block;
}

.wpm-forgot-link {
    justify-self: end;
    color: #6d28d9;
    font-weight: 700;
}

.wpm-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    color: #a4adbd;
    font-weight: 900;
}

.wpm-login-divider::before,
.wpm-login-divider::after {
    content: "";
    height: 1px;
    background: #dfe4ee;
}

.wpm-register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    border: 1px solid #dfe4ee;
    border-radius: 22px;
    background: #fff;
    color: #101827;
    font-size: 19px;
    font-weight: 900;
}

.wpm-auth-page {
    position: relative;
    min-height: calc(100vh - 56px - var(--wpm-nav-height));
    margin: -24px -20px 0;
    padding: 30px 28px 52px;
    background: #fff;
    box-sizing: border-box;
}

.wpm-app-auth-plain {
    min-height: 100vh;
    padding-bottom: 0;
    background: #fff;
}

.wpm-app-auth-plain .wpm-content {
    padding: 0;
}

.wpm-app-auth-plain .wpm-auth-page {
    min-height: 100vh;
    margin: 0;
    padding-top: 30px;
}

.wpm-auth-panel {
    display: grid;
    width: 100%;
    max-width: 440px;
    gap: 28px;
    margin: 0 auto;
    padding-top: 54px;
}

.wpm-auth-register-page .wpm-auth-panel {
    padding-top: 24px;
}

.wpm-auth-utility-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: min(100%, 520px);
    min-height: 48px;
    margin: 0 auto;
}

.wpm-auth-register-page .wpm-auth-utility-row .wpm-auth-back { position: static; }
.wpm-auth-register-page .wpm-auth-utility-row .wpm-alert {
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin: 0;
    box-sizing: border-box;
}

.wpm-auth-logo {
    display: block;
    width: min(78%, 290px);
    height: auto;
    margin: 0 auto 4px;
    object-fit: contain;
}

.wpm-auth-heading {
    display: grid;
    gap: 12px;
    text-align: center;
}

.wpm-auth-heading h2 {
    margin: 0;
    color: #101010;
    font-size: clamp(30px, 7vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.wpm-auth-heading p {
    max-width: 390px;
    margin: 0 auto;
    color: #343434;
    font-size: 17px;
    line-height: 1.5;
}

.wpm-auth-back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f7f7f7;
    color: #111;
    font-size: 30px;
    line-height: 1;
    text-decoration: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.wpm-auth-back:hover,
.wpm-auth-back:focus-visible {
    background: #eeeeee;
    color: #111;
    outline: 3px solid rgba(89, 68, 242, 0.2);
}

.wpm-auth-form {
    gap: 18px;
}

.wpm-auth-form label {
    color: #343434;
    font-size: 15px;
    font-weight: 700;
}

.wpm-auth-form input,
.wpm-auth-form textarea,
.wpm-auth-form select,
.wpm-auth-email-form > input {
    min-height: 58px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    padding: 14px 18px;
    background: #fff;
    color: #111;
    font-size: 17px;
    box-shadow: none;
}

.wpm-auth-form textarea {
    min-height: 108px;
}

.wpm-auth-form input:focus,
.wpm-auth-form textarea:focus,
.wpm-auth-form select:focus,
.wpm-auth-email-form > input:focus {
    border-color: #5b5b5b;
    outline: 2px solid rgba(16, 24, 42, 0.12);
}

.wpm-auth-form input[readonly] {
    background: #f5f5f5;
    color: #555;
}

.wpm-auth-form > button,
.wpm-auth-email-form > button {
    min-height: 58px;
    border-radius: 999px;
    background: #111;
    font-size: 17px;
}

.wpm-auth-form > button:disabled,
.wpm-auth-email-form > button:disabled {
    cursor: not-allowed;
    background: #e5e5e5;
    color: #b6b6b6;
}

.wpm-auth-footnote {
    margin: -6px 0 0;
    color: #707070;
    font-size: 14px;
    text-align: center;
}

.wpm-guest-entry {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.wpm-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.wpm-event-quotation-shell .wpm-price-note {
    color: #c62828;
    font-weight: 700;
}

.wpm-event-quotation-shell input[type="range"] {
    width: 100%;
    accent-color: #5b43f5;
}

.wpm-event-carpet-options {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.wpm-carpet-warning {
    border: 1px solid #f4b4b4;
    border-radius: 12px;
    padding: 12px;
    background: #fff1f1;
    color: #a01818 !important;
    font-weight: 800 !important;
}

.wpm-event-charge-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    align-items: start;
    gap: 12px;
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.wpm-event-exhibition-fields {
    display: grid;
    gap: 12px;
}

.wpm-event-exhibition-fields[hidden] {
    display: none !important;
}

.wpm-event-charge-row > label,
.wpm-event-charge-row > fieldset {
    min-width: 0;
}

.wpm-event-charge-amount {
    display: grid;
    justify-items: end;
    gap: 3px;
    text-align: right;
}

.wpm-event-charge-amount strong {
    color: #5138e5;
    font-size: 15px;
    line-height: 1.25;
}

.wpm-event-charge-amount small {
    max-width: 130px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 420px) {
    .wpm-event-charge-row {
        grid-template-columns: minmax(0, 1fr) 108px;
        padding: 12px;
    }
}

.wpm-event-quotation-shell {
    width: 100%;
    padding-inline: clamp(14px, 4vw, 24px);
    box-sizing: border-box;
}

.wpm-event-quotation-shell > .wpm-form {
    width: 100%;
    min-width: 0;
}

.wpm-quotation-total {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 16px;
    background: #f3f0ff;
    color: #17122b;
}

.wpm-quotation-total strong {
    font-size: 1.6rem;
    color: #5138e5;
}

.wpm-status-new { color: #7a4a00; background: #fff3cf; }
.wpm-status-in_progress { color: #174ea6; background: #e8f0fe; }
.wpm-status-closed { color: #3c4043; background: #eceff1; }
.wpm-status-kiv { color: #7a4a00; background: #fff3cf; }
.wpm-status-completed { color: #176b3a; background: #e4f7eb; }

.wpm-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 620px) {
    .wpm-two-column { grid-template-columns: 1fr; }
}

.wpm-account-type-list {
    display: grid;
    gap: 14px;
}

.wpm-account-type-main,
.wpm-account-type-external {
    display: grid;
    gap: 14px;
}

.wpm-account-type-main > * + *,
.wpm-account-type-external > * + * {
    margin-top: 0;
}

.wpm-account-type-main[hidden],
.wpm-account-type-external[hidden] {
    display: none !important;
}

.wpm-account-type-list form {
    margin: 0 !important;
    padding: 0 !important;
}

.wpm-app .wpm-auth-page .wpm-account-type-button,
.wpm-app .wpm-auth-page button.wpm-account-type-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px !important;
    border: 1px solid #252525 !important;
    border-radius: 16px !important;
    padding: 13px 18px !important;
    margin: 0 !important;
    background: #111 !important;
    background-image: none !important;
    color: #fff !important;
    font: inherit;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.wpm-app .wpm-auth-page .wpm-account-type-button span {
    text-decoration: none !important;
    border-bottom: 0 !important;
    color: inherit !important;
    font: inherit !important;
    text-shadow: none !important;
}

.wpm-auth-page .wpm-account-type-back,
.wpm-auth-page button.wpm-account-type-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: #f2f3f5 !important;
    color: #111 !important;
    font: inherit;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.wpm-auth-resend-form {
    justify-content: center;
    margin-top: -8px;
}

.wpm-auth-resend-form .wpm-link-button {
    border: 0;
    background: transparent;
    color: #6d28d9;
    font-weight: 800;
    text-decoration: underline;
}

.wpm-app .wpm-auth-page .wpm-account-type-button:hover,
.wpm-app .wpm-auth-page .wpm-account-type-button:focus-visible {
    background: #252525 !important;
    color: #fff !important;
    outline: 3px solid rgba(17, 17, 17, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15,23,42,.16) !important;
}

.wpm-account-type-badge {
    justify-self: center;
    border-radius: 999px;
    padding: 7px 14px;
    background: #f1efff;
    color: #5944f2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wpm-auth-page .wpm-alert {
    position: relative;
    z-index: 3;
    max-width: 440px;
    margin-right: auto;
    margin-left: auto;
}

.wpm-auth-register-page .wpm-alert {
    min-height: 48px;
}

.wpm-auth-page .wpm-registration-company-fields,
.wpm-auth-page .wpm-registration-tenant-fields {
    display: grid;
    gap: 18px;
}

@media (max-width: 420px) {
    .wpm-auth-page {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wpm-auth-panel,
    .wpm-auth-register-page .wpm-auth-panel {
        gap: 24px;
        padding-top: 48px;
    }

    .wpm-auth-logo {
        width: min(86%, 270px);
    }

    .wpm-auth-heading h2 {
        font-size: 31px;
    }
}

.wpm-work-permit-shell {
    margin-bottom: 18px;
}

.wpm-work-permit-shell > p {
    margin: 0 0 14px;
}

.wpm-work-permit-shell > h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.2;
    color: #101827;
}

.wpm-form-section {
    display: grid;
    gap: 12px;
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcff;
}

.wpm-form-section h3 {
    margin: 0;
    color: #101827;
    font-size: 18px;
    line-height: 1.2;
}

.wpm-section-title {
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px solid #e4e8f1;
    color: #101827;
    font-size: 16px;
    line-height: 1.2;
}

.wpm-registration-company-fields .wpm-section-title {
    margin-top: 10px;
    padding-top: 14px;
    font-size: 22px;
    font-weight: 900;
}

.wpm-email-verify-card {
    display: grid;
    gap: 16px;
}

.wpm-email-verify-form {
    margin-top: 2px;
}

.wpm-form-section p {
    margin: 0;
    color: var(--wpm-muted);
    font-weight: 500;
}

.wpm-fit-out-other[hidden],
.wpm-sprinkler-head-count[hidden],
.wpm-registration-company-fields[hidden],
.wpm-registration-tenant-fields[hidden],
.wpm-registration-ref-field[hidden],
.wpm-business-type-other[hidden],
.wpm-profile-business-other[hidden],
.wpm-shoplot-step[hidden],
.wpm-permit-step[hidden],
.wpm-shoplot-business-other[hidden],
.wpm-shoplot-electricity-other[hidden],
.wpm-full-permit-only[hidden],
.wpm-shoplot-back[hidden],
.wpm-shoplot-next[hidden],
.wpm-shoplot-submit[hidden] {
    display: none !important;
}

.wpm-permit-back[hidden],
.wpm-permit-next[hidden],
.wpm-permit-submit[hidden] {
    display: none !important;
}

.wpm-work-permit-form.is-simple-permit .wpm-full-permit-only {
    display: none !important;
}

.wpm-shoplot-shell {
    margin-bottom: 18px;
}

.wpm-shoplot-shell > p {
    margin: 0 0 14px;
}

.wpm-shoplot-shell > h2 {
    margin: 0 0 14px;
    color: #101827;
    font-size: 25px;
    line-height: 1.2;
}

.wpm-quotation-form .wpm-form-section,
.wpm-work-permit-form .wpm-form-section {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.wpm-guest-shoplot-shell {
    width: 100%;
    padding-inline: clamp(14px, 4vw, 24px);
    box-sizing: border-box;
}

.wpm-guest-shoplot-shell > .wpm-form {
    width: 100%;
    min-width: 0;
}

.wpm-guest-shoplot-shell .wpm-quotation-form .wpm-form-section {
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcff;
}

.wpm-shoplot-progress {
    display: none;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #101827;
    color: #fff;
}

.wpm-shoplot-step-count {
    color: #93bbff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.wpm-shoplot-step-title {
    font-size: 22px;
    line-height: 1.2;
}

.wpm-shoplot-step,
.wpm-permit-step {
    display: grid;
    gap: 14px;
}

.wpm-shoplot-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.wpm-shoplot-nav button {
    justify-content: center;
    width: 100%;
}

.wpm-shoplot-submit {
    grid-column: 2;
}

.wpm-check-grid {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.wpm-check-option {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    font-weight: 700;
}

.wpm-charge-required {
    cursor: default;
}

.wpm-charge-required input:disabled {
    opacity: 1;
    accent-color: #5d3df5;
    cursor: default;
}

.wpm-apply-notice-panel {
    margin-top: 18px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    scroll-margin-top: 24px;
}

.wpm-apply-notice-panel[hidden],
.wpm-apply-notice-content[hidden] {
    display: none !important;
}

.wpm-apply-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wpm-apply-notice-head h2,
.wpm-apply-notice-content h3,
.wpm-apply-notice-content h4 {
    margin: 0;
    color: #1f2937;
}

.wpm-apply-notice-content {
    color: #273244;
    font-size: 16px;
    line-height: 1.6;
}

.wpm-apply-notice-content h3 {
    margin-bottom: 12px;
    color: #b42318;
}

.wpm-apply-notice-content h4 {
    margin: 18px 0 8px;
    color: #5d3df5;
}

.wpm-apply-notice-content p {
    margin: 0 0 10px;
}

.wpm-apply-notice-content ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
}

.wpm-apply-notice-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font-size: 26px;
    line-height: 1;
    text-align: center;
}

.wpm-apply-notice-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.wpm-apply-notice-ok {
    min-width: 110px;
    justify-content: center;
    text-align: center;
}

.wpm-insurance-option {
    align-items: flex-start;
}

.wpm-insurance-option span {
    display: grid;
    gap: 4px;
}

.wpm-insurance-option small {
    color: var(--wpm-muted);
    font-weight: 600;
    line-height: 1.35;
}

.wpm-insurance-upload-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4e8f1;
}

.wpm-upload-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wpm-upload-card {
    display: grid !important;
    gap: 10px !important;
    align-content: start;
    min-height: 112px;
    border: 1px solid #e4e8f1;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.wpm-upload-card input[type="file"] {
    min-height: auto;
    padding: 9px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
}

.wpm-payment-note,
.wpm-becom-monthly {
    border: 1px solid #e4e8f1;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    color: #3f4858;
    font-weight: 700;
    line-height: 1.45;
}

.wpm-becom-guide {
    display: grid;
    gap: 18px;
    margin-top: 16px;
    padding: 24px;
    border-radius: 18px;
    background: radial-gradient(circle at 70% 0%, rgba(24, 77, 170, 0.42), transparent 32%), #020714;
    color: #fff;
    overflow: hidden;
}

.wpm-becom-guide[hidden],
.wpm-becom-form-wrap[hidden] {
    display: none !important;
}

.wpm-becom-guide-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.wpm-becom-guide-top div {
    display: grid;
    gap: 8px;
}

.wpm-becom-guide-top strong {
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: 0.08em;
}

.wpm-becom-guide-top span {
    display: inline-flex;
    width: max-content;
    padding: 4px 10px;
    background: #fff;
    color: #111827;
    font-weight: 900;
}

.wpm-becom-guide-top em {
    font-style: normal;
    font-size: 24px;
    letter-spacing: 0.04em;
    text-align: right;
}

.wpm-becom-guide h3 {
    margin: 22px 0 0;
    color: #ff353d;
    font-size: 44px;
    line-height: 1;
    text-align: center;
    font-weight: 500;
}

.wpm-becom-guide p {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.wpm-becom-guide-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.wpm-becom-guide-line span {
    height: 2px;
    background: #fff;
}

.wpm-becom-guide ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 18px;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
}

.wpm-becom-guide li b {
    display: inline-flex;
    margin-right: 8px;
    padding: 2px 8px;
    background: #fff;
    color: #111827;
    font-size: 12px;
}

.wpm-becom-guide-close {
    width: 100%;
    margin-top: 6px;
}

.wpm-application-type {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    background: #eef2ff;
    color: #5944f2;
    font-size: 12px;
    font-weight: 900;
}

.wpm-signature-pad {
    width: 100%;
    height: 170px;
    border: 1px solid #d9deea;
    border-radius: 14px;
    background: #fff;
    touch-action: none;
}

.wpm-signature-actions {
    display: flex;
    justify-content: flex-end;
}

.wpm-signature-actions #wpm-clear-signature {
    width: auto;
    min-height: 0;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 13px;
}

.wpm-signature-consent {
    margin: 0;
}

.wpm-signature-preview {
    margin: 0;
}

.wpm-signature-preview figcaption {
    margin-bottom: 8px;
    font-weight: 800;
}

.wpm-signature-preview img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fff;
}

.wpm-terms-step {
    display: grid;
    gap: 14px;
}

.wpm-terms-intro {
    margin: 0;
    color: #5f6b7c;
    line-height: 1.55;
}

.wpm-appendix-inline {
    display: grid;
    gap: 12px;
}

.wpm-appendix-card {
    overflow: hidden;
    border: 1px solid #dce2ed;
    border-radius: 14px;
    background: #fff;
}

.wpm-appendix-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    color: #101827;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.wpm-appendix-card summary::-webkit-details-marker {
    display: none;
}

.wpm-appendix-card summary::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-left: 0;
    border-right: 2px solid #637083;
    border-bottom: 2px solid #637083;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.wpm-appendix-card[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.wpm-appendix-confirm-status {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff3d6;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 800;
}

.wpm-appendix-confirm-status.is-confirmed {
    background: #e5f7ed;
    color: #18794e;
}

.wpm-appendix-content {
    padding: 4px 16px 16px;
    border-top: 1px solid #edf0f5;
    color: #283447;
    font-size: 14px;
    line-height: 1.6;
}

.wpm-appendix-content p {
    margin: 12px 0 0;
}

.wpm-form .wpm-appendix-confirmation,
.wpm-form .wpm-terms-confirmation {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f6f8fc;
}

.wpm-terms-progress {
    padding: 14px 16px;
    border-left: 4px solid #dc8a00;
    border-radius: 10px;
    background: #fff8e8;
    color: #704900;
}

.wpm-terms-progress[hidden] {
    display: none !important;
}

.wpm-terms-progress strong {
    display: block;
    margin-bottom: 6px;
}

.wpm-terms-incomplete-list {
    margin: 0;
    padding-left: 20px;
}

.wpm-permit-submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wpm-worker-rows {
    display: grid;
    gap: 12px;
}

.wpm-setting-services {
    margin-bottom: 22px;
}

.wpm-setting-mode-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.wpm-setting-mode-tabs[hidden],
.wpm-setting-mode-back[hidden] {
    display: none !important;
}

.wpm-setting-mode-button {
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f6f7fb;
    color: #64748b;
    font-weight: 900;
    cursor: pointer;
}

.wpm-setting-mode-button.is-active {
    border-color: #5944f2;
    background: #5944f2;
    color: #fff;
}

.wpm-setting-mode-panel[hidden] {
    display: none !important;
}

.wpm-profile-qr-card {
    display: grid;
    grid-template-columns: 1fr 126px;
    gap: 16px;
    align-items: center;
}

.wpm-profile-qr-card h2 {
    font-size: 20px;
}

.wpm-profile-qr-card img {
    width: 126px;
    height: 126px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-profile-qr-card small {
    display: block;
    margin-top: 4px;
    color: #7f8898;
}

.wpm-profile-qr-card p {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef2ff;
    color: #5944f2;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.wpm-setting-services h2 {
    margin: 0 0 14px;
    color: #96a0b2;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wpm-setting-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wpm-setting-service-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 150px;
    border: 1px solid #e4e8f1;
    border-radius: 22px;
    padding: 18px;
    background: #fff;
    color: #101827;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.wpm-setting-service-card span:first-child {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-weight: 900;
}

.wpm-setting-service-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-setting-service-card strong {
    font-size: 20px;
    line-height: 1.15;
}

.wpm-setting-service-card small {
    color: #7f8898;
    font-weight: 700;
}

.wpm-setting-service-card,
.wpm-setting-service-card:link,
.wpm-setting-service-card:visited,
.wpm-setting-service-card:hover,
.wpm-setting-service-card:focus,
.wpm-setting-service-card * {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.wpm-container-storage-shell { max-width: 820px; margin-inline: auto; }
.wpm-container-storage-form .wpm-form-section { display: grid; gap: 16px; }
.wpm-container-storage-form .wpm-shoplot-step > .wpm-form-section {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-container-schedule-list,
.wpm-container-datetime-field {
    display: grid;
    gap: 16px;
}

.wpm-container-datetime-field { gap: 8px; }

.wpm-container-storage-form .wpm-datetime-picker {
    grid-template-columns: minmax(145px, 1fr) minmax(250px, 0.72fr);
    align-items: start;
    gap: 10px;
}

/* Theme-independent form controls: keep select text vertically visible. */
.wpm-app .wpm-form select,
.wpm-staff-dashboard .wpm-form select,
.wpm-staff-app .wpm-form select {
    box-sizing: border-box !important;
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0;
    border: 1px solid #d7deea !important;
    border-radius: 12px !important;
    padding: 0 44px 0 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    color: #101828 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
}

.wpm-shop-closure-form .wpm-shop-closure-schedule {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.wpm-shop-closure-form .wpm-shop-closure-schedule[hidden] { display: none !important; }
.wpm-shop-closure-form input[readonly] { background: #f7f8fb !important; color: #475467; }

@media (max-width: 380px) {
    .wpm-container-storage-form .wpm-datetime-picker { grid-template-columns: 1fr; }
}

.wpm-setting-card {
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
}

.wpm-setting-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    color: #101827;
    font-size: 20px;
    font-weight: 900;
}

.wpm-setting-card > summary::-webkit-details-marker,
.wpm-manage-card > summary::-webkit-details-marker {
    display: none;
}

.wpm-setting-card > summary::after,
.wpm-manage-card > summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #a5adbd;
    border-bottom: 2px solid #a5adbd;
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.wpm-setting-card[open] > summary::after,
.wpm-manage-card[open] > summary::after {
    transform: rotate(225deg);
}

.wpm-setting-card > form,
.wpm-setting-card > p {
    padding: 0 20px 20px;
}

.wpm-worker-row {
    display: grid;
    gap: 10px;
    border: 1px solid #e4e8f1;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.wpm-worker-empty {
    border: 1px dashed #cfd6e4;
    border-radius: 12px;
    padding: 14px;
    color: var(--wpm-muted);
    background: #fff;
}

.wpm-worker-empty a {
    color: #5944f2;
    font-weight: 800;
}

.wpm-form .wpm-worker-row-apply {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
}

.wpm-worker-info {
    display: grid;
    gap: 4px;
    min-width: 0;
    position: relative;
    padding-left: 64px;
}

.wpm-worker-row-apply .wpm-worker-info {
    padding-left: 0;
}

.wpm-worker-row-apply .wpm-worker-info::before {
    content: none;
    display: none !important;
    position: absolute;
    left: 0;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    transform: translateY(-50%);
    background: #f1f4fa;
    color: #64748b;
    font-weight: 900;
}

.wpm-worker-info small {
    color: var(--wpm-muted);
    font-weight: 700;
}

.wpm-vehicle-photo-thumb {
    display: block;
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e4e8f1;
}

.wpm-manage-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.wpm-manage-card {
    padding: 0;
    overflow: hidden;
}

.wpm-manage-card > summary {
    padding: 12px;
}

.wpm-manage-details {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
    color: #3f4858;
}

.wpm-manage-details p {
    margin: 0;
    line-height: 1.45;
}

.wpm-manage-details .wpm-manage-edit {
    justify-self: start;
}

.wpm-manage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpm-manage-fields {
    display: grid;
    gap: 10px;
}

.wpm-manage-card.is-pending-delete {
    border-color: #ef9a95;
    background: #fff3f2;
    opacity: 0.72;
}

.wpm-manage-card.is-pending-delete::before {
    content: "Pending deletion - click Save to confirm";
    color: #9c1c16;
    font-size: 13px;
    font-weight: 800;
}

.wpm-manage-card input[readonly] {
    border-color: #e6e9f0;
    background: #f6f7fa;
    color: #3f4858;
    cursor: default;
}

.wpm-existing-vehicle-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    border-radius: 8px;
}

.wpm-manage-list-form .wpm-action-row [hidden],
.wpm-manage-actions [hidden],
.wpm-vehicle-photo-edit[hidden] {
    display: none !important;
}

.wpm-manage-actions button,
.wpm-manage-edit,
.wpm-vehicle-remove {
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    font-weight: 800;
    cursor: pointer;
}

.wpm-manage-edit {
    background: #e9ecf5;
    color: #101827;
}

.wpm-manage-edit-panel {
    display: none;
    gap: 10px;
}

.wpm-manage-edit-panel.is-open {
    display: grid;
}

#wpm-setting-workers .wpm-manage-fields input[type="text"],
#wpm-setting-vehicles .wpm-manage-fields input[type="text"] {
    border: 1px solid #d9deea;
    border-radius: 12px;
    padding: 12px 13px;
    background: #fff;
}

#wpm-setting-workers .wpm-manage-fields input[type="text"][readonly],
#wpm-setting-vehicles .wpm-manage-fields input[type="text"][readonly] {
    border-color: #e6e9f0;
    background: #f6f7fa;
}

#wpm-setting-workers .wpm-manage-fields input[type="text"]:focus,
#wpm-setting-vehicles .wpm-manage-fields input[type="text"]:focus {
    outline: 2px solid rgba(89, 68, 242, 0.16);
    border-color: #5944f2;
}

.wpm-vehicle-identity {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: end;
    gap: 14px;
}

.wpm-vehicle-identity > label {
    min-width: 0;
}

.wpm-vehicle-photo-placeholder {
    display: grid;
    place-items: center;
    width: 78px;
    height: 58px;
    border: 1px solid #e4e8f1;
    border-radius: 8px;
    background: #f6f7fa;
    color: #8b95a7;
    box-sizing: border-box;
}

.wpm-vehicle-photo-placeholder svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-manage-actions .wpm-icon-action {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    background: #111 !important;
    color: #fff;
}

.wpm-manage-actions .wpm-icon-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-manage-actions .wpm-icon-action:hover,
.wpm-manage-actions .wpm-icon-action:focus-visible {
    background: #333 !important;
}

.wpm-shop-source {
    display: grid;
    gap: 14px;
    margin: 0;
    border: 0;
    padding: 0;
}

.wpm-shop-source > legend {
    margin-bottom: 8px;
    color: #101827;
    font-weight: 800;
}

.wpm-shop-source-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpm-shop-source-options .wpm-check-option {
    flex: 1 1 170px;
    margin: 0;
}

.wpm-shop-source-panel[hidden] {
    display: none !important;
}

.wpm-contact-directory {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.wpm-contact-department {
    border-bottom: 1px solid #edf0f5;
}

.wpm-contact-department > summary {
    position: relative;
    padding: 13px 30px 13px 26px;
    color: #101827;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.wpm-contact-department > summary::-webkit-details-marker {
    display: none;
}

.wpm-contact-department > summary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #a5adbd;
    border-bottom: 2px solid #a5adbd;
    transform: translateY(-65%) rotate(45deg);
}

.wpm-contact-department[open] > summary::before {
    transform: translateY(-35%) rotate(225deg);
}

.wpm-contact-numbers {
    display: grid;
    gap: 9px;
    padding: 0 0 14px 26px;
}

.wpm-contact-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpm-contact-phone {
    flex: 1 1 auto;
    color: #344054;
    font-weight: 700;
    text-decoration: none;
}

.wpm-contact-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.wpm-contact-actions a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.wpm-contact-actions a:hover,
.wpm-contact-actions a:focus-visible {
    background: #333;
}

.wpm-contact-actions svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-contact-form {
    border-bottom: 1px solid #edf0f5;
}

.wpm-setting-about {
    display: grid;
    gap: 6px;
    padding: 0 20px 22px;
}

.wpm-report-bug {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    margin-top: 12px;
    text-decoration: none !important;
}

.wpm-report-bug svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-setting-about strong {
    color: #101827;
    font-size: 18px;
}

.wpm-setting-about small {
    color: #7f8898;
    font-size: 12px;
}

@media (max-width: 520px) {
    .wpm-contact-number {
        align-items: center;
        flex-direction: row;
    }

    .wpm-contact-actions {
        justify-content: flex-end;
    }
}

.wpm-worker-participate {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #3f4858;
    font-size: 13px;
    font-weight: 800;
}

.wpm-worker-participate input {
    width: 18px !important;
    height: 18px;
    border-radius: 4px;
    accent-color: #5944f2;
}

.wpm-form .wpm-worker-participate input {
    width: 18px !important;
}

.wpm-worker-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
}

.wpm-worker-remove {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #feeceb;
    color: #9c1c16;
    font-weight: 800;
}

.wpm-vehicle-remove {
    background: #feeceb;
    color: #9c1c16;
}

.wpm-consent {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    border: 1px solid #e4e8f1;
    border-radius: 14px;
    padding: 14px;
    background: #fbfcff;
    line-height: 1.45;
}

.wpm-consent input {
    width: auto;
    margin-top: 4px;
}

.wpm-search-results {
    display: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-top: 12px;
}

.wpm-search-results button {
    display: block;
    width: 100%;
    text-align: left;
}

.wpm-search-results .wpm-shop-result-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    border: 1px solid #e2e7f0;
    border-radius: 20px;
    padding: 14px;
    background: #fff;
    color: #101827;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
}

.wpm-shop-unit {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f1f4fa;
    color: #64748b;
    font-weight: 900;
}

.wpm-shop-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wpm-shop-copy strong {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpm-shop-copy small {
    color: #8a94a6;
    font-size: 14px;
    font-weight: 700;
}

.wpm-shop-check {
    width: 32px;
    height: 32px;
    border: 2px solid #d7dde8;
    border-radius: 50%;
}

.wpm-permit-share-actions {
    margin-top: 18px;
}

.wpm-alert {
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.wpm-alert-success {
    background: #e8f8ef;
    color: #11643b;
}

.wpm-alert-error {
    background: #feeceb;
    color: #9c1c16;
}

.wpm-alert-warning {
    border: 1px solid #f3c969;
    background: #fff7df;
    color: #7a4b00;
}

.wpm-permit-list {
    display: grid;
    gap: 10px;
}

.wpm-permit-row {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid #edf0f5;
    padding: 10px 34px 10px 0;
    position: relative;
}

.wpm-task-delete {
    position: absolute;
    top: 8px;
    right: 0;
    margin: 0;
}

.wpm-task-delete button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #eef1f7;
    color: #6b7280;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
}

.wpm-permit-shop-name {
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.wpm-permit-row span {
    color: var(--wpm-muted);
}

.wpm-permit-row small {
    color: #5f6878;
}

.wpm-permit-row em,
.wpm-status-pending,
.wpm-status-approved,
.wpm-status-rejected {
    font-style: normal;
    font-weight: 800;
}

.wpm-status-pending {
    color: #a96e00;
}

.wpm-status-approved {
    color: #078348;
}

.wpm-status-rejected {
    color: #b3261e;
}

.wpm-notice-list {
    display: grid;
    gap: 18px;
}

.wpm-notice-card small {
    display: block;
    margin-top: 12px;
    color: var(--wpm-muted);
    font-weight: 700;
}
.wpm-notice-card { position: relative; }
.wpm-notice-dismiss-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.wpm-notice-dismiss { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef0f5; color: #26324a; font-size: 24px; line-height: 1; cursor: pointer; }
.wpm-scan-login-choices { display: grid; gap: 12px; margin-top: 18px; }
.wpm-customer-notices-admin { display: grid; gap: 18px; }
.wpm-customer-notice-preview { max-width: 180px; max-height: 140px; border-radius: 12px; object-fit: cover; }
.wpm-customer-notice-list { display: grid; gap: 10px; margin-top: 14px; }
.wpm-customer-notice-list > article { display: flex; align-items: center; gap: 14px; border: 1px solid #e4e8f1; border-radius: 14px; padding: 12px; }
.wpm-customer-notice-list > article > div:first-child { display: grid; flex: 1; gap: 3px; }
.wpm-customer-notice-list em { color: #5944f2; font-style: normal; font-weight: 700; }
.wpm-customer-notice-customer-picker { display: grid; gap: 10px; }
.wpm-customer-notice-search-status { margin: 0; color: #64748b; font-size: 13px; font-weight: 700; }
.wpm-customer-notice-results { display: grid; gap: 8px; }
.wpm-form .wpm-customer-notice-result { display: grid; width: 100%; gap: 3px; border: 1px solid #dce3ef; border-radius: 14px; padding: 12px 14px; background: #fff; color: #101828; text-align: left; }
.wpm-form .wpm-customer-notice-result:hover,
.wpm-form .wpm-customer-notice-result:focus-visible { border-color: #5944f2; background: #f5f3ff; outline: 2px solid transparent; }
.wpm-customer-notice-result strong,
.wpm-customer-notice-result span,
.wpm-customer-notice-result small { display: block; overflow-wrap: anywhere; }
.wpm-customer-notice-result span,
.wpm-customer-notice-result small { color: #64748b; }
.wpm-customer-notice-selected { display: grid; gap: 4px; border: 1px solid #a7f3d0; border-radius: 14px; padding: 14px; background: #ecfdf5; color: #065f46; }
.wpm-customer-notice-selected[hidden] { display: none !important; }
.wpm-customer-notice-selected span,
.wpm-customer-notice-selected small { overflow-wrap: anywhere; color: #047857; }

.wpm-notice-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.wpm-notice-priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.wpm-notice-priority::before {
    content: "!";
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
}

.wpm-priority-normal {
    color: #2563eb;
    background: #eaf2ff;
}

.wpm-priority-normal::before {
    content: "i";
    background: #2563eb;
}

.wpm-priority-important {
    color: #b42318;
    background: #fff0ee;
}

.wpm-priority-important::before {
    background: #d92d20;
}

.wpm-priority-reminder {
    color: #9a6700;
    background: #fff7dc;
}

.wpm-priority-reminder::before {
    content: "!";
    background: #d6a100;
}

.wpm-profile {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.wpm-profile span {
    color: var(--wpm-muted);
}

.wpm-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    max-width: 520px;
    margin: 0 auto;
    background: var(--wpm-navy);
    padding: 4px 4px calc(8px + env(safe-area-inset-bottom));
    color: #aeb5c6;
    min-height: calc(var(--wpm-nav-height) + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 34px rgba(15, 23, 42, 0.14);
}

.wpm-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
    min-height: 55px;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.wpm-nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: currentColor;
    box-sizing: border-box;
}

.wpm-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-nav-link-dashboard {
    color: #d7ccff;
    transform: none;
}

.wpm-nav-link-dashboard::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 63px;
    height: 63px;
    border-radius: 50%;
    background: #151b33;
    transform: translateX(-50%);
    z-index: -1;
}

.wpm-nav-item.is-active {
    color: #fff;
}

.wpm-nav-link-dashboard .wpm-nav-icon {
    position: absolute;
    top: -14px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6a58ff 0%, #5038e7 100%);
    color: #fff;
    border: 4px solid #6a58ff;
    box-shadow:
        0 0 0 7px #171d3a,
        0 0 18px rgba(101, 76, 255, 0.46),
        0 8px 16px rgba(40, 22, 150, 0.3);
    transform: translateX(-50%);
}

.wpm-nav-link-dashboard .wpm-nav-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 5.1;
}

.wpm-nav-link-dashboard > span:last-child {
    margin-top: 0;
    font-size: inherit;
    line-height: 1.1;
}

.wpm-small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 10px;
    background: #5b42f3;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.wpm-permit-view h2,
.wpm-scan-app h2 {
    margin-top: 0;
}

.wpm-scan-app,
.wpm-scan-app *,
.wpm-scan-app *::before,
.wpm-scan-app *::after {
    box-sizing: border-box;
}

.wpm-scan-app {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto;
    padding: 18px 14px 28px;
    background: #f4f6fb;
    overflow: hidden;
}

.wpm-scan-app .wpm-security-shell {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.wpm-scan-topline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin: 0 0 18px;
}

.wpm-scan-topline span {
    min-width: 0;
    color: #6f7b90;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpm-scan-topline .wpm-logout {
    flex: 0 0 auto;
    margin: 0;
}

.wpm-scan-topline .wpm-logout button {
    min-height: 34px;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: #e9edf5;
    color: #101828;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: none;
}

.wpm-security-shell .wpm-scan-header {
    align-items: center;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 0;
    border-radius: 22px;
    background: #10182b;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    box-sizing: border-box;
}

.wpm-scan-intro {
    margin: 0 0 22px;
}

.wpm-scan-intro h2 {
    margin: 0 0 12px;
    color: #101828;
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.wpm-scan-intro p {
    max-width: 100%;
    margin: 0;
    color: #8b95a7;
    font-size: clamp(22px, 6.5vw, 31px);
    line-height: 1.35;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.wpm-security-shell .wpm-scan-header h2,
.wpm-security-shell .wpm-scan-header strong {
    color: #fff;
}

.wpm-security-shell .wpm-scan-header span {
    color: #89b7ff;
    font-weight: 800;
}

.wpm-security-shell .wpm-logout button {
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #eef2ff;
    color: #10182b;
}

.wpm-security-shell .wpm-scan-topline .wpm-logout button {
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #e9edf5;
    color: #101828;
    font-size: 12px;
}

.wpm-permit-meta {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    gap: 10px 14px;
    margin: 18px 0;
}

.wpm-permit-meta dt {
    color: #8b94a8;
    font-weight: 700;
}

.wpm-permit-meta dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.wpm-qr-box {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    background: #fff;
}

.wpm-qr-box img {
    width: 260px;
    max-width: 100%;
    height: auto;
}

.wpm-qr-box small {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #6b7280;
    text-align: center;
}

.wpm-copy-token {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #5b42f3;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.wpm-scan-result {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 22px;
    color: #fff;
    text-align: left;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.wpm-scan-ready {
    min-height: 126px;
    cursor: pointer;
}

.wpm-scan-result strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
}

.wpm-scan-result span {
    font-size: 15px;
    font-weight: 700;
}

.wpm-scan-green {
    background: #16a34a;
}

.wpm-scan-yellow {
    background: #f59e0b;
    color: #111827;
}

.wpm-scan-red {
    background: #dc2626;
}

.wpm-scan-grey {
    background: #6b7280;
}

.wpm-scanner video {
    display: block;
    width: 100%;
    max-width: 180px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: #0f172a;
    object-fit: cover;
}

.wpm-scanner .wpm-camera-preview video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: inherit;
}

.wpm-scanner video[hidden] {
    display: none !important;
}

.wpm-scanner canvas[hidden],
#wpm-scan-canvas[hidden] {
    display: none !important;
}

.wpm-scan-help {
    color: #6b7280;
    font-size: 14px;
}

#wpm-security-result {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

#wpm-security-result > .wpm-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

#wpm-security-result .wpm-tourism-checkin-primary {
    width: 100%;
    min-height: 78px;
    border: 0;
    border-radius: 20px;
    padding: 16px 20px;
    background: #07883f;
    color: #fff;
    font-size: clamp(21px, 5vw, 28px);
    font-weight: 950;
    letter-spacing: .035em;
    box-shadow: 0 14px 30px rgba(7, 136, 63, .28);
}

.wpm-scan-back-row {
    display: flex;
    justify-content: flex-start;
}

.wpm-scan-back-row button {
    min-width: 120px;
}

.wpm-security-shell .wpm-scanner {
    display: grid;
    gap: 18px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 18px;
    border: 0;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    box-sizing: border-box;
    overflow: hidden;
}

.wpm-security-shell .wpm-scanner .wpm-action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.wpm-security-shell .wpm-scanner .wpm-action-row button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 62px;
    padding: 10px 12px;
    border: 0;
    border-radius: 20px;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 900;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: none !important;
    box-shadow: none !important;
}

.wpm-security-shell .wpm-scanner .wpm-action-row #wpm-toggle-token {
    background: #e9edf5;
    color: #101828;
}

.wpm-security-shell .wpm-token-panel {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.wpm-security-task-dashboard {
    display: grid;
    margin-top: 24px;
    border: 1px solid #e4e8f1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.wpm-scan-tourism-panel {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e4e8f1;
    border-radius: 22px;
    background: #fff;
}

.wpm-scan-tourism-panel .wpm-tourism-queue-head {
    margin-top: 18px;
}

.wpm-security-tourism-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpm-security-tourism-total,
.wpm-security-tourism-group > header > span {
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    background: #eef2f7;
    color: #101828;
    font-weight: 900;
}

.wpm-security-tourism-groups {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.wpm-security-tourism-group {
    overflow: hidden;
    border: 1px solid #e4e8f1;
    border-radius: 16px;
    background: #f8fafc;
}

.wpm-security-tourism-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left: 5px solid #f59e0b;
    padding: 13px 14px;
    background: #fff;
}

.wpm-security-tourism-group.is-verified > header { border-left-color: #2563eb; }
.wpm-security-tourism-group.is-completed > header { border-left-color: #16a34a; }
.wpm-security-tourism-group h4 { margin: 0; font-size: 18px; }
.wpm-security-tourism-group header small { color: #667085; }
.wpm-security-tourism-group > .wpm-tourism-empty { margin: 0; padding: 14px; }
.wpm-security-tourism-list { display: grid; gap: 10px; padding: 12px; }

.wpm-security-tourism-card {
    display: grid;
    grid-template-columns: 58px minmax(120px, .7fr) minmax(220px, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid #e4e8f1;
    border-radius: 13px;
    padding: 11px;
    background: #fff;
}

.wpm-security-tourism-card > img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
}

.wpm-security-tourism-card-main { display: grid; gap: 3px; }
.wpm-security-tourism-card-main span { color: #667085; }
.wpm-security-tourism-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 9px; margin: 0; }
.wpm-security-tourism-card dt { color: #667085; }
.wpm-security-tourism-card dd { margin: 0; font-weight: 700; }

.wpm-security-status-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    border: 0;
    padding: 16px 18px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-size: 21px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.wpm-security-status-toggle:focus-visible {
    outline: 3px solid rgba(89, 68, 242, 0.32);
    outline-offset: -3px;
}

.wpm-security-status-count {
    display: grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 999px;
    background: #eef1f7;
    color: #344054;
    font-size: 14px;
}

.wpm-security-status-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #8b95a7;
    border-bottom: 2px solid #8b95a7;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.wpm-security-status-toggle[aria-expanded="true"] .wpm-security-status-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.wpm-security-status-content {
    display: grid;
    gap: 18px;
    border-top: 1px solid #e4e8f1;
    padding: 18px;
    background: #f8fafc;
}

.wpm-security-status-content[hidden] {
    display: none !important;
}

.wpm-security-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpm-security-task-header small {
    color: #7b8799;
    font-weight: 700;
}

.wpm-security-task-header button {
    flex: 0 0 auto;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
    cursor: pointer;
}

.wpm-security-task-group {
    display: grid;
    gap: 10px;
}

.wpm-security-task-group > h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-left: 5px solid #64748b;
    padding: 3px 0 3px 10px;
    color: #101828;
    font-size: 18px;
}

.wpm-security-task-group > h3 span {
    display: grid;
    place-items: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 999px;
    background: #e9edf5;
    font-size: 13px;
}

.wpm-task-yellow > h3 { border-left-color: #f59e0b; }
.wpm-task-green > h3 { border-left-color: #16a34a; }
.wpm-task-blue > h3 { border-left-color: #2563eb; }
.wpm-task-red > h3 { border-left-color: #dc2626; }

.wpm-security-task-grid {
    display: grid;
    gap: 10px;
}

.wpm-security-task-card,
.wpm-security-task-empty {
    margin: 0;
    border: 1px solid #e4e8f1;
    border-radius: 18px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.wpm-security-task-card {
    display: grid;
    gap: 6px;
}

.wpm-security-task-card > strong {
    overflow-wrap: anywhere;
    color: #101828;
    font-size: 16px;
}

.wpm-security-task-card > span,
.wpm-security-task-empty {
    color: #718096;
    font-weight: 700;
}

.wpm-security-task-card dl {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 7px 10px;
    margin: 8px 0 0;
    font-size: 13px;
}

.wpm-security-task-card dt {
    color: #8b95a7;
    font-weight: 700;
}

.wpm-security-task-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #101828;
    font-weight: 800;
}

.wpm-security-task-card a {
    color: #5944f2;
}

.wpm-camera-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 100% !important;
    max-width: 100% !important;
    height: min(72vw, 330px) !important;
    min-height: 260px;
    max-height: 330px;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #101828;
    color: #aeb8cf;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

.wpm-camera-preview video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0;
    margin: 0 !important;
    border-radius: inherit;
    object-fit: cover;
}

.wpm-camera-placeholder {
    display: grid;
    justify-items: center;
    gap: 20px;
    color: #b8c0d4;
    font-size: 20px;
    font-weight: 500;
}

.wpm-camera-preview.is-camera-on .wpm-camera-placeholder {
    display: none;
}

.wpm-camera-icon svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: #83b6ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.wpm-scan-instruction {
    margin: 0;
    color: #6b7280;
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wpm-staff-dashboard {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    overflow-x: hidden;
    overflow-x: clip;
}

.wpm-staff-dashboard.is-authenticated {
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding: 24px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-x: clip;
}

.wpm-staff-login-brand {
    margin: 0 0 7px;
    color: #10182b;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
}

.wpm-staff-dashboard .wpm-staff-shell {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-staff-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6eaf2;
}

.wpm-staff-shell .wpm-staff-header {
    align-items: center;
    margin: -4px 0 22px;
    padding: 22px 26px;
    border: 0;
    border-radius: 24px;
    background: #10182b;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.wpm-staff-header div {
    display: grid;
    gap: 4px;
}

.wpm-staff-header h2 {
    margin: 0;
}

.wpm-staff-shell .wpm-staff-header h2 {
    color: #fff;
    font-size: 26px;
    letter-spacing: 0;
}

.wpm-staff-header strong {
    color: #111827;
    font-size: 18px;
}

.wpm-staff-shell .wpm-staff-header strong {
    color: #fff;
}

.wpm-staff-header span {
    color: #6b7280;
}

.wpm-staff-shell .wpm-staff-header span {
    color: #89b7ff;
    font-weight: 800;
}

.wpm-staff-header .wpm-staff-header-actions {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.wpm-staff-shell .wpm-staff-password-toggle,
.wpm-staff-shell .wpm-logout button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: background-color 160ms ease, transform 160ms ease;
}

.wpm-staff-shell .wpm-staff-password-toggle:hover,
.wpm-staff-shell .wpm-logout button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.wpm-staff-shell .wpm-staff-password-toggle:focus-visible,
.wpm-staff-shell .wpm-logout button:focus-visible {
    outline: 3px solid #89b7ff;
    outline-offset: 3px;
}

.wpm-staff-shell .wpm-staff-header-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.wpm-staff-password-panel {
    margin: -8px 0 18px;
}

.wpm-staff-password-panel[hidden] {
    display: none !important;
}

.wpm-staff-password-panel .wpm-staff-panel-head p {
    margin: 5px 0 0;
    color: #64748b;
}

.wpm-staff-password-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.wpm-staff-password-form .wpm-action-row {
    grid-column: 1 / -1;
}

.wpm-staff-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.wpm-staff-section-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
    padding: 0;
    background: transparent;
}

.wpm-staff-shell .wpm-staff-section-nav {
    border-radius: 0;
    background: transparent;
}

.wpm-staff-shell .wpm-staff-section-nav a {
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    color: #526074;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    text-decoration: none !important;
}

.wpm-staff-main-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.wpm-staff-main-panel *,
.wpm-staff-shell * {
    min-width: 0;
    box-sizing: border-box;
}

.wpm-staff-main-panel > .wpm-staff-panel,
.wpm-staff-main-panel > .wpm-staff-overview,
.wpm-staff-main-panel > .wpm-staff-type-tabs,
.wpm-staff-main-panel > .wpm-staff-operations-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.wpm-staff-section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #647084;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wpm-staff-shell .wpm-staff-section-nav a:hover {
    border-color: #b8c6da;
    background: #fff;
    color: #10182b;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.wpm-staff-shell .wpm-staff-section-nav a:focus-visible {
    outline: 3px solid #89b7ff;
    outline-offset: 3px;
}

.wpm-staff-shell .wpm-staff-section-nav a.is-active,
.wpm-staff-shell .wpm-staff-section-nav a.is-active:hover {
    border-color: #10182b;
    background: #10182b;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.wpm-staff-section-nav:has(a:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpm-staff-filters label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-weight: 700;
}

.wpm-staff-filters input,
.wpm-staff-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.wpm-staff-filters .wpm-action-row {
    align-self: end;
}

.wpm-staff-status-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wpm-staff-shell .wpm-staff-status-filter {
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e9f2;
    border-radius: 20px;
    background: #f8fafc;
}

.wpm-staff-status-filter label {
    display: grid;
    gap: 6px;
    min-width: 220px;
    color: #111827;
    font-weight: 800;
}

.wpm-staff-status-filter select {
    min-height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.wpm-staff-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.wpm-staff-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}

.wpm-staff-overview-card {
    display: grid;
    gap: 14px;
    min-height: 112px;
    padding: 22px;
    border: 1px solid #e5e9f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.wpm-staff-overview-card span {
    color: #7b879b;
    font-size: 13px;
    font-weight: 900;
}

.wpm-staff-overview-card strong {
    color: #101828;
    font-size: 38px;
    line-height: 1;
}

.wpm-staff-overview-card.is-warning {
    background: #fff8e7;
}

.wpm-staff-overview-card.is-success {
    background: #ecfdf3;
}

.wpm-staff-overview-card.is-primary {
    background: #eef2ff;
}

.wpm-staff-overview-card.is-danger {
    background: #fee2e2;
}

.wpm-staff-stat {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #f8fafc;
}

.wpm-staff-stat span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.wpm-staff-stat strong {
    color: #111827;
    font-size: 30px;
    line-height: 1;
}

.wpm-staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wpm-staff-grid .wpm-staff-panel:first-child {
    grid-column: 1 / -1;
}

.wpm-staff-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e5e9f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.wpm-staff-panel h3 {
    margin: 0 0 14px;
    color: #111827;
}

.wpm-staff-manage-panel {
    display: grid;
    gap: 18px;
}

.wpm-staff-manage-panel > h3 {
    margin-bottom: 0;
}

.wpm-staff-manage-panel .wpm-staff-overview,
.wpm-staff-manage-panel .wpm-staff-type-tabs {
    margin-bottom: 0;
}

.wpm-staff-manage-list {
    min-width: 0;
    border: 1px solid #e5e9f2;
    border-radius: 22px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.wpm-staff-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.wpm-staff-panel-head h3 {
    margin: 0;
}

.wpm-staff-search-toggle {
    min-height: 40px;
    padding: 8px 18px;
}

.wpm-staff-search-panel {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #dce3ef;
    border-radius: 18px;
    background: #f8fafc;
}

.wpm-staff-search-panel[hidden] {
    display: none !important;
}

.wpm-staff-search-panel .wpm-staff-filters {
    margin-bottom: 0;
}

.wpm-trend-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 190px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wpm-trend-bar {
    display: grid;
    grid-template-rows: 130px auto auto;
    justify-items: center;
    gap: 6px;
    min-width: 44px;
    color: #6b7280;
    font-size: 12px;
}

.wpm-trend-bar span {
    align-self: end;
    width: 24px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #635bff, #2f6fed);
}

.wpm-trend-bar b {
    color: #111827;
}

.wpm-rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.wpm-rank-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eef1f6;
}

.wpm-rank-list li::marker {
    color: #6b7280;
    font-weight: 800;
}

.wpm-rank-list span {
    display: inline-block;
    max-width: calc(100% - 50px);
    color: #111827;
    font-weight: 800;
}

.wpm-rank-list strong {
    float: right;
    color: #635bff;
}

.wpm-staff-applications {
    margin-top: 14px;
}

.wpm-staff-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wpm-staff-table {
    width: 100%;
    min-width: 1240px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.wpm-staff-sort-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.wpm-staff-sort-controls > span:first-child {
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.wpm-staff-sort-controls .wpm-sort-link {
    padding: 7px 10px;
    border: 1px solid #e2e7f0;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.wpm-staff-application-cards {
    display: none;
}

.wpm-staff-application-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.wpm-staff-clickable-item {
    cursor: pointer;
}

.wpm-staff-application-row:hover td,
.wpm-staff-application-row:focus td {
    background: #f3f0ff !important;
}

.wpm-staff-application-row:focus {
    outline: none;
}

.wpm-staff-application-row:focus td:first-child {
    box-shadow: inset 3px 0 0 #5944f2;
}

.wpm-staff-application-card.wpm-staff-clickable-item {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.wpm-staff-application-card.wpm-staff-clickable-item:hover,
.wpm-staff-application-card.wpm-staff-clickable-item:focus {
    transform: translateY(-2px);
    border-color: #b9afff;
    outline: none;
    box-shadow: 0 14px 30px rgba(45, 32, 145, 0.14);
}

.wpm-staff-application-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.wpm-staff-application-card-head div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wpm-staff-application-card-head strong {
    color: #101828;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.wpm-staff-application-card-head span:not(.wpm-staff-card-unit) {
    color: #8b95a7;
    font-size: 13px;
    font-weight: 800;
}

.wpm-staff-card-unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eef2ff;
    color: #52627b;
    font-weight: 900;
}

.wpm-staff-application-card dl {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 7px 10px;
    margin: 0;
}

.wpm-staff-application-card dt {
    color: #6b7280;
    font-weight: 800;
}

.wpm-staff-application-card dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.wpm-staff-table th,
.wpm-staff-table td {
    padding: 10px 12px;
    border-bottom: 0;
    text-align: left;
    vertical-align: top;
}

.wpm-staff-table th {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
}

.wpm-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.wpm-sort-link:hover,
.wpm-sort-link:focus,
.wpm-sort-link.is-active {
    color: #5d3df5;
}

.wpm-sort-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
}

.wpm-sort-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.wpm-staff-table td {
    background: #f8fafc;
    color: #111827;
    font-weight: 700;
}

.wpm-staff-table tbody tr:nth-child(even) td {
    background: #fff;
}

.wpm-staff-table tbody td:first-child {
    border-radius: 16px 0 0 16px;
}

.wpm-staff-table tbody td:last-child {
    border-radius: 0 16px 16px 0;
}

.wpm-staff-detail {
    margin-bottom: 14px;
    border-color: #cdd6ea;
    background: #fff;
}

.wpm-staff-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wpm-staff-detail-head h3 {
    margin: 0;
}

.wpm-staff-detail .wpm-permit-meta {
    grid-template-columns: minmax(150px, 0.35fr) 1fr;
}

.wpm-staff-detail-list {
    margin: 0;
    padding-left: 18px;
}

.wpm-staff-note-form,
.wpm-staff-review-controls {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e0e6f2;
}

.wpm-staff-note-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpm-staff-note-head strong {
    color: #111827;
}

.wpm-staff-note-head .wpm-staff-note-edit {
    min-height: 34px;
    padding: 6px 14px;
}

.wpm-staff-note-form textarea[readonly] {
    border-color: #dce6f5;
    background: #f4f8ff;
    color: #175cd3;
    cursor: default;
}

.wpm-staff-note-form [hidden] {
    display: none !important;
}

.wpm-staff-note-form button {
    justify-self: start;
}

.wpm-internal-note-text {
    min-width: 150px;
    max-width: 280px;
    color: #175cd3 !important;
    font-weight: 800 !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wpm-inline-form {
    margin: 0;
}

.wpm-staff-commencement-date {
    display: grid;
    gap: 6px;
    min-width: min(100%, 220px);
    margin-bottom: 10px;
    color: #111827;
    font-weight: 800;
}

.wpm-staff-commencement-date input {
    min-height: 42px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    padding: 8px 10px;
}

.wpm-rejection-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #f4b4b4;
    border-radius: 16px;
    background: #fff7f7;
}

.wpm-rejection-panel[hidden],
.wpm-rejection-other[hidden] {
    display: none !important;
}

.wpm-rejection-panel fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.wpm-rejection-panel legend {
    margin-bottom: 10px;
    font-weight: 900;
}

.wpm-rejection-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-weight: 700;
}

.wpm-rejection-option input {
    width: auto;
    margin: 0;
}

.wpm-rejection-other {
    margin-top: 14px;
}

.wpm-rejection-panel .wpm-action-row {
    margin-top: 14px;
}

.wpm-staff-locked-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ecfdf3;
    color: #15803d;
    font-weight: 900;
}

.wpm-staff-contact-actions {
    margin-top: 14px;
}

.wpm-staff-card-actions {
    align-items: center;
    margin-top: 2px;
}

.wpm-staff-card-actions .wpm-button,
.wpm-staff-card-actions .wpm-small-button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.wpm-button-whatsapp {
    background: #19a463;
    color: #fff;
}

.wpm-button-call {
    background: #e9edf5;
    color: #111827;
}

@media (min-width: 901px) {
    .wpm-staff-contact-actions .wpm-button-call {
        display: none;
    }
}

.wpm-staff-muted,
.wpm-last-scan {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.wpm-scan-header {
    margin-bottom: 14px;
}

.wpm-token-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.wpm-token-panel input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    padding: 8px 10px;
}

.wpm-staff-applications.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.wpm-staff-type-tabs {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.wpm-staff-type-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 40px;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    padding: 7px 10px;
    background: #fff;
    color: #647084;
    font-weight: 900;
    text-decoration: none;
}

.wpm-staff-type-tabs a.is-active {
    border-color: #5b42f3;
    background: #5b42f3;
    color: #fff;
    box-shadow: 0 12px 24px rgba(91, 66, 243, 0.2);
}

.wpm-staff-type-tabs strong {
    display: grid;
    place-items: center;
    min-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    background: #eef1f7;
    color: #101828;
    font-size: 11px;
}

.wpm-staff-application-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 18px;
}

.wpm-staff-shell .wpm-staff-application-toolbar .wpm-staff-status-filter {
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.wpm-staff-application-toolbar .wpm-staff-status-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.wpm-staff-application-toolbar .wpm-staff-status-filter select {
    min-width: 150px;
    min-height: 40px;
}

.wpm-staff-operations-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.wpm-staff-operations-layout.has-tasks {
    grid-template-columns: minmax(0, 1fr);
}

.wpm-staff-operations-layout .wpm-staff-applications {
    margin-top: 0;
}

.wpm-staff-operations-layout .wpm-staff-table-wrap {
    display: block;
}

.wpm-staff-operations-layout .wpm-staff-application-cards {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wpm-staff-operations-layout.has-tasks .wpm-staff-application-cards {
    grid-template-columns: minmax(0, 1fr);
}

.wpm-staff-manage-panel .wpm-staff-today-column {
    position: static;
}

.wpm-staff-manage-panel .wpm-staff-today-panel {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.wpm-internal-note-text small {
    display: block;
    margin-top: 4px;
    color: #6884b8;
    font-size: 11px;
    font-weight: 700;
}

.wpm-staff-today-column {
    position: sticky;
    top: 22px;
    min-width: 0;
}

.wpm-staff-today-panel {
    display: grid;
    gap: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 24px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.wpm-staff-today-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wpm-staff-today-head h3 {
    margin: 0 0 3px;
    color: #101828;
    font-size: 22px;
}

.wpm-staff-today-head small {
    color: #7b8799;
    font-weight: 700;
}

.wpm-staff-today-head button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
}

.wpm-staff-task-group {
    display: grid;
    gap: 8px;
}

.wpm-staff-task-group h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-left: 4px solid #64748b;
    padding-left: 9px;
    color: #101828;
}

.wpm-staff-task-group.is-yellow h4 { border-left-color: #f59e0b; color: #c2410c; }
.wpm-staff-task-group.is-blue h4 { border-left-color: #2563eb; color: #1d4ed8; }
.wpm-staff-task-group.is-green h4 { border-left-color: #16a34a; color: #15803d; }
.wpm-staff-task-group.is-gray h4 { border-left-color: #64748b; color: #475569; }

.wpm-staff-task-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 8px;
    min-width: 0;
}

.wpm-staff-task-title small {
    color: #7b8799;
    font-size: 10px;
    font-weight: 700;
}

.wpm-staff-task-group h4 .wpm-staff-task-count {
    display: grid;
    place-items: center;
    min-width: 27px;
    min-height: 27px;
    border-radius: 999px;
    background: #eef1f7;
    color: #101828;
    font-size: 12px;
}

.wpm-staff-task-card {
    display: grid;
    gap: 3px;
    border: 1px solid #e3e8f1;
    border-radius: 14px;
    padding: 12px;
    background: #fbfcff;
    color: #101828;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.wpm-staff-task-card:hover,
.wpm-staff-task-card:focus {
    border-color: #5b42f3;
    transform: translateY(-1px);
}

.wpm-staff-task-card strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.wpm-staff-task-card span,
.wpm-staff-task-card time,
.wpm-staff-task-card small {
    color: #586579;
    font-size: 12px;
    font-weight: 700;
}

.wpm-staff-task-card.is-restricted {
    border-style: dashed;
    cursor: default;
}

.wpm-staff-task-card.is-restricted:hover {
    border-color: #e3e8f1;
    transform: none;
}

.wpm-staff-task-card.is-restricted em {
    justify-self: start;
    margin-top: 5px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef1f7;
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.wpm-staff-readonly-notice {
    margin-bottom: 14px;
    border: 1px solid #d9deea;
    border-radius: 14px;
    padding: 13px 15px;
    background: #f7f8fb;
    color: #475467;
}

.wpm-staff-readonly-notice strong {
    color: #101828;
}

.wpm-staff-readonly-notice p {
    margin: 4px 0 0;
}

.wpm-staff-task-empty {
    margin: 0;
    border: 1px dashed #d7deea;
    border-radius: 12px;
    padding: 10px;
    color: #7b8799;
    font-size: 12px;
    font-weight: 700;
}

.wpm-staff-note-form {
    border: 1px solid #d7e5ff;
    border-radius: 20px;
    padding: 16px;
    background: #f7faff;
}

.wpm-staff-customer-note {
    border: 1px solid #c8ead7;
    border-radius: 20px;
    padding: 16px;
    background: #f3fbf6;
}

.wpm-staff-customer-note .wpm-staff-note-head > div {
    display: grid;
    gap: 3px;
}

.wpm-staff-customer-note .wpm-staff-note-head small,
.wpm-customer-note-updated {
    color: #547362;
    font-size: 11px;
    font-weight: 700;
}

.wpm-customer-note-form {
    margin-top: 12px;
}

.wpm-customer-note-form textarea[readonly] {
    background: #fff;
    color: #244633;
}

.wpm-customer-note-actions {
    margin-top: 10px;
}

.wpm-customer-note-card {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    border: 1px solid #b8dfc8;
    border-left: 5px solid #169b53;
    border-radius: 16px;
    padding: 16px;
    background: #f2fbf5;
    color: #173f28;
}

.wpm-customer-note-card p {
    margin: 0;
    line-height: 1.55;
}

.wpm-customer-note-card time {
    color: #547362;
    font-size: 12px;
    font-weight: 700;
}

.wpm-management-message-badge {
    justify-self: start;
    border-radius: 999px;
    padding: 5px 9px;
    background: #daf4e4;
    color: #08783b;
    font-size: 11px;
    font-weight: 900;
}

.wpm-staff-scan-log-wrap {
    width: 100%;
    overflow-x: auto;
}

.wpm-staff-scan-log-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.wpm-staff-scan-log-table th,
.wpm-staff-scan-log-table td {
    border-bottom: 1px solid #e3e8f1;
    padding: 9px;
    text-align: left;
}

.wpm-staff-qr-status {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    border-radius: 12px;
    padding: 10px 12px;
    background: #eef6ff;
    color: #175cd3;
}

.wpm-staff-qr-status.is-cancelled {
    background: #fff0ef;
    color: #b42318;
}

.wpm-staff-cancel-qr-form {
    margin-top: 12px;
}

.wpm-tourism-section-head,
.wpm-tourism-queue-head,
.wpm-tourism-visit-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpm-tourism-section-head h2,
.wpm-tourism-section-head h3,
.wpm-tourism-section-head p { margin: 0; }
.wpm-tourism-section-head p { margin-top: 4px; color: #667085; }

.wpm-tourism-vehicle-grid,
.wpm-tourism-visit-list { display: grid; gap: 12px; margin-top: 16px; }
.wpm-tourism-vehicle-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wpm-tourism-profile-list { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 16px 0 0; }
.wpm-tourism-profile-list dt { color: #667085; }
.wpm-tourism-profile-list dd { margin: 0; }
.wpm-tourism-worker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.wpm-tourism-worker-grid article { display: grid; gap: 4px; border: 1px solid #e4e8f1; border-radius: 12px; padding: 12px; background: #f7f8fc; }
.wpm-tourism-worker-grid span { color: #667085; }

.wpm-tourism-vehicle-card,
.wpm-tourism-visit-card,
.wpm-tourism-scan-card {
    display: grid;
    gap: 9px;
    border: 1px solid #e4e8f1;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.wpm-tourism-vehicle-card.is-inactive { opacity: .6; }
.wpm-tourism-token { max-width: 100%; overflow-wrap: anywhere; white-space: normal; color: #475467; font-size: 13px; letter-spacing: .025em; }
.wpm-tourism-vehicle-photo { width: 100%; height: 125px; border-radius: 12px; object-fit: cover; }
.wpm-tourism-visit-main img,
.wpm-tourism-scan-card img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.wpm-tourism-visit-main > div { display: grid; margin-right: auto; }
.wpm-tourism-visit-card em { color: #5944f2; font-style: normal; font-weight: 800; }
.wpm-tourism-visit-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; margin: 0; }
.wpm-tourism-visit-card dt { color: #667085; }
.wpm-tourism-visit-card dd { margin: 0; }
.wpm-tourism-staff-layout.has-tasks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .42fr); gap: 18px; }
.wpm-tourism-scan-box { display: grid; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 16px; background: #f7f8fc; }
.wpm-tourism-video { width: 100%; max-height: 360px; border-radius: 14px; background: #111827; }
.wpm-security-tourism-photo { display: block; width: 100%; max-height: 220px; margin: 12px 0; border-radius: 14px; object-fit: cover; }
.wpm-scan-vehicle-choices { display: grid; gap: 10px; margin: 14px 0; }
.wpm-scan-vehicle-choice { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #dce3ee; border-radius: 14px; background: #fff; }
.wpm-scan-vehicle-choice > img,
.wpm-scan-vehicle-placeholder { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 10px; background: #eef2ff; color: #4f46e5; font-size: 11px; font-weight: 900; object-fit: cover; }
.wpm-scan-vehicle-choice > div { display: grid; gap: 3px; min-width: 0; }
.wpm-scan-vehicle-choice strong { overflow-wrap: anywhere; color: #101828; font-size: 16px; }
.wpm-scan-vehicle-choice span { color: #667085; font-size: 13px; }
.wpm-scan-vehicle-choice button { width: auto !important; min-width: 82px; min-height: 42px; margin: 0; padding: 8px 12px; border-radius: 11px; }
.wpm-scan-vehicle-choice button:disabled { background: #e8ecf3; color: #7c8799; opacity: 1; cursor: not-allowed; }
.wpm-tourism-alert { margin: 12px 0; border-radius: 12px; padding: 12px; background: #fff4cc; color: #7a5100; font-weight: 800; }
.wpm-tourism-manager-actions { display: grid; gap: 8px; border-top: 1px solid #e4e8f1; padding-top: 10px; }
.wpm-tourism-company-summary { margin: 14px 0; border: 1px solid #e4e8f1; border-radius: 14px; padding: 12px; }
.wpm-tourism-company-summary summary { cursor: pointer; font-weight: 800; }
.wpm-tourism-company-grid { display: grid; gap: 9px; margin-top: 12px; }
.wpm-tourism-company-grid article { display: grid; gap: 3px; border-radius: 10px; padding: 10px; background: #f7f8fc; }
.wpm-tourism-company-grid em { color: #5944f2; font-style: normal; }
.wpm-tourism-audit { border-top: 1px solid #e4e8f1; padding-top: 9px; }
.wpm-tourism-audit summary { cursor: pointer; font-weight: 700; }
.wpm-tourism-audit ul { margin: 9px 0 0; padding-left: 18px; }

.wpm-tourism-qr-modal {
    position: fixed;
    z-index: 100010;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    padding: 24px;
    background: #fff;
    text-align: center;
}
.wpm-tourism-qr-modal[hidden] { display: none !important; }
.wpm-tourism-qr-modal img { width: min(82vw, 420px); height: auto; }
.wpm-tourism-close-qr { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0; background: #eef0f5; color: #26324a; font-size: 28px; line-height: 1; text-align: center; }
.wpm-tourism-desktop-note { color: #667085; }

@media (max-width: 768px) {
    .wpm-tourism-staff-layout.has-tasks { grid-template-columns: 1fr; }
    .wpm-tourism-desktop-note { display: none; }
    .wpm-security-tourism-card { grid-template-columns: 52px minmax(0, 1fr); }
    .wpm-security-tourism-card > img { width: 52px; height: 52px; }
    .wpm-security-tourism-card dl { grid-column: 1 / -1; }
    .wpm-security-tourism-panel .wpm-tourism-section-head { align-items: flex-start; }
    .wpm-security-tourism-head-actions { flex-direction: column; align-items: flex-end; }
}

.wpm-staff-note-head span {
    display: grid;
    place-items: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    background: #dbeafe;
    color: #175cd3;
    font-size: 12px;
    font-weight: 900;
}

.wpm-staff-note-compose {
    margin-top: 12px;
}

.wpm-staff-note-history {
    display: grid;
    gap: 10px;
    max-height: 390px;
    margin-top: 14px;
    overflow-y: auto;
}

.wpm-staff-note-entry {
    border-top: 1px solid #dbe6f7;
    padding-top: 10px;
}

.wpm-staff-note-entry > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wpm-staff-note-entry strong { color: #175cd3; }
.wpm-staff-note-entry time { color: #7b8799; font-size: 12px; font-weight: 700; }
.wpm-staff-note-entry p { margin: 6px 0 0; color: #29486f; line-height: 1.5; }

.wpm-staff-detail-page {
    display: grid;
    gap: 16px;
}

.wpm-staff-detail-back {
    justify-self: start;
    color: #4f46e5;
    font-weight: 900;
    text-decoration: none;
}

.wpm-staff-detail-summary {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) auto repeat(3, minmax(150px, 0.7fr));
    align-items: center;
    gap: 18px;
    border: 1px solid #e3e8f1;
    border-radius: 22px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.wpm-staff-detail-title {
    min-width: 0;
}

.wpm-staff-detail-title h3 {
    margin: 0 0 5px;
    color: #101828;
    font-size: 23px;
}

.wpm-staff-detail-title span {
    display: block;
    overflow-wrap: anywhere;
    color: #647084;
    font-weight: 700;
}

.wpm-staff-detail-summary > div:not(.wpm-staff-detail-title) {
    min-width: 0;
    border-left: 1px solid #e4e8f1;
    padding-left: 16px;
}

.wpm-staff-detail-summary small,
.wpm-staff-detail-summary strong {
    display: block;
}

.wpm-staff-detail-summary small {
    margin-bottom: 5px;
    color: #7b8799;
    font-weight: 700;
}

.wpm-staff-detail-summary strong {
    overflow-wrap: anywhere;
    color: #101828;
}

.wpm-staff-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
    gap: 16px;
    align-items: start;
}

.wpm-staff-detail-groups,
.wpm-staff-detail-actions {
    display: grid;
    gap: 12px;
}

.wpm-staff-detail-actions {
    position: sticky;
    top: 20px;
}

.wpm-staff-detail-group,
.wpm-staff-decision-card,
.wpm-staff-detail-audit {
    border: 1px solid #e3e8f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.wpm-staff-detail-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    color: #101828;
    font-size: 17px;
    font-weight: 900;
}

.wpm-staff-detail-group > summary::-webkit-details-marker { display: none; }
.wpm-staff-detail-group > summary strong {
    display: grid;
    place-items: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    background: #eef1f7;
    font-size: 12px;
}

.wpm-staff-detail-group dl {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
    gap: 11px 16px;
    margin: 0;
    border-top: 1px solid #e7ebf2;
    padding: 18px;
}

.wpm-staff-detail-group dt {
    color: #7b8799;
    font-weight: 800;
}

.wpm-staff-detail-group dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #101828;
    font-weight: 700;
}

.wpm-staff-decision-card {
    padding: 16px;
}

.wpm-staff-decision-card h3 {
    margin: 0 0 12px;
    color: #4f46e5;
}

.wpm-staff-decision-card .wpm-staff-review-controls {
    margin: 0;
    border: 0;
    padding: 0;
}

.wpm-staff-decision-card .wpm-staff-review-controls > .wpm-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.wpm-staff-decision-card .wpm-inline-form,
.wpm-staff-decision-card .wpm-inline-form button,
.wpm-staff-decision-card > .wpm-staff-detail-download {
    width: 100%;
}

.wpm-staff-decision-card .wpm-reject-toggle {
    min-height: 44px;
    border: 1px solid #ef4444;
    background: #fff;
    color: #dc2626;
}

.wpm-staff-detail-download {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 14px;
    text-align: center;
}

.wpm-staff-decision-card > .wpm-staff-memo-share {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
}

.wpm-staff-rejection-summary {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px;
    background: #fff1f1;
    color: #991b1b;
}

.wpm-staff-rejection-summary p { margin: 4px 0 0; }

.wpm-staff-detail-actions > .wpm-staff-contact-actions,
.wpm-staff-detail-audit {
    margin: 0;
    padding: 14px;
}

.wpm-staff-detail-audit {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px;
}

.wpm-staff-detail-audit dt { color: #7b8799; font-weight: 800; }
.wpm-staff-detail-audit dd { margin: 0; color: #101828; font-weight: 700; }

.wpm-token-panel[hidden] {
    display: none;
}

@media (max-width: 420px) {
    .wpm-title {
        font-size: 22px;
    }

    .wpm-subtitle {
        font-size: 15px;
    }

    .wpm-topbar {
        min-height: 56px;
        padding: 9px 18px 9px 12px;
    }

    .wpm-brand {
        gap: 10px;
    }

    .wpm-mark,
    .wpm-logo {
        width: 42px;
        height: 42px;
    }

    .wpm-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .wpm-account-toggle {
        gap: 8px;
    }

    .wpm-card {
        padding: 20px;
    }

    .wpm-permit-meta {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media print {
    .wpm-app-header,
    .wpm-bottom-nav,
    .wpm-avatar-menu,
    .wpm-permit-share-actions,
    .wpm-copy-token {
        display: none !important;
    }

    .wpm-app {
        padding: 0 !important;
        background: #fff !important;
    }

    .wpm-card {
        box-shadow: none !important;
    }
}

@media (max-width: 900px) {
    .wpm-staff-filters,
    .wpm-staff-grid {
        grid-template-columns: 1fr;
    }

    .wpm-staff-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpm-staff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .wpm-upload-card-grid {
        grid-template-columns: 1fr;
    }

    .wpm-staff-dashboard {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    .wpm-staff-dashboard.is-authenticated {
        width: 100%;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding-right: 12px;
        padding-left: 12px;
        overflow-x: hidden;
        overflow-x: clip;
    }

    .wpm-staff-login-brand {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .wpm-staff-shell .wpm-staff-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
        border-radius: 20px;
    }

    .wpm-staff-header .wpm-staff-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .wpm-staff-password-form {
        grid-template-columns: 1fr;
    }

    .wpm-staff-password-form .wpm-action-row {
        grid-column: auto;
    }

    .wpm-security-shell .wpm-scan-header {
        align-items: flex-start;
        padding: 16px;
        border-radius: 20px;
    }

    .wpm-staff-shell .wpm-staff-header h2 {
        font-size: 22px;
    }

    .wpm-security-shell .wpm-scan-header h2 {
        font-size: 22px;
    }

    .wpm-scan-app {
        width: 100% !important;
        max-width: 430px !important;
        padding: 14px 12px 26px;
        box-sizing: border-box;
    }

    .wpm-scan-intro h2 {
        font-size: clamp(38px, 13vw, 52px);
    }

    .wpm-scan-intro p {
        font-size: clamp(22px, 7.4vw, 29px);
    }

    .wpm-camera-preview {
        height: min(70vw, 320px) !important;
        min-height: 245px;
        max-height: 320px;
        aspect-ratio: auto;
        border-radius: 24px;
    }

    .wpm-security-shell .wpm-scanner {
        padding: 20px 14px;
        border-radius: 28px;
    }

    .wpm-security-shell .wpm-scanner .wpm-action-row button {
        min-height: 56px;
        border-radius: 18px;
        font-size: clamp(17px, 5.2vw, 20px);
    }

    .wpm-scan-instruction {
        font-size: 18px;
    }

    .wpm-staff-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wpm-staff-overview-card {
        min-height: 88px;
        padding: 16px;
        border-radius: 18px;
    }

    .wpm-staff-overview-card strong {
        font-size: 30px;
    }

    .wpm-staff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpm-staff-stat {
        padding: 13px;
    }

    .wpm-staff-stat strong {
        font-size: 24px;
    }

    .wpm-staff-table-wrap {
        display: none;
    }

    .wpm-staff-application-cards {
        display: grid;
        gap: 12px;
    }

    .wpm-staff-application-card-head {
        grid-template-columns: auto 1fr;
    }

    .wpm-staff-application-card-head em {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .wpm-staff-card-actions .wpm-button,
    .wpm-staff-card-actions .wpm-small-button {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .wpm-staff-detail .wpm-permit-meta {
        grid-template-columns: 1fr;
    }

    .wpm-staff-section-nav {
        grid-template-columns: 1fr;
    }

    .wpm-staff-section-nav,
    .wpm-record-type-tabs,
    .wpm-record-view-tabs,
    .wpm-staff-sort-controls,
    .wpm-staff-type-tabs {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wpm-staff-section-nav a,
    .wpm-record-type-tabs a,
    .wpm-record-view-tabs a,
    .wpm-staff-type-tabs a {
        white-space: normal;
    }

    .wpm-record-card {
        max-width: 100%;
    }

    .wpm-record-card form {
        width: 100%;
        flex-wrap: wrap;
    }

    .wpm-record-card form input,
    .wpm-record-card form button {
        flex: 1 1 150px;
    }
}

@media (max-width: 380px) {
    .wpm-scan-app {
        padding-right: 8px;
        padding-left: 8px;
    }

    .wpm-security-shell .wpm-scanner {
        padding: 16px 12px;
        border-radius: 24px;
    }

    .wpm-camera-preview {
        height: min(68vw, 290px) !important;
        min-height: 220px;
        max-height: 290px;
        aspect-ratio: auto;
        border-radius: 22px;
    }

    .wpm-security-shell .wpm-scanner .wpm-action-row button {
        min-height: 54px;
        font-size: 16px;
    }

    .wpm-scan-instruction {
        font-size: 16px;
    }

    .wpm-topbar {
        padding-right: 18px;
        padding-left: 12px;
    }

    .wpm-brand {
        gap: 10px;
    }

    .wpm-mark,
    .wpm-logo {
        width: 38px;
        height: 38px;
    }

    .wpm-title {
        font-size: 20px;
    }

    .wpm-subtitle {
        font-size: 14px;
    }

    .wpm-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .wpm-chevron {
        width: 18px;
        height: 18px;
    }

    .wpm-bottom-nav {
        padding-right: 2px;
        padding-left: 2px;
    }

    .wpm-nav-item {
        font-size: 12px;
    }

    .wpm-nav-icon {
        width: 35px;
        height: 35px;
    }

    .wpm-nav-link-dashboard .wpm-nav-icon {
        width: 49px;
        height: 49px;
    }

    .wpm-nav-link-dashboard::before {
        width: 63px;
        height: 63px;
    }

    .wpm-nav-link-dashboard .wpm-nav-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Scan QR: flat, frameless layout. Interactive controls keep their affordances. */
.wpm-scan-notices {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.wpm-scan-app {
    background: transparent;
    overflow: visible;
}

.wpm-scan-app > .wpm-card,
.wpm-scan-app .wpm-security-login-shell,
.wpm-security-shell .wpm-scanner,
.wpm-scan-tourism-panel,
.wpm-security-task-dashboard,
.wpm-security-tourism-group,
.wpm-security-tourism-card,
.wpm-security-status-content,
.wpm-security-task-card,
.wpm-security-task-empty,
.wpm-scan-app .wpm-tourism-visit-card,
.wpm-scan-app .wpm-tourism-scan-card,
.wpm-scan-app .wpm-token-panel,
.wpm-scan-app .wpm-qr-box {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-scan-app > .wpm-card,
.wpm-scan-app .wpm-security-login-shell {
    padding: 0;
}

.wpm-scan-topline {
    justify-content: space-between;
    flex-wrap: wrap;
}

.wpm-scan-topline-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.wpm-scan-topline-actions > button {
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: #e9edf5;
    color: #101828;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.wpm-scan-password-panel {
    margin: 0 0 24px;
    padding: 20px 0 24px;
    border: 0;
    background: transparent;
}

.wpm-scan-password-panel[hidden] {
    display: none !important;
}

.wpm-scan-password-panel h3 {
    margin: 0 0 5px;
}

.wpm-scan-password-panel > p {
    margin: 0 0 16px;
    color: #667085;
}

.wpm-scan-password-form {
    display: grid;
    gap: 13px;
}

.wpm-scan-password-form .wpm-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wpm-security-shell .wpm-scanner {
    padding: 0;
    overflow: visible;
}

.wpm-camera-preview,
.wpm-scanner .wpm-camera-preview video,
#wpm-security-result .wpm-scan-result,
.wpm-security-tourism-card > img,
.wpm-security-tourism-photo {
    border-radius: 0;
    box-shadow: none;
}

.wpm-scan-app .wpm-token-panel {
    padding: 12px 0 0;
}

.wpm-scan-tourism-panel,
.wpm-security-task-dashboard {
    margin-top: 34px;
    padding: 24px 0 0;
    border: 0;
    overflow: visible;
}

.wpm-security-tourism-groups {
    gap: 28px;
}

.wpm-security-tourism-group {
    overflow: visible;
}

.wpm-security-tourism-group > header {
    border: 0;
    padding: 0 0 10px;
    background: transparent;
}

.wpm-security-tourism-group.is-checked_in h4 { color: #b45309; }
.wpm-security-tourism-group.is-verified h4 { color: #1d4ed8; }
.wpm-security-tourism-group.is-completed h4 { color: #15803d; }

.wpm-security-tourism-list {
    gap: 18px;
    padding: 0;
}

.wpm-security-tourism-card {
    padding: 14px 0;
}

.wpm-scan-app .wpm-tourism-queue {
    gap: 20px;
}

.wpm-scan-app .wpm-tourism-visit-card,
.wpm-scan-app .wpm-tourism-scan-card {
    padding: 14px 0;
}

.wpm-security-tourism-group > .wpm-tourism-empty {
    padding: 8px 0;
}

.wpm-security-status-toggle {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
}

.wpm-security-status-content {
    padding: 20px 0 0;
}

.wpm-security-task-grid {
    gap: 16px;
}

.wpm-security-task-card,
.wpm-security-task-empty {
    padding: 14px 0;
}

.wpm-security-task-group > h3 {
    border-left: 0;
    padding-left: 0;
}

.wpm-security-task-group.wpm-task-yellow > h3 { color: #b45309; }
.wpm-security-task-group.wpm-task-green > h3 { color: #15803d; }
.wpm-security-task-group.wpm-task-blue > h3 { color: #1d4ed8; }
.wpm-security-task-group.wpm-task-red > h3 { color: #b91c1c; }

@media (max-width: 480px) {
    .wpm-scan-topline {
        align-items: flex-start;
    }

    .wpm-scan-topline > span {
        flex-basis: 100%;
    }

    .wpm-scan-password-form .wpm-action-row {
        grid-template-columns: 1fr;
    }

    .wpm-security-shell .wpm-scanner {
        padding: 0;
    }

    .wpm-camera-preview {
        border-radius: 0;
    }
}

@media (max-width: 1050px) {
    .wpm-staff-operations-layout.has-tasks {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpm-staff-today-column {
        position: static;
    }

    .wpm-staff-detail-summary {
        grid-template-columns: minmax(240px, 1fr) auto repeat(2, minmax(130px, 0.6fr));
    }

    .wpm-staff-detail-summary > div:last-child {
        grid-column: 3 / -1;
    }

    .wpm-staff-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpm-staff-detail-actions {
        position: static;
    }
}

@media (max-width: 720px) {
    .wpm-staff-operations-layout .wpm-staff-application-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpm-staff-application-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wpm-staff-type-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .wpm-staff-type-tabs a {
        flex: 0 0 auto;
        min-height: 40px;
    }

    .wpm-staff-shell .wpm-staff-application-toolbar .wpm-staff-status-filter,
    .wpm-staff-application-toolbar .wpm-staff-status-filter label,
    .wpm-staff-application-toolbar .wpm-staff-status-filter select {
        width: 100%;
    }

    .wpm-staff-operations-layout .wpm-staff-table-wrap {
        display: none;
    }

    .wpm-staff-operations-layout .wpm-staff-application-cards {
        display: grid;
    }

    .wpm-staff-today-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpm-staff-today-head button {
        width: 100%;
    }

    .wpm-staff-detail-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .wpm-staff-detail-summary > div:not(.wpm-staff-detail-title) {
        grid-column: 1 / -1;
        border-top: 1px solid #e4e8f1;
        border-left: 0;
        padding-top: 10px;
        padding-left: 0;
    }

    .wpm-staff-detail-group dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Unified customer and Staff update center. */
.wpm-alert-center {
    position: relative;
    z-index: 80;
    flex: 0 0 auto;
}

.wpm-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpm-alert-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef1f6;
    color: #1d2939;
    cursor: pointer;
}

/* Keep theme link styles from underlining controls that behave as buttons. */
.wpm-app button,
.wpm-app .wpm-button,
.wpm-staff-dashboard button,
.wpm-staff-dashboard .wpm-button,
.wpm-staff-app button,
.wpm-staff-app .wpm-button,
.wpm-scan-app button,
.wpm-scan-app .wpm-button,
.wpm-app button *,
.wpm-app .wpm-button *,
.wpm-staff-dashboard button *,
.wpm-staff-dashboard .wpm-button *,
.wpm-staff-app button *,
.wpm-staff-app .wpm-button *,
.wpm-scan-app button *,
.wpm-scan-app .wpm-button * {
    text-decoration: none !important;
}

.wpm-topbar .wpm-alert-toggle {
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    box-shadow: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.wpm-topbar .wpm-alert-toggle:hover,
.wpm-topbar .wpm-alert-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.wpm-staff-header .wpm-alert-toggle {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.wpm-alert-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.wpm-alert-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.wpm-alert-badge[hidden],
.wpm-alert-panel[hidden] {
    display: none !important;
}

.wpm-alert-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(380px, calc(100vw - 28px));
    max-height: min(620px, 72vh);
    border: 1px solid #dfe4ec;
    border-radius: 18px;
    background: #fff;
    color: #101828;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .22);
    overflow: hidden;
}

.wpm-alert-panel > header,
.wpm-alert-panel > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
}

.wpm-alert-panel > header {
    border-bottom: 1px solid #edf0f5;
}

.wpm-alert-panel > header strong {
    color: #101828;
    font-size: 17px;
}

.wpm-alert-sound,
.wpm-alert-mark-all {
    min-height: 32px;
    border: 0;
    border-radius: 9px;
    padding: 6px 10px;
    background: #eef1f6;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.wpm-alert-mark-all {
    width: 100%;
}

.wpm-alert-mark-all:disabled {
    opacity: .5;
    cursor: default;
}

.wpm-alert-list {
    max-height: min(500px, 58vh);
    overflow-y: auto;
}

.wpm-alert-item {
    display: grid;
    grid-template-columns: 11px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    width: 100%;
    min-height: 78px;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    padding: 12px 15px;
    background: #fff;
    color: #101828;
    text-align: left;
    cursor: pointer;
}

.wpm-alert-item.is-unread {
    background: #f5f7ff;
}

.wpm-alert-item > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wpm-alert-item strong,
.wpm-alert-item small,
.wpm-alert-item time {
    overflow-wrap: anywhere;
}

.wpm-alert-item small {
    color: #475467;
}

.wpm-alert-item time {
    color: #98a2b3;
    font-size: 11px;
}

.wpm-alert-category {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 50%;
    background: #64748b;
}

.wpm-alert-category.is-application { background: #2563eb; }
.wpm-alert-category.is-notice { background: #7c3aed; }
.wpm-alert-category.is-message { background: #db2777; }
.wpm-alert-category.is-tourism { background: #059669; }
.wpm-alert-category.is-customer { background: #d97706; }

.wpm-alert-empty {
    margin: 0;
    padding: 24px 15px;
    color: #667085;
    text-align: center;
}

.wpm-app .wpm-feature-card,
.wpm-app .wpm-feature-card:visited,
.wpm-app .wpm-feature-card:hover,
.wpm-app .wpm-feature-card:focus,
.wpm-app .wpm-feature-card:focus-visible,
.wpm-app .wpm-feature-card *,
.wpm-app .wpm-feature-card *::before,
.wpm-app .wpm-feature-card *::after {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    text-shadow: none !important;
}

.wpm-app .wpm-feature-card > span,
.wpm-app .wpm-feature-card strong,
.wpm-app .wpm-feature-card small,
.wpm-app .wpm-setting-service-card,
.wpm-app .wpm-setting-service-card strong,
.wpm-app .wpm-setting-service-card small,
.wpm-app .wpm-setting-service-card span {
    text-decoration: none !important;
    border-bottom: 0 !important;
    background-image: none !important;
    text-shadow: none !important;
}

.wpm-app .wpm-feature-card {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

.wpm-app .wpm-feature-card svg,
.wpm-app .wpm-feature-card svg * {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .wpm-topbar .wpm-alert-panel {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .wpm-staff-header-actions {
        flex-wrap: wrap;
    }

    .wpm-staff-header .wpm-alert-panel {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* Tenant social media posting application */
.wpm-social-media-shell {
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
}

.wpm-social-media-terms {
    margin: 22px 0;
    padding: 22px 24px;
    border: 1px solid #d7e0ee;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #eef4ff);
    color: #344054;
}

.wpm-social-media-terms h3 {
    margin: 0 0 14px;
    color: #10213b;
    text-align: center;
    text-transform: uppercase;
}

.wpm-social-media-terms ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.wpm-social-media-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wpm-social-media-file-count {
    display: block;
    margin-top: 6px;
    color: #52627a;
    font-size: 13px;
    font-weight: 700;
}

.wpm-social-media-file-count.is-error {
    color: #b42318;
}

.wpm-social-media-agreement {
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #c9d7ec;
    border-radius: 14px;
    background: #f7faff;
}

.wpm-social-media-caption,
.wpm-social-media-media {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4e9f0;
}

.wpm-social-media-caption p {
    white-space: normal;
}

.wpm-social-media-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wpm-social-media-media-item {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 33, 59, .08);
}

.wpm-social-media-media-item img,
.wpm-social-media-media-item video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 11px;
    background: #101828;
    object-fit: contain;
}

.wpm-social-media-media-item .wpm-small-button {
    justify-self: start;
}

@media (max-width: 760px) {
    .wpm-social-media-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .wpm-social-media-terms {
        padding: 18px;
    }

    .wpm-social-media-date-grid,
    .wpm-social-media-media-grid {
        grid-template-columns: 1fr;
    }
}

/* Front-end Tourism Company management. */
.wpm-app.wpm-tourism-company-admin {
    width: min(1200px, calc(100vw - 24px));
    max-width: 1200px;
    min-height: 0;
    margin: 0 auto;
    padding: 24px;
    background: #f3f5f9;
    box-sizing: border-box;
    box-shadow: none;
}

.wpm-tourism-company-admin-inner {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.wpm-tourism-company-admin .wpm-card {
    margin: 0;
}

.wpm-tourism-company-login {
    display: grid;
    gap: 22px;
    width: min(100%, 440px);
    margin: 40px auto !important;
    padding: 30px 24px;
    border-radius: 22px;
}

.wpm-tourism-company-login .wpm-auth-logo {
    margin-bottom: 0;
}

.wpm-tourism-company-login .wpm-auth-form {
    gap: 14px;
}

.wpm-tourism-company-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-radius: 24px;
    background: #10182b;
    color: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.wpm-tourism-company-admin-header h2,
.wpm-tourism-company-admin-header p {
    margin: 0;
}

.wpm-tourism-company-admin-header h2 {
    color: #fff !important;
}

.wpm-tourism-company-admin-header p {
    margin-top: 5px;
    color: #89b7ff;
    font-weight: 700;
}

.wpm-tourism-icon-button,
.wpm-tourism-icon-button:visited,
.wpm-tourism-company-admin-header .wpm-logout .wpm-tourism-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    border: 0;
    border-radius: 14px;
    background: #5944f2;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(89, 68, 242, 0.2);
    cursor: pointer;
    text-decoration: none !important;
}

.wpm-tourism-company-admin-header .wpm-logout .wpm-tourism-icon-button {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    box-shadow: none;
}

.wpm-tourism-icon-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-tourism-icon-button:hover,
.wpm-tourism-icon-button:focus-visible {
    background: #4633d8;
    color: #fff !important;
    outline: 3px solid rgba(89, 68, 242, 0.18);
    outline-offset: 2px;
}

.wpm-tourism-company-admin-header .wpm-logout .wpm-tourism-icon-button:hover,
.wpm-tourism-company-admin-header .wpm-logout .wpm-tourism-icon-button:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.wpm-tourism-company-page-actions,
.wpm-tourism-company-save {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpm-tourism-company-page-actions > a:first-child {
    color: #344054;
    font-weight: 800;
    text-decoration: none;
}

.wpm-tourism-company-search {
    display: grid;
    gap: 7px;
    margin: 20px 0;
}

.wpm-tourism-company-search[hidden] {
    display: none !important;
}

.wpm-tourism-company-search label {
    color: #344054;
    font-weight: 800;
}

.wpm-tourism-company-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wpm-tourism-company-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd8e6;
    border-radius: 14px;
    padding: 11px 14px;
    background: #fff;
    color: #111827;
    font: inherit;
    box-sizing: border-box;
}

.wpm-tourism-company-search input:focus {
    border-color: #5944f2;
    outline: 3px solid rgba(89, 68, 242, 0.14);
}

.wpm-tourism-company-search small {
    color: #667085;
}

.wpm-tourism-company-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wpm-tourism-company-directory-card {
    display: grid;
    min-width: 0;
    gap: 6px;
    padding: 17px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #fff;
    color: #344054;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    text-decoration: none !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wpm-tourism-company-directory-card:hover,
.wpm-tourism-company-directory-card:focus-visible {
    border-color: #89b7ff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

/* v1.7.64 authentication, link and notification refinements. */
.wpm-staff-dashboard:not(.is-authenticated) {
    width: min(100%, 560px);
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wpm-staff-dashboard:not(.is-authenticated) .wpm-staff-login-shell,
.wpm-scan-app .wpm-security-login-shell,
.wpm-tourism-company-login {
    width: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
}

.wpm-remember-option,
.wpm-form .wpm-remember-option {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 24px;
    margin: 0;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.wpm-remember-option input[type="checkbox"],
.wpm-form .wpm-remember-option input[type="checkbox"] {
    appearance: auto !important;
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #5944f2;
    box-shadow: none !important;
}

.wpm-guest-entry,
.wpm-guest-entry:visited,
.wpm-guest-entry:hover,
.wpm-guest-entry:focus,
.wpm-guest-entry:focus-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 30px;
    margin: 0 auto;
    padding: 2px 6px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #344054 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-weight: 800;
}

.wpm-guest-entry:focus-visible {
    outline: 3px solid rgba(89, 68, 242, 0.25);
    outline-offset: 3px;
}

.wpm-field-help {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.wpm-app a,
.wpm-app a:visited,
.wpm-app a:hover,
.wpm-app a:focus,
.wpm-app a:focus-visible,
.wpm-app a *,
.wpm-staff-dashboard a,
.wpm-staff-dashboard a:visited,
.wpm-staff-dashboard a:hover,
.wpm-staff-dashboard a:focus,
.wpm-staff-dashboard a:focus-visible,
.wpm-staff-dashboard a *,
.wpm-scan-app a,
.wpm-scan-app a:visited,
.wpm-scan-app a:hover,
.wpm-scan-app a:focus,
.wpm-scan-app a:focus-visible,
.wpm-scan-app a * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: 0 !important;
    background-image: none !important;
    text-shadow: none !important;
}

.wpm-alert-panel,
.wpm-alert-panel > header,
.wpm-alert-panel > footer,
.wpm-alert-list {
    background: #fff !important;
    color: #101828 !important;
}

.wpm-alert-panel > header strong,
.wpm-alert-item,
.wpm-alert-item strong {
    color: #101828 !important;
}

.wpm-alert-item,
.wpm-alert-item:hover,
.wpm-alert-item:focus,
.wpm-alert-item:focus-visible {
    background: #fff !important;
    color: #101828 !important;
    text-shadow: none !important;
}

.wpm-alert-item.is-unread,
.wpm-alert-item.is-unread:hover,
.wpm-alert-item.is-unread:focus,
.wpm-alert-item.is-unread:focus-visible {
    background: #eef4ff !important;
    color: #101828 !important;
}

.wpm-alert-item small {
    color: #475467 !important;
}

.wpm-alert-item time {
    color: #667085 !important;
}

.wpm-alert-sound,
.wpm-alert-mark-all,
.wpm-alert-sound:hover,
.wpm-alert-mark-all:hover,
.wpm-alert-sound:focus,
.wpm-alert-mark-all:focus {
    background: #eef1f6 !important;
    color: #344054 !important;
    text-shadow: none !important;
}

.wpm-alert-empty,
.wpm-alert-empty.is-error {
    background: #fff !important;
    color: #667085 !important;
}

.wpm-alert-empty.is-error {
    color: #b42318 !important;
}

@media (max-width: 600px) {
    .wpm-staff-dashboard:not(.is-authenticated) {
        width: 100%;
        padding: 20px 14px;
    }
}

.wpm-tourism-company-directory-card:focus-visible {
    outline: 3px solid rgba(89, 68, 242, 0.2);
    outline-offset: 2px;
}

.wpm-tourism-company-directory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.wpm-tourism-company-directory-head strong {
    color: #10182b;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.wpm-tourism-company-directory-card small,
.wpm-tourism-company-directory-card > span:not(.wpm-tourism-company-directory-head) {
    color: #667085;
    overflow-wrap: anywhere;
}

.wpm-tourism-company-directory-head em,
.wpm-tourism-company-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 9px;
    background: #ecfdf3;
    color: #067647;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.wpm-tourism-company-directory-head em.is-disabled,
.wpm-tourism-company-status.is-disabled {
    background: #f2f4f7;
    color: #667085;
}

.wpm-tourism-company-form {
    display: grid;
    gap: 18px;
}

.wpm-tourism-company-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wpm-tourism-company-form-grid label,
.wpm-tourism-company-edit-row label {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    color: #344054;
    font-weight: 800;
}

.wpm-tourism-company-form-grid label.is-wide {
    grid-column: 1 / -1;
}

.wpm-tourism-company-form-grid small,
.wpm-tourism-company-edit-row a {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.wpm-tourism-company-worker-rows,
.wpm-tourism-company-vehicle-rows {
    display: grid;
    gap: 12px;
}

.wpm-tourism-company-edit-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.wpm-tourism-company-edit-row.is-vehicle {
    grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.4fr) minmax(130px, .7fr);
}

.wpm-tourism-company-edit-row .wpm-check-option {
    align-self: center;
    display: flex;
    align-items: center;
}

.wpm-tourism-company-edit-row input[readonly] {
    background: #eef2f6;
    color: #667085;
}

.wpm-tourism-company-save {
    justify-content: flex-end;
    padding-bottom: 12px;
}

.wpm-tourism-company-save button {
    min-height: 50px;
    padding-right: 24px;
    padding-left: 24px;
}

.wpm-tourism-company-admin-inner > .wpm-alert.wpm-tourism-company-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 9999;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    transform: translateX(-50%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.wpm-logout-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.5);
}

.wpm-logout-confirm-modal[hidden] {
    display: none !important;
}

.wpm-logout-confirm-card {
    width: min(100%, 250px);
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.wpm-logout-confirm-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 8px;
    border-radius: 26px;
    background: #f2f4f7;
    color: #667085;
}

.wpm-logout-confirm-icon svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-logout-confirm-card h2 {
    margin: 0 0 8px;
    color: #344054;
    font-size: 22px;
}

.wpm-logout-confirm-card p {
    margin: 0 0 18px;
    color: #667085;
    font-size: 14px;
}

.wpm-logout-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wpm-logout-confirm-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.wpm-logout-confirm-no {
    background: #5f6368;
}

.wpm-logout-confirm-yes {
    background: #df0000;
}

@media (max-width: 900px) {
    .wpm-tourism-company-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpm-tourism-company-edit-row,
    .wpm-tourism-company-edit-row.is-vehicle {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .wpm-app.wpm-tourism-company-admin {
        width: 100%;
        padding: 12px;
    }

    .wpm-tourism-company-admin-header,
    .wpm-tourism-section-head,
    .wpm-tourism-company-page-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpm-tourism-company-admin-header {
        padding: 18px;
        border-radius: 20px;
    }

    .wpm-tourism-company-directory-grid,
    .wpm-tourism-company-form-grid,
    .wpm-tourism-company-edit-row,
    .wpm-tourism-company-edit-row.is-vehicle {
        grid-template-columns: 1fr;
    }

    .wpm-tourism-company-form-grid label.is-wide {
        grid-column: auto;
    }

    .wpm-tourism-company-page-actions .wpm-button,
    .wpm-tourism-company-edit-row button {
        width: 100%;
    }

    .wpm-tourism-section-head {
        gap: 14px;
    }

    .wpm-tourism-company-head-actions {
        align-self: flex-end;
    }

    .wpm-tourism-company-admin-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .wpm-tourism-company-admin-header > div {
        min-width: 0;
    }
}
.wpm-application-error-summary,
.wpm-application-server-error {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #f2aaa4;
    border-radius: 14px;
    background: #fff1ef;
    color: #9f2018;
    line-height: 1.45;
}

.wpm-application-error-summary strong {
    display: block;
    margin-bottom: 8px;
    color: #861810;
}

.wpm-application-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.wpm-application-error-summary li + li {
    margin-top: 5px;
}

.wpm-field-has-error input:not([type="checkbox"]):not([type="radio"]),
.wpm-field-has-error select,
.wpm-field-has-error textarea,
.wpm-field-has-error .wpm-date-display,
.wpm-field-has-error .wpm-datetime-picker,
.wpm-field-has-error canvas {
    border-color: #c92b22 !important;
    box-shadow: 0 0 0 3px rgba(201, 43, 34, 0.12) !important;
}

.wpm-field-has-error fieldset,
fieldset.wpm-field-has-error {
    border-color: #c92b22 !important;
}

.wpm-field-error {
    display: block;
    width: 100%;
    margin-top: 7px;
    color: #a5221a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.wpm-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
}

.wpm-submit-overlay.is-visible {
    display: flex;
}

.wpm-submit-overlay-panel {
    display: flex;
    width: min(360px, 100%);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 24px;
    border-radius: 20px;
    background: #fff;
    color: #111827;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.wpm-submit-overlay-panel strong {
    font-size: 18px;
}

.wpm-submit-overlay-panel small {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.wpm-submit-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #d8ddff;
    border-top-color: #5b43f1;
    border-radius: 50%;
    animation: wpm-submit-spin 0.8s linear infinite;
}

body.wpm-is-submitting-application {
    overflow: hidden;
}

@keyframes wpm-submit-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wpm-submit-spinner {
        animation-duration: 1.8s;
    }
}

/* v1.7.67 Staff Dashboard layout refinements. */
.wpm-staff-login-logo {
    display: block;
    width: min(230px, 78%);
    height: auto;
    margin: 0 auto 18px;
}

.wpm-staff-login-title {
    margin: 0 0 18px;
    color: #344054;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.wpm-staff-profile-menu {
    position: relative;
    flex: 0 0 auto;
}

.wpm-staff-profile-trigger {
    display: grid;
    place-items: center;
    min-width: 88px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.wpm-staff-profile-trigger::-webkit-details-marker {
    display: none;
}

.wpm-staff-profile-trigger:hover,
.wpm-staff-profile-menu[open] .wpm-staff-profile-trigger {
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.24);
}

.wpm-staff-profile-trigger:focus-visible {
    outline: 3px solid #89b7ff;
    outline-offset: 3px;
}

.wpm-staff-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    display: grid !important;
    width: min(250px, calc(100vw - 40px));
    gap: 8px !important;
    padding: 15px;
    border: 1px solid #dce3ef;
    border-radius: 16px;
    background: #fff;
    color: #101828;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.wpm-staff-shell .wpm-staff-profile-dropdown strong {
    color: #101828;
    font-size: 15px;
}

.wpm-staff-shell .wpm-staff-profile-dropdown span {
    margin-bottom: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.wpm-staff-shell .wpm-staff-profile-dropdown .wpm-staff-password-toggle,
.wpm-staff-shell .wpm-staff-profile-dropdown .wpm-logout button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: #f1f4f9;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}

.wpm-staff-shell .wpm-staff-profile-dropdown .wpm-staff-password-toggle:hover,
.wpm-staff-shell .wpm-staff-profile-dropdown .wpm-logout button:hover {
    background: #e5eaf2;
    color: #101828;
    transform: none;
}

.wpm-staff-shell .wpm-staff-profile-dropdown .wpm-staff-password-toggle:focus-visible,
.wpm-staff-shell .wpm-staff-profile-dropdown .wpm-logout button:focus-visible {
    outline: 3px solid #89b7ff;
    outline-offset: 2px;
}

.wpm-staff-performance-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-staff-performance-panel > .wpm-staff-filters {
    padding: 0 0 20px;
    border-bottom: 1px solid #e5e9f2;
}

.wpm-staff-search-panel {
    padding: 16px 0;
    border: 0;
    border-top: 1px solid #e5e9f2;
    border-bottom: 1px solid #e5e9f2;
    border-radius: 0;
    background: transparent;
}

.wpm-staff-today-panel,
.wpm-staff-manage-panel .wpm-staff-today-panel {
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-staff-today-head {
    align-items: flex-start;
}

.wpm-staff-task-refresh {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid #dbe3ef;
    border-radius: 50%;
    background: #f8fafc;
    color: #344054;
    box-shadow: none;
}

.wpm-staff-task-refresh:hover {
    border-color: #aebbd0;
    background: #eef2f7;
    color: #101828;
    transform: none;
}

.wpm-staff-task-refresh:focus-visible {
    outline: 3px solid #89b7ff;
    outline-offset: 2px;
}

.wpm-staff-task-refresh svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-staff-task-refresh.is-refreshing svg {
    animation: wpm-staff-refresh-spin 0.8s linear infinite;
}

@keyframes wpm-staff-refresh-spin {
    to { transform: rotate(360deg); }
}

.wpm-staff-task-group {
    display: block;
    overflow: hidden;
    border: 1px solid #e3e8f1;
    border-left: 4px solid #64748b;
    border-radius: 15px;
    background: #fff;
}

.wpm-staff-task-group.is-yellow { border-left-color: #f59e0b; }
.wpm-staff-task-group.is-blue { border-left-color: #2563eb; }
.wpm-staff-task-group.is-green { border-left-color: #16a34a; }
.wpm-staff-task-group.is-gray { border-left-color: #64748b; }
.wpm-staff-task-group.is-yellow .wpm-staff-task-title strong { color: #c2410c; }
.wpm-staff-task-group.is-blue .wpm-staff-task-title strong { color: #1d4ed8; }
.wpm-staff-task-group.is-green .wpm-staff-task-title strong { color: #15803d; }
.wpm-staff-task-group.is-gray .wpm-staff-task-title strong { color: #475569; }

.wpm-staff-task-group > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 12px 13px;
    color: #101828;
    list-style: none;
    cursor: pointer;
}

.wpm-staff-task-group > summary::-webkit-details-marker {
    display: none;
}

.wpm-staff-task-group > summary:hover {
    background: #f8fafc;
}

.wpm-staff-task-group > summary:focus-visible {
    outline: 3px solid #89b7ff;
    outline-offset: -3px;
}

.wpm-staff-task-group .wpm-staff-task-count {
    display: grid;
    place-items: center;
    min-width: 27px;
    min-height: 27px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef1f7;
    color: #101828;
    font-size: 12px;
    font-weight: 800;
}

.wpm-staff-task-chevron {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #667085;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.wpm-staff-task-group[open] .wpm-staff-task-chevron {
    transform: rotate(180deg);
}

.wpm-staff-task-content {
    display: grid;
    gap: 8px;
    padding: 0 13px 13px;
    border-top: 1px solid #eef1f6;
}

.wpm-staff-task-content > :first-child {
    margin-top: 12px;
}

.wpm-staff-today-panel > .wpm-staff-task-empty,
.wpm-staff-task-content > .wpm-staff-task-empty {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

@media (max-width: 520px) {
    .wpm-staff-login-logo {
        width: min(205px, 76%);
        margin-bottom: 14px;
    }

    .wpm-staff-login-title {
        font-size: 15px;
    }

    .wpm-staff-shell .wpm-staff-header {
        position: relative;
        align-items: flex-start;
        flex-direction: row;
        min-height: 118px;
        padding: 18px;
    }

    .wpm-staff-shell .wpm-staff-header > div:first-child {
        width: 100%;
        padding-right: 145px;
    }

    .wpm-staff-header .wpm-staff-header-actions {
        position: absolute;
        top: 16px;
        right: 16px;
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .wpm-staff-profile-trigger {
        min-width: 78px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 11px;
    }

    .wpm-staff-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wpm-staff-overview-card {
        min-height: 88px;
        gap: 10px;
        padding: 14px;
        border-radius: 16px;
    }

    .wpm-staff-overview-card span {
        font-size: 11px;
    }

    .wpm-staff-overview-card strong {
        font-size: 28px;
    }

    .wpm-staff-task-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .wpm-staff-task-group > summary {
        padding-right: 10px;
        padding-left: 11px;
    }
}

@media (max-width: 720px) {
    .wpm-staff-today-head {
        align-items: flex-start;
        flex-direction: row;
    }

    .wpm-staff-today-head .wpm-staff-task-refresh {
        width: 40px;
    }
}

/* v1.7.69 Scan QR branding, icon navigation and live-status refinements. */
.wpm-scan-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0 auto 24px;
    text-align: center;
}

.wpm-scan-brand img {
    display: block;
    width: min(320px, 92%);
    height: auto;
    object-fit: contain;
}

.wpm-scan-brand strong {
    color: #101828;
    font-size: clamp(19px, 4.8vw, 25px);
    font-weight: 900;
    letter-spacing: .015em;
    line-height: 1.2;
}

.wpm-scan-app .wpm-security-login-shell {
    width: min(100%, 430px);
    margin-inline: auto;
    text-align: left;
}

.wpm-scan-app .wpm-security-login-shell > h2 {
    text-align: center;
}

.wpm-scan-header-icon,
.wpm-icon-refresh {
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 auto;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 1px solid #dce2ec !important;
    border-radius: 50% !important;
    background: #f1f4f9 !important;
    color: #172033 !important;
    box-shadow: none !important;
}

.wpm-scan-header-icon svg,
.wpm-icon-refresh svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-scan-header-icon:hover,
.wpm-icon-refresh:hover {
    border-color: #6a54ef !important;
    background: #ebe8ff !important;
    color: #4f37dd !important;
}

.wpm-scan-header-icon:focus-visible,
.wpm-icon-refresh:focus-visible,
.wpm-scan-view-tabs [role="tab"]:focus-visible {
    outline: 3px solid rgba(89, 68, 242, .3) !important;
    outline-offset: 2px;
}

.wpm-icon-refresh.is-refreshing svg {
    animation: wpm-scan-refresh-spin .8s linear infinite;
}

@keyframes wpm-scan-refresh-spin {
    to { transform: rotate(360deg); }
}

.wpm-scan-topline {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.wpm-scan-topline > span {
    min-width: 0;
    flex: 1 1 auto;
}

.wpm-scan-topline-actions > form {
    margin: 0;
}

.wpm-scan-view-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e9f2;
}

.wpm-scan-view-tabs [role="tab"] {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 0;
    min-height: 70px;
    padding: 9px 6px;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    background: #f6f8fb;
    color: #526074;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.wpm-scan-view-tabs [role="tab"] svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-scan-view-tabs [role="tab"][aria-selected="true"] {
    border-color: #4f37dd;
    background: #4f37dd;
    color: #fff;
}

.wpm-scan-view-panel[hidden] {
    display: none !important;
}

.wpm-scan-view-panel .wpm-scan-tourism-panel,
.wpm-scan-view-panel .wpm-security-task-dashboard {
    margin-top: 0;
    padding-top: 0;
}

.wpm-scan-app .wpm-security-status-toggle {
    padding: 14px 15px;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    background: #f5f7fb;
    color: #172033;
    font-size: 18px;
}

.wpm-staff-contact-actions {
    justify-content: flex-end;
}

.wpm-staff-contact-actions .wpm-button-whatsapp,
.wpm-staff-contact-actions .wpm-button-call {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
}

.wpm-staff-contact-actions .wpm-button-whatsapp svg,
.wpm-staff-contact-actions .wpm-button-call svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-scan-notices .wpm-alert-success,
.wpm-staff-dashboard > .wpm-alert-success {
    position: fixed;
    z-index: 100000;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    width: min(calc(100vw - 32px), 430px);
    margin: 0;
    transform: translateX(-50%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .2);
}

@media (max-width: 480px) {
    .wpm-scan-topline {
        align-items: center;
    }

    .wpm-scan-topline > span {
        flex-basis: auto;
        font-size: 13px;
    }

    .wpm-scan-view-tabs {
        gap: 6px;
    }

    .wpm-scan-view-tabs [role="tab"] {
        min-height: 66px;
        padding-inline: 4px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpm-icon-refresh.is-refreshing svg {
        animation-duration: 1.6s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpm-staff-task-refresh.is-refreshing svg {
        animation-duration: 1.8s;
    }
}

/* v1.7.68 Staff controls and application workspace refinements. */
.wpm-staff-profile-trigger {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    letter-spacing: 0;
}

.wpm-staff-profile-trigger svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-staff-search-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
}

.wpm-staff-search-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpm-staff-search-toggle[aria-expanded="true"] {
    border-color: #4f37dd;
    background: #4f37dd;
    color: #fff;
}

.wpm-staff-manage-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-staff-manage-panel > h3 {
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e9f2;
}

.wpm-staff-application-toolbar {
    margin-top: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e9f2;
}

.wpm-staff-manage-list {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wpm-staff-manage-list > .wpm-staff-panel-head {
    padding: 0 0 12px;
    border-bottom: 1px solid #e5e9f2;
}

@media (max-width: 720px) {
    .wpm-staff-application-card {
        gap: 10px;
        padding: 13px;
        border-color: #e3e8f1;
        border-radius: 16px;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
    }

    .wpm-staff-application-card-head {
        gap: 9px;
    }

    .wpm-staff-card-unit {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }
}
