/* yoPMS unified interface system
   Loaded after the legacy theme so every browser surface shares one modern,
   accessible visual language without changing application behaviour. */

body.yopms-ui {
    --yui-brand: var(--primary-color, #2563eb);
    --yui-brand-strong: #174ea6;
    --yui-accent: var(--secondary-color, #f59e0b);
    --yui-ink: #172033;
    --yui-muted: #667085;
    --yui-subtle: #8a94a6;
    --yui-canvas: #f5f7fb;
    --yui-surface: #ffffff;
    --yui-surface-soft: #f8fafc;
    --yui-line: #e3e8ef;
    --yui-line-strong: #cbd5e1;
    --yui-success: #087f5b;
    --yui-success-soft: #e8f7f1;
    --yui-warning: #9a6700;
    --yui-warning-soft: #fff7d6;
    --yui-danger: #b42318;
    --yui-danger-soft: #fff0ee;
    --yui-info: #175cd3;
    --yui-info-soft: #eef4ff;
    --yui-radius-sm: 9px;
    --yui-radius: 14px;
    --yui-radius-lg: 20px;
    --yui-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 5px rgba(16, 24, 40, .04);
    --yui-shadow: 0 12px 34px rgba(20, 33, 61, .07);
    --yui-shadow-lg: 0 24px 70px rgba(20, 33, 61, .12);
    min-height: 100%;
    color: var(--yui-ink);
    background: var(--yui-canvas);
    font-family: var(--heading-fonts, "Open Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.yopms-ui *,
body.yopms-ui *::before,
body.yopms-ui *::after { box-sizing: border-box; }
body.yopms-ui img { max-width: 100%; }
body.yopms-ui a { text-underline-offset: 3px; }
body.yopms-ui :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--yui-brand) 34%, transparent);
    outline-offset: 2px;
}
body.yopms-ui h1,
body.yopms-ui h2,
body.yopms-ui h3,
body.yopms-ui h4,
body.yopms-ui h5,
body.yopms-ui h6 { color: var(--yui-ink); letter-spacing: -.018em; }
body.yopms-ui :where(.text-muted, .text-secondary-soft) { color: var(--yui-muted) !important; }

/* Application shell */
body.yopms-ui .page-content { padding: 26px 28px 38px; }
body.yopms-ui .main-content { background: var(--yui-canvas); min-height: 100vh; }
body.yopms-ui .header {
    min-height: 72px;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 20px rgba(20, 33, 61, .035);
    backdrop-filter: blur(14px);
}
body.yopms-ui .header-controls { gap: 8px; }
body.yopms-ui .header-content-left,
body.yopms-ui .header-controls { min-width: 0; }
body.yopms-ui .header-control-item,
body.yopms-ui .header .dropdown-toggle {
    border-radius: 11px;
}
body.yopms-ui .sidebar {
    border-inline-end: 1px solid rgba(226, 232, 240, .9);
    background: #fff;
    box-shadow: 8px 0 30px rgba(20, 33, 61, .035);
}
body.yopms-ui .sidebar-header { border-bottom: 1px solid var(--yui-line); }
body.yopms-ui .sidebar-menu { padding: 12px 10px 24px; }
body.yopms-ui .menu-divider {
    margin: 20px 10px 8px !important;
    color: #98a2b3 !important;
    font-size: 10px;
    font-weight: 800 !important;
    letter-spacing: .1em;
}
body.yopms-ui .sidebar-menu a,
body.yopms-ui .sidebar-menu button {
    min-height: 42px;
    border-radius: 10px;
    color: #475467;
    font-weight: 600;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
body.yopms-ui .sidebar-menu a:hover,
body.yopms-ui .sidebar-menu a.active,
body.yopms-ui .sidebar-menu li.mm-active > a {
    color: var(--yui-brand);
    background: color-mix(in srgb, var(--yui-brand) 9%, white);
}
body.yopms-ui .sidebar-dropdown-menu .sidebar-dropdown-menu { margin: 3px 0 8px 12px; padding-inline-start: 8px; border-inline-start: 1px solid var(--yui-line); }

/* Page hierarchy and surfaces */
body.yopms-ui .panel-title,
body.yopms-ui .card-title {
    color: var(--yui-ink);
    font-weight: 750;
    letter-spacing: -.02em;
}
body.yopms-ui .panel-title { margin-bottom: 18px; font-size: clamp(20px, 2vw, 26px); }
body.yopms-ui .card-title { font-size: 18px; }
body.yopms-ui :where(.ot-card, .data-table-card, .white-bg, .card, .modal-content, .dropdown-menu) {
    border: 1px solid var(--yui-line);
    border-radius: var(--yui-radius);
    background: var(--yui-surface);
    box-shadow: var(--yui-shadow-sm);
}
body.yopms-ui .ot-card { padding: clamp(18px, 2.2vw, 28px); }
body.yopms-ui .data-table-card { overflow: hidden; }
body.yopms-ui .dropdown-menu { padding: 7px; box-shadow: var(--yui-shadow); }
body.yopms-ui .dropdown-item { border-radius: 8px; padding: 9px 11px; color: #475467; }
body.yopms-ui .dropdown-item:hover,
body.yopms-ui .dropdown-item:focus { color: var(--yui-brand); background: var(--yui-info-soft); }
body.yopms-ui .modal-content { overflow: hidden; box-shadow: var(--yui-shadow-lg); }
body.yopms-ui .modal-header,
body.yopms-ui .modal-footer { padding: 17px 20px; border-color: var(--yui-line); }
body.yopms-ui .modal-body { padding: 20px; }
body.yopms-ui .breadcrumb { gap: 4px; margin-bottom: 14px; color: var(--yui-muted); font-size: 12px; }

/* Buttons and actions */
body.yopms-ui :where(.btn, .btn-primary-fill, .btn-primary-outline, .btn-danger-outline, .btn-secondary) {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    padding: 9px 15px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
body.yopms-ui :where(.btn, .btn-primary-fill, .btn-primary-outline, .btn-danger-outline):hover { transform: translateY(-1px); }
body.yopms-ui .btn-primary-fill,
body.yopms-ui .btn-primary { border-color: var(--yui-brand); background: var(--yui-brand); color: #fff; box-shadow: 0 7px 16px color-mix(in srgb, var(--yui-brand) 20%, transparent); }
body.yopms-ui .btn-primary-fill:hover,
body.yopms-ui .btn-primary:hover { border-color: var(--yui-brand-strong); background: var(--yui-brand-strong); color: #fff; }
body.yopms-ui :where(.btn-outline-primary, .btn-primary-outline) { border: 1px solid color-mix(in srgb, var(--yui-brand) 40%, white); background: #fff; color: var(--yui-brand); }
body.yopms-ui :where(.btn-outline-secondary, .btn-secondary) { border: 1px solid var(--yui-line-strong); background: #fff; color: #475467; }
body.yopms-ui .btn-danger-outline { border: 1px solid #f6c7c3; background: #fff; color: var(--yui-danger); }
body.yopms-ui .action-icon,
body.yopms-ui .asset-action,
body.yopms-ui .dropdown-action {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--yui-line);
    border-radius: 10px !important;
    background: #fff;
    color: #475467;
    box-shadow: none;
}
body.yopms-ui .action-icon:hover,
body.yopms-ui .asset-action:hover { color: var(--yui-brand); border-color: color-mix(in srgb, var(--yui-brand) 32%, white); background: var(--yui-info-soft); }

/* Forms */
body.yopms-ui .form-label,
body.yopms-ui label { margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
body.yopms-ui :where(.form-control, .form-select, .ot-form-control, .ot-input, .select2-selection) {
    min-height: 44px;
    border: 1px solid var(--yui-line-strong) !important;
    border-radius: 10px !important;
    background-color: #fff;
    color: var(--yui-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.yopms-ui :where(.form-control, .form-select, .ot-form-control, .ot-input):hover { border-color: #98a2b3 !important; }
body.yopms-ui :where(.form-control, .form-select, .ot-form-control, .ot-input):focus {
    border-color: var(--yui-brand) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--yui-brand) 13%, transparent) !important;
}
body.yopms-ui textarea.form-control { min-height: 112px; resize: vertical; }
body.yopms-ui .form-check-input { width: 18px; height: 18px; border-color: var(--yui-line-strong); }
body.yopms-ui .form-check-input:checked { border-color: var(--yui-brand); background-color: var(--yui-brand); }
body.yopms-ui :where(.error, .invalid-feedback, .text-danger) { line-height: 1.35; }
body.yopms-ui .error,
body.yopms-ui .invalid-feedback { display: block; width: 100%; margin-top: 6px; color: var(--yui-danger) !important; font-size: 12px; font-weight: 600; text-align: start; }
body.yopms-ui .is-invalid,
body.yopms-ui [aria-invalid="true"] { border-color: #e17168 !important; }
body.yopms-ui fieldset,
body.yopms-ui .form-section { padding: 20px; border: 1px solid var(--yui-line); border-radius: var(--yui-radius); background: var(--yui-surface-soft); }
body.yopms-ui legend { width: auto; padding: 0 7px; color: var(--yui-ink); font-size: 15px; font-weight: 750; }

/* Tables, filters, pagination */
body.yopms-ui .table-responsive { border-radius: inherit; }
body.yopms-ui table.table { margin: 0; color: #344054; border-color: var(--yui-line); }
body.yopms-ui table.table > :not(caption) > * > * { padding: 14px 16px; border-bottom-color: var(--yui-line); vertical-align: middle; }
body.yopms-ui table.table thead th,
body.yopms-ui .thead th {
    color: #667085;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
body.yopms-ui table.table tbody tr { transition: background .14s ease; }
body.yopms-ui table.table tbody tr:hover { background: #fbfcfe; }
body.yopms-ui .table-toolbar,
body.yopms-ui .table-filter-container,
body.yopms-ui .search-filter-container { gap: 10px; padding: 16px; border: 1px solid var(--yui-line); border-radius: var(--yui-radius); background: #fff; box-shadow: var(--yui-shadow-sm); }
body.yopms-ui .pagination { gap: 5px; margin-top: 18px; }
body.yopms-ui .page-link { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--yui-line); border-radius: 9px !important; color: #475467; background: #fff; }
body.yopms-ui .page-item.active .page-link { border-color: var(--yui-brand); background: var(--yui-brand); color: #fff; }

/* Status, alerts, tabs and empty states */
body.yopms-ui :where(.badge, [class*="badge-"]) { border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 750; letter-spacing: .015em; }
body.yopms-ui :where(.badge-success, .badge.bg-success) { color: var(--yui-success) !important; background: var(--yui-success-soft) !important; }
body.yopms-ui :where(.badge-warning, .badge.bg-warning) { color: var(--yui-warning) !important; background: var(--yui-warning-soft) !important; }
body.yopms-ui :where(.badge-danger, .badge.bg-danger) { color: var(--yui-danger) !important; background: var(--yui-danger-soft) !important; }
body.yopms-ui .alert { border: 1px solid transparent; border-radius: 12px; padding: 13px 15px; }
body.yopms-ui .alert-danger { border-color: #ffd4cf; color: var(--yui-danger); background: var(--yui-danger-soft); }
body.yopms-ui .alert-success { border-color: #b9e7d5; color: var(--yui-success); background: var(--yui-success-soft); }
body.yopms-ui .alert-warning { border-color: #f5dc8c; color: var(--yui-warning); background: var(--yui-warning-soft); }
body.yopms-ui .nav-tabs { gap: 5px; padding: 5px; border: 1px solid var(--yui-line); border-radius: 12px; background: #f8fafc; }
body.yopms-ui .nav-tabs .nav-link { border: 0; border-radius: 9px; padding: 9px 13px; color: var(--yui-muted); font-weight: 700; }
body.yopms-ui .nav-tabs .nav-link.active { color: var(--yui-brand); background: #fff; box-shadow: var(--yui-shadow-sm); }
body.yopms-ui :where(.empty-table, .empty-state, .no-data-found, .yopms-listing-empty) { padding: 54px 20px; border: 1px dashed var(--yui-line-strong); border-radius: var(--yui-radius); background: #fbfcfe; color: var(--yui-muted); text-align: center; }

/* Dashboards and detail views */
body.yopms-ui :where(.dashboard-card, .single-dashboard-card, .analytics-card, .summary-card, .asset-kpi) {
    border: 1px solid var(--yui-line);
    border-radius: var(--yui-radius);
    background: #fff;
    box-shadow: var(--yui-shadow-sm);
}
body.yopms-ui :where(.dashboard-card, .single-dashboard-card, .analytics-card, .summary-card):hover { box-shadow: var(--yui-shadow); }
body.yopms-ui .asset-hero,
body.yopms-ui .registration-review-hero,
body.yopms-ui .profile-header { border-radius: var(--yui-radius-lg); box-shadow: var(--yui-shadow); }
body.yopms-ui .asset-tabs { position: sticky; top: 76px; z-index: 8; padding: 7px; border: 1px solid var(--yui-line); border-radius: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }

/* Public site and client surfaces */
body.yopms-ui main { min-width: 0; }
body.yopms-ui :where(.header-area, .navbar-area, .client-header) { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--yui-line); box-shadow: 0 6px 24px rgba(20,33,61,.04); backdrop-filter: blur(14px); }
body.yopms-ui :where(.single-product, .yopms-asset-card, .property-card, .profile-account-area .ot-card) { border-color: var(--yui-line); border-radius: var(--yui-radius); box-shadow: var(--yui-shadow-sm); overflow: hidden; }
body.yopms-ui :where(.single-product, .yopms-asset-card, .property-card):hover { transform: translateY(-2px); box-shadow: var(--yui-shadow); }
body.yopms-ui :where(.single-product, .yopms-asset-card, .property-card) { transition: transform .18s ease, box-shadow .18s ease; }
body.yopms-ui .section-bg-two { background: var(--yui-canvas); }
body.yopms-ui footer { border-top: 1px solid var(--yui-line); }

/* Authentication and status */
body.yopms-ui .auth-wrapper,
body.yopms-ui .login-wrapper { min-height: 100vh; }
body.yopms-ui .auth-container { box-shadow: var(--yui-shadow-lg); }
body.yopms-ui .form-container { padding: clamp(24px, 5vw, 56px); }
body.yopms-ui .auth-right-content {
    isolation: isolate;
    position: relative;
    align-self: stretch;
    min-height: 100vh;
    overflow: hidden;
    border-inline-start: 1px solid #dbe5f0;
    background: linear-gradient(145deg, #ffffff 0%, #f5f8fc 48%, #edf4fb 100%) !important;
    color: #344054;
}
body.yopms-ui .auth-right-content::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -155px;
    inset-inline-end: -130px;
    bottom: auto;
    inset-inline-start: auto;
    width: 430px;
    min-height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 115, 255, .15) 0%, rgba(17, 115, 255, .05) 48%, transparent 70%);
    pointer-events: none;
}
body.yopms-ui .auth-right-content::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset-inline-start: -95px;
    bottom: -115px;
    width: 310px;
    height: 310px;
    border: 58px solid rgba(249, 148, 23, .07);
    border-radius: 50%;
    pointer-events: none;
}
body.yopms-ui .auth-right-content > * { position: relative; z-index: 1; }
body.yopms-ui .auth-right-content .title {
    margin-bottom: 5px;
    color: #172033 !important;
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.12;
}
body.yopms-ui .auth-right-content .para {
    margin-bottom: 22px;
    color: #475467 !important;
    font-size: 18px;
}
body.yopms-ui .auth-right-content > p:not(.para) { color: #5b687b !important; }
body.yopms-ui .auth-right-content .feature {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    margin-bottom: 13px;
    border: 1px solid #cfe0f7;
    border-radius: 999px;
    background: #eaf3ff;
    color: #175cad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.yopms-ui .auth-right-content .feature-list {
    gap: 9px;
    width: 100%;
    margin: 4px 0 0;
}
body.yopms-ui .auth-right-content .feature-list .list-items {
    color: #344054 !important;
    font-weight: 650;
}
body.yopms-ui .auth-right-content .feature-list .icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #e7f1ff;
    color: #1764bb;
}
body.yopms-ui .auth-feature-slider {
    border: 6px solid #fff;
    border-radius: 18px;
    background: #e8eef5;
    box-shadow: 0 20px 48px rgba(40, 61, 89, .16);
}
body.yopms-ui .auth-feature-slider-dot {
    width: 9px;
    height: 9px;
    border-color: rgba(255, 255, 255, .95);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 1px 5px rgba(16, 24, 40, .25);
}
body.yopms-ui .auth-feature-slider-dot.is-active { background: var(--yui-brand); }
body.yopms-ui .auth-popup-dialog { border: 1px solid var(--yui-line); border-radius: var(--yui-radius-lg); box-shadow: var(--yui-shadow-lg); }
body.yopms-ui.pending-dashboard-body { background: var(--yui-canvas); }
body.yopms-ui .pending-dashboard-navbar { border-bottom: 1px solid var(--yui-line); background: rgba(255,255,255,.95); box-shadow: var(--yui-shadow-sm); }
body.yopms-ui .pending-dashboard-brand-favicon { display: none; }

/* Error screens */
body.yopms-ui .error-page,
body.yopms-ui .error-wrapper { min-height: 100vh; display: grid; place-items: center; text-align: center; }

/* Shared print workspace and operational documents */
body.yopms-ui #printableArea { max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); border: 1px solid var(--yui-line); border-radius: var(--yui-radius); background: #fff; box-shadow: var(--yui-shadow-sm); }
body.yopms-ui #printableArea .top { border-bottom-color: var(--yui-brand) !important; }
body.yopms-ui #printableArea .invoice-title { color: var(--yui-ink); }
body.yopms-ui #printableArea .summary { padding: 15px 18px; border-radius: 10px; background: #f8fafc; }

/* Responsive register cards - labels are supplied by yopms-ui.js. */
@media (max-width: 767.98px) {
    body.yopms-ui .page-content { padding: 18px 14px 28px; }
    body.yopms-ui .ot-card { padding: 17px; }
    body.yopms-ui .header { min-height: 64px; }
    body.yopms-ui .table-toolbar,
    body.yopms-ui .table-filter-container,
    body.yopms-ui .search-filter-container { align-items: stretch !important; flex-direction: column !important; }
    body.yopms-ui .table-toolbar :where(.btn, .form-control, .form-select),
    body.yopms-ui .table-filter-container :where(.btn, .form-control, .form-select) { width: 100%; }
    body.yopms-ui .data-table-card__responsive { overflow: visible; }
    body.yopms-ui table.yopms-responsive-table,
    body.yopms-ui table.yopms-responsive-table tbody,
    body.yopms-ui table.yopms-responsive-table tr,
    body.yopms-ui table.yopms-responsive-table td { display: block; width: 100%; }
    body.yopms-ui table.yopms-responsive-table { border: 0; background: transparent; }
    body.yopms-ui table.yopms-responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body.yopms-ui table.yopms-responsive-table tbody { display: grid; gap: 12px; }
    body.yopms-ui table.yopms-responsive-table tbody tr { padding: 8px 14px; border: 1px solid var(--yui-line); border-radius: 13px; background: #fff; box-shadow: var(--yui-shadow-sm); }
    body.yopms-ui table.yopms-responsive-table tbody td { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 !important; border-bottom: 1px solid #edf1f5; text-align: end !important; }
    body.yopms-ui table.yopms-responsive-table tbody td:last-child { border-bottom: 0; }
    body.yopms-ui table.yopms-responsive-table tbody td::before { content: attr(data-yopms-label); flex: 0 0 42%; color: var(--yui-muted); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-align: start; text-transform: uppercase; }
    body.yopms-ui table.yopms-responsive-table tbody td[colspan] { display: block; text-align: center !important; }
    body.yopms-ui table.yopms-responsive-table tbody td[colspan]::before { content: none; }
    body.yopms-ui #printableArea { padding: 18px; overflow-x: auto; }
}

@media (max-width: 575.98px) {
    body.yopms-ui :where(.btn, .btn-primary-fill, .btn-primary-outline, .btn-danger-outline) { min-height: 42px; }
    body.yopms-ui .modal-dialog { margin: 10px; }
    body.yopms-ui .nav-tabs { overflow-x: auto; flex-wrap: nowrap; }
    body.yopms-ui .nav-tabs .nav-link { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    body.yopms-ui *,
    body.yopms-ui *::before,
    body.yopms-ui *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    body.yopms-ui { background: #fff !important; }
    body.yopms-ui #printableArea { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
}

/* Accessible account workspace switcher. Kept independent of Bootstrap dropdown rules. */
body.yopms-ui .yopms-role-switcher { position: relative; display: inline-flex; flex: 0 0 auto; overflow: visible; }
body.yopms-ui .yopms-role-switcher__button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; max-width: 230px;
    padding: 8px 12px; border: 1px solid #cddbea; border-radius: 11px; background: #fff; color: #233348;
    box-shadow: 0 3px 10px rgba(31, 52, 77, .05); font-size: 14px; font-weight: 750; line-height: 1.2; cursor: pointer;
}
body.yopms-ui .yopms-role-switcher__button:hover { border-color: #4c83b5; color: #085499; }
body.yopms-ui .yopms-role-switcher__button:focus-visible,
body.yopms-ui .yopms-role-switcher__option:focus-visible,
body.yopms-ui .yopms-role-switcher__manage:focus-visible { outline: 3px solid rgba(8, 84, 153, .2); outline-offset: 2px; }
body.yopms-ui .yopms-role-switcher__button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.yopms-ui .yopms-role-switcher svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
body.yopms-ui .yopms-role-switcher__swap { width: 20px; height: 20px; }
body.yopms-ui .yopms-role-switcher__chevron { width: 16px; height: 16px; transition: transform .18s ease; }
body.yopms-ui .yopms-role-switcher.is-open .yopms-role-switcher__chevron { transform: rotate(180deg); }
body.yopms-ui .yopms-role-switcher__menu {
    position: absolute; inset: calc(100% + 8px) 0 auto auto; z-index: 1085; width: max-content; min-width: 250px; max-width: min(310px, calc(100vw - 24px));
    max-height: min(430px, calc(100dvh - 90px)); padding: 8px; overflow: auto; opacity: 1; visibility: visible;
    border: 1px solid #dce6f0; border-radius: 13px; background: #fff; box-shadow: 0 18px 44px rgba(31, 52, 77, .2);
}
body.yopms-ui .yopms-role-switcher__menu[hidden] { display: none !important; }
body.yopms-ui .yopms-role-switcher__heading { padding: 7px 10px; color: #64748b; font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
body.yopms-ui .yopms-role-switcher__menu form { margin: 0; }
body.yopms-ui .yopms-role-switcher__option,
body.yopms-ui .yopms-role-switcher__manage {
    display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 11px;
    border: 0; border-radius: 9px; background: transparent; color: #233348; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.3; text-align: start; text-decoration: none; cursor: pointer;
}
body.yopms-ui .yopms-role-switcher__option:hover,
body.yopms-ui .yopms-role-switcher__manage:hover { background: #edf6fd; color: #085499; }
body.yopms-ui .yopms-role-switcher__option.is-active { background: #e8f3fc; color: #085499; font-weight: 800; cursor: default; opacity: 1; }
body.yopms-ui .yopms-role-switcher__current { display: inline-flex; align-items: center; color: #087957; }
body.yopms-ui .yopms-role-switcher__current svg { width: 18px; height: 18px; stroke-width: 2.3; }
body.yopms-ui .yopms-role-switcher__manage { justify-content: flex-start; margin-top: 6px; border-top: 1px solid #e4ebf2; border-radius: 0 0 8px 8px; }
body.yopms-ui .yopms-role-switcher__manage svg { width: 19px; height: 19px; }
body.yopms-ui .yopms-role-switcher__status { min-height: 0; color: #085499; font-size: 13px; font-weight: 750; text-align: center; }
body.yopms-ui .yopms-role-switcher__status:not(:empty) { min-height: 36px; padding: 9px 10px 5px; }
body.yopms-ui .yopms-role-switcher.is-switching .yopms-role-switcher__menu { pointer-events: none; }
body.yopms-ui .yopms-role-switcher.is-switching .yopms-role-switcher__button { opacity: .72; cursor: wait; }

/* Responsive header controls and overflow disclosure */
body.yopms-ui .yopms-header-more { position: relative; display: none; flex: 0 0 auto; }
body.yopms-ui .yopms-header-icon-button {
    display: inline-grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid #d9e1ec;
    border-radius: 12px; background: #fff; color: #24324a; box-shadow: 0 3px 10px rgba(31,52,77,.05); cursor: pointer;
}
body.yopms-ui .yopms-header-icon-button:hover { border-color: var(--yui-brand); color: var(--yui-brand); background: var(--yui-info-soft); }
body.yopms-ui .yopms-header-icon-button svg { width: 22px; height: 22px; fill: currentColor; }
body.yopms-ui .yopms-header-more__menu {
    position: absolute; z-index: 1090; inset: calc(100% + 9px) 0 auto auto; width: min(310px, calc(100vw - 20px));
    max-height: min(520px, calc(100dvh - 84px)); padding: 8px; overflow-y: auto; border: 1px solid var(--yui-line);
    border-radius: 14px; background: #fff; box-shadow: var(--yui-shadow-lg);
}
body.yopms-ui .yopms-header-more__menu[hidden] { display: none !important; }
body.yopms-ui .yopms-header-more__heading { padding: 7px 10px; color: var(--yui-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.yopms-ui .yopms-header-more__section { padding: 7px 10px 4px; color: var(--yui-subtle); font-size: 11px; font-weight: 800; text-transform: uppercase; }
body.yopms-ui .yopms-header-more__menu form { margin: 0; }
body.yopms-ui .yopms-header-more__item {
    display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 10px 11px; border: 0;
    border-radius: 9px; background: transparent; color: #344054; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: start; text-decoration: none; cursor: pointer;
}
body.yopms-ui .yopms-header-more__item:hover,
body.yopms-ui .yopms-header-more__item:focus { color: var(--yui-brand); background: var(--yui-info-soft); }
body.yopms-ui .yopms-header-more__item i { width: 20px; flex: 0 0 20px; font-size: 19px; text-align: center; }
body.yopms-ui .yopms-header-more__item.is-current { color: var(--yui-brand); background: var(--yui-info-soft); }
body.yopms-ui .yopms-header-more__divider { height: 1px; margin: 6px 4px; background: var(--yui-line); }
body.yopms-ui .yopms-header-more__tablet-hide { display: none; }
body.yopms-ui .yopms-sidebar-backdrop { display: none; }

@media (max-width: 1199.98px) {
    body.yopms-ui .yopms-header-more { display: inline-flex; }
    body.yopms-ui .yopms-header-desktop-secondary { display: none !important; }
    body.yopms-ui .header { padding-inline: 10px; }
    body.yopms-ui .header-controls { margin-inline-start: auto; }
    body.yopms-ui .header-content-left .header-search { display: none !important; }
}
body.yopms-ui .header .dropdown-menu.show { max-height: min(520px, calc(100dvh - 84px)); overflow-y: auto; opacity: 1; visibility: visible; }
@media (max-width: 991.98px) {
    body.yopms-ui .header { width: 100%; height: 68px; min-height: 68px; padding: 8px 10px; }
    body.yopms-ui .header-controls { gap: 6px; }
    body.yopms-ui .header-content-left { flex: 0 0 auto; }
    body.yopms-ui .page-content { padding-top: 20px; }
    body.yopms-ui.yopms-sidebar-open { overflow: hidden; }
    body.yopms-ui .yopms-sidebar-backdrop { position: fixed; z-index: 90; inset: 68px 0 0; display: block; border: 0; background: rgba(15,23,42,.48); backdrop-filter: blur(2px); }
    body.yopms-ui .yopms-sidebar-backdrop[hidden] { display: none !important; }
    body.yopms-ui #layout-wrapper.sidebar-expand .sidebar { z-index: 100; box-shadow: 18px 0 50px rgba(15,23,42,.2); }
}
@media (max-width: 767.98px) {
    body.yopms-ui .yopms-header-tablet-action { display: none !important; }
    body.yopms-ui .yopms-header-more__tablet-hide { display: flex; }
    body.yopms-ui .header-controls > .badge,
    body.yopms-ui .header-controls .header-approval-badge { display: none !important; }
    body.yopms-ui .header .profile-photo { width: 40px !important; height: 40px !important; }
    body.yopms-ui .role-table { min-width: 0; }
    body.yopms-ui .role-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    body.yopms-ui .role-table tbody,
    body.yopms-ui .role-table tr,
    body.yopms-ui .role-table td { display: block; width: 100%; }
    body.yopms-ui .role-table tbody { display: grid; gap: 12px; }
    body.yopms-ui .role-table tbody tr { padding: 8px 14px; border: 1px solid var(--yui-line); border-radius: 13px; background: #fff; }
    body.yopms-ui .role-table tbody td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; overflow-wrap: anywhere; border-bottom: 1px solid var(--yui-line); text-align: end; }
    body.yopms-ui .role-table tbody td:last-child { border-bottom: 0; }
    body.yopms-ui .role-table tbody td::before { content: attr(data-label); flex: 0 0 38%; color: var(--yui-muted); font-size: 11px; font-weight: 800; text-align: start; text-transform: uppercase; }
    body.yopms-ui .role-table tbody td[colspan]::before { content: none; }
    body.yopms-ui .role-activity-item { min-width: 0; }
    body.yopms-ui .role-activity-item > strong:last-child { margin-inline-start: 52px; overflow-wrap: anywhere; }
    body.yopms-ui .pending-dashboard-account-copy { display: none; }
}
@media (max-width: 575.98px) {
    body.yopms-ui .yopms-header-icon-button { width: 40px; height: 40px; }
    body.yopms-ui .yopms-header-more__menu { position: fixed; inset: 66px 8px auto auto; width: min(310px, calc(100vw - 16px)); }
    body.yopms-ui .header-controls { gap: 4px; }
    body.yopms-ui .role-dashboard__hero .role-dashboard__actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
    body.yopms-ui .role-dashboard__hero .role-dashboard__button { width: 100%; min-width: 0; padding-inline: 10px; }
    body.yopms-ui .client-profile-control { display: none !important; }
    body.yopms-ui .menu_quick_actions { min-width: 0; }
    body.yopms-ui .menu_quick_actions > ul { min-width: 0; gap: 4px !important; }
    body.yopms-ui .pending-dashboard-navbar { gap: 8px; padding-inline: 10px; }
    body.yopms-ui .pending-dashboard-brand { min-width: 0; }
    body.yopms-ui .pending-dashboard-brand-logo { width: auto; max-width: 96px; max-height: 36px; }
}
@media (max-width: 379.98px) {
    body.yopms-ui .header-controls { gap: 3px; }
    body.yopms-ui .yopms-header-mobile-optional { display: none !important; }
    body.yopms-ui .pending-dashboard-brand-logo { display: none; }
    body.yopms-ui .pending-dashboard-brand-favicon { display: block; width: 32px; height: 32px; border-radius: 7px; object-fit: contain; }
}
@media (max-width: 575.98px) {
    body.yopms-ui .yopms-role-switcher__button { width: 42px; max-width: 42px; padding: 8px; }
    body.yopms-ui .yopms-role-switcher__button > span,
    body.yopms-ui .yopms-role-switcher__chevron { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body.yopms-ui .yopms-role-switcher__menu { position: fixed; inset: 68px 10px auto auto; width: min(300px, calc(100vw - 20px)); max-height: calc(100dvh - 84px); }
}

/* Role-specific dashboard system */
body.yopms-ui .role-dashboard {
    --rd-accent: var(--yui-brand);
    display: grid;
    gap: 18px;
    width: min(1540px, 100%);
    margin-inline: auto;
    color: var(--yui-ink);
    font-size: 15px;
}
body.yopms-ui .role-dashboard--client { --rd-accent: #0f766e; }
body.yopms-ui .role-dashboard--property-manager { --rd-accent: #4f46e5; }
body.yopms-ui .role-dashboard--maintainer { --rd-accent: #7c3aed; }
body.yopms-ui .role-dashboard--admin,
body.yopms-ui .role-dashboard--super-admin { --rd-accent: #175cd3; }
body.yopms-ui .role-dashboard__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 176px;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--rd-accent) 20%, white);
    border-radius: 24px;
    background: linear-gradient(125deg, color-mix(in srgb, var(--rd-accent) 12%, white), #fff 64%);
    box-shadow: var(--yui-shadow);
}
body.yopms-ui .role-dashboard__hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rd-accent) 9%, transparent);
}
body.yopms-ui .role-dashboard__hero > * { position: relative; z-index: 1; }
body.yopms-ui .role-dashboard__eyebrow,
body.yopms-ui .role-panel__kicker {
    display: block;
    color: var(--rd-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
body.yopms-ui .role-dashboard__hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
body.yopms-ui .role-dashboard__hero p { max-width: 720px; margin: 0; color: var(--yui-muted); font-size: 16px; line-height: 1.65; }
body.yopms-ui .role-dashboard__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
body.yopms-ui .role-dashboard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid var(--yui-line-strong);
    border-radius: 12px;
    color: var(--yui-ink);
    background: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: var(--yui-shadow-sm);
}
body.yopms-ui .role-dashboard__button:hover { color: var(--rd-accent); border-color: var(--rd-accent); transform: translateY(-1px); }
body.yopms-ui .role-dashboard__button--primary { color: #fff; border-color: var(--rd-accent); background: var(--rd-accent); }
body.yopms-ui .role-dashboard__button--primary:hover { color: #fff; filter: brightness(.94); }
body.yopms-ui .role-dashboard__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.yopms-ui .role-stat-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 2px 12px;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--yui-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--yui-shadow-sm);
}
body.yopms-ui .role-stat-card__icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #175cd3; background: #eef4ff; font-size: 24px; }
body.yopms-ui .role-stat-card--green .role-stat-card__icon { color: #087a4b; background: #e8f7f1; }
body.yopms-ui .role-stat-card--amber .role-stat-card__icon { color: #9a6700; background: #fff7d6; }
body.yopms-ui .role-stat-card--violet .role-stat-card__icon { color: #6941c6; background: #f4f0ff; }
body.yopms-ui .role-stat-card--red .role-stat-card__icon { color: #b42318; background: #fff0ee; }
body.yopms-ui .role-stat-card__label { color: var(--yui-muted); font-size: 14px; font-weight: 650; }
body.yopms-ui .role-stat-card > strong { overflow-wrap: anywhere; font-size: clamp(23px, 2.2vw, 31px); line-height: 1.15; }
body.yopms-ui .role-stat-card > small { color: var(--yui-subtle); font-size: 12px; }
body.yopms-ui .role-dashboard__attention { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--yui-line); border-radius: 16px; background: #fff; box-shadow: var(--yui-shadow-sm); }
body.yopms-ui .role-dashboard__attention > a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; min-width: 0; padding: 16px 18px; color: var(--yui-ink); text-decoration: none; }
body.yopms-ui .role-dashboard__attention > a + a { border-inline-start: 1px solid var(--yui-line); }
body.yopms-ui .role-dashboard__attention > a:hover { background: var(--yui-surface-soft); }
body.yopms-ui .role-dashboard__attention-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--rd-accent); background: color-mix(in srgb, var(--rd-accent) 9%, white); font-size: 21px; }
body.yopms-ui .role-dashboard__attention strong,
body.yopms-ui .role-dashboard__attention small { display: block; }
body.yopms-ui .role-dashboard__attention strong { font-size: 14px; }
body.yopms-ui .role-dashboard__attention small { margin-top: 2px; color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-dashboard__grid { display: grid; gap: 18px; }
body.yopms-ui .role-dashboard__grid--main { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); }
body.yopms-ui .role-dashboard__grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.yopms-ui .role-panel { min-width: 0; padding: clamp(19px, 2vw, 26px); border: 1px solid var(--yui-line); border-radius: 18px; background: #fff; box-shadow: var(--yui-shadow-sm); }
body.yopms-ui .role-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
body.yopms-ui .role-panel__header h2 { margin: 3px 0 0; font-size: clamp(19px, 2vw, 23px); }
body.yopms-ui .role-panel__header > a { color: var(--rd-accent); font-size: 14px; font-weight: 750; text-decoration: none; }
body.yopms-ui .role-panel__meta { color: var(--yui-muted); font-size: 14px; }
body.yopms-ui .role-chart { min-height: 270px; }
body.yopms-ui .role-finance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
body.yopms-ui .role-finance-summary div { padding: 12px; border-radius: 11px; background: var(--yui-surface-soft); }
body.yopms-ui .role-finance-summary span,
body.yopms-ui .role-finance-summary strong { display: block; }
body.yopms-ui .role-finance-summary span { color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-finance-summary strong { margin-top: 3px; overflow-wrap: anywhere; font-size: 16px; }
body.yopms-ui .role-progress-list { display: grid; gap: 19px; }
body.yopms-ui .role-progress > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 14px; }
body.yopms-ui .role-progress__track { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #edf2f7; }
body.yopms-ui .role-progress__fill { display: block; height: 100%; border-radius: inherit; background: #175cd3; }
body.yopms-ui .role-progress__fill--green { background: #10b981; }
body.yopms-ui .role-progress__fill--amber { background: #f59e0b; }
body.yopms-ui .role-mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--yui-line); border-radius: 12px; }
body.yopms-ui .role-mini-metrics > div { display: grid; gap: 2px; padding: 12px 8px; text-align: center; }
body.yopms-ui .role-mini-metrics > div + div { border-inline-start: 1px solid var(--yui-line); }
body.yopms-ui .role-mini-metrics strong { font-size: 18px; }
body.yopms-ui .role-mini-metrics span { color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.yopms-ui .role-domain-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--yui-line); border-radius: 14px; background: var(--yui-surface-soft); }
body.yopms-ui .role-domain-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--rd-accent); background: #fff; font-size: 23px; }
body.yopms-ui .role-domain-card small,
body.yopms-ui .role-domain-card strong,
body.yopms-ui .role-domain-card p { display: block; }
body.yopms-ui .role-domain-card small { color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-domain-card strong { font-size: 22px; }
body.yopms-ui .role-domain-card p { margin: 2px 0 0; color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-domain-card > a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--rd-accent); background: #fff; text-decoration: none; }
body.yopms-ui .role-activity-list { display: grid; }
body.yopms-ui .role-timeline { display: grid; }
body.yopms-ui .role-timeline__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding: 13px 0; border-top: 1px solid var(--yui-line); color: var(--yui-ink); text-decoration: none; }
body.yopms-ui .role-timeline__item:first-child { padding-top: 0; border-top: 0; }
body.yopms-ui .role-timeline__item > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--rd-accent); background: color-mix(in srgb, var(--rd-accent) 9%, white); font-size: 20px; }
body.yopms-ui .role-timeline__item > div { display: grid; min-width: 0; gap: 1px; }
body.yopms-ui .role-timeline__item small { color: var(--rd-accent); font-size: 12px; font-weight: 750; }
body.yopms-ui .role-timeline__item strong { overflow-wrap: anywhere; font-size: 14px; }
body.yopms-ui .role-timeline__item time { color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-activity-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 0; border-top: 1px solid var(--yui-line); color: var(--yui-ink); text-decoration: none; }
body.yopms-ui .role-activity-item:first-child { padding-top: 0; border-top: 0; }
body.yopms-ui .role-activity-item__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--rd-accent); background: color-mix(in srgb, var(--rd-accent) 9%, white); font-size: 20px; }
body.yopms-ui .role-activity-item__copy { display: grid; flex: 1; min-width: 0; }
body.yopms-ui .role-activity-item__copy strong { overflow-wrap: anywhere; font-size: 14px; }
body.yopms-ui .role-activity-item__copy small { color: var(--yui-muted); font-size: 12px; }
body.yopms-ui .role-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 99px; color: #175cd3; background: #eef4ff; font-size: 12px; font-weight: 750; text-transform: capitalize; }
body.yopms-ui .role-status--completed,
body.yopms-ui .role-status--approved,
body.yopms-ui .role-status--active,
body.yopms-ui .role-status--success { color: #087a4b; background: #e8f7f1; }
body.yopms-ui .role-status--pending,
body.yopms-ui .role-status--waiting { color: #9a6700; background: #fff7d6; }
body.yopms-ui .role-status--rejected,
body.yopms-ui .role-status--cancelled,
body.yopms-ui .role-status--overdue { color: #b42318; background: #fff0ee; }
body.yopms-ui .role-empty { display: grid; place-items: center; gap: 5px; min-height: 180px; padding: 24px; color: var(--yui-muted); text-align: center; }
body.yopms-ui .role-empty i { color: var(--rd-accent); font-size: 32px; }
body.yopms-ui .role-empty strong { color: var(--yui-ink); font-size: 16px; }
body.yopms-ui .role-empty p { margin: 0; font-size: 14px; }
body.yopms-ui .role-empty--compact { min-height: 70px; }
body.yopms-ui .role-table-wrap { overflow-x: auto; }
body.yopms-ui .role-table { width: 100%; min-width: 690px; border-collapse: collapse; }
body.yopms-ui .role-table th,
body.yopms-ui .role-table td { padding: 13px 12px; border-bottom: 1px solid var(--yui-line); font-size: 14px; text-align: start; vertical-align: middle; }
body.yopms-ui .role-table th { color: var(--yui-muted); background: var(--yui-surface-soft); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
body.yopms-ui .role-table tbody tr:hover { background: #fbfcfe; }

@media (max-width: 1199px) {
    body.yopms-ui .role-dashboard__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.yopms-ui .role-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
    body.yopms-ui .role-dashboard__hero { align-items: flex-start; flex-direction: column; }
    body.yopms-ui .role-dashboard__actions { justify-content: flex-start; }
    body.yopms-ui .role-dashboard__grid--main,
    body.yopms-ui .role-dashboard__grid--equal { grid-template-columns: 1fr; }
    body.yopms-ui .role-dashboard__attention { grid-template-columns: 1fr; }
    body.yopms-ui .role-dashboard__attention > a + a { border-inline-start: 0; border-top: 1px solid var(--yui-line); }
}
@media (max-width: 599px) {
    body.yopms-ui .role-dashboard { gap: 14px; }
    body.yopms-ui .role-dashboard__hero { min-height: 0; padding: 23px 19px; border-radius: 18px; }
    body.yopms-ui .role-dashboard__hero h1 { font-size: 28px; }
    body.yopms-ui .role-dashboard__actions,
    body.yopms-ui .role-dashboard__button { width: 100%; }
    body.yopms-ui .role-dashboard__stats,
    body.yopms-ui .role-domain-grid { grid-template-columns: 1fr; }
    body.yopms-ui .role-stat-card { padding: 16px; }
    body.yopms-ui .role-panel { padding: 18px 15px; border-radius: 15px; }
    body.yopms-ui .role-finance-summary { grid-template-columns: 1fr; }
    body.yopms-ui .role-panel__header { align-items: flex-start; flex-direction: column; }
    body.yopms-ui .role-activity-item { align-items: flex-start; flex-wrap: wrap; }
    body.yopms-ui .role-activity-item .role-status { margin-inline-start: 52px; }
}
/* Universal role-aware QR scanner */
.yopms-qr-scanner{display:inline-flex;align-items:center}.yopms-qr-trigger{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid #d9e1ec;border-radius:12px;background:#fff;color:#172033;box-shadow:0 4px 14px rgba(15,23,42,.06);transition:.2s ease}.yopms-qr-trigger i{font-family:"Line Awesome Free"!important;font-size:23px;font-weight:900;line-height:1}.yopms-qr-trigger:hover{border-color:var(--ot-primary,#1173ff);color:var(--ot-primary,#1173ff);transform:translateY(-1px)}.yopms-qr-trigger:focus-visible,.yopms-qr-dialog button:focus-visible,.yopms-qr-dialog input:focus-visible,.yopms-qr-dialog select:focus-visible{outline:3px solid rgba(17,115,255,.25);outline-offset:2px}.yopms-qr-dialog{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:24px;background:transparent;box-shadow:0 28px 80px rgba(15,23,42,.28)}.yopms-qr-dialog::backdrop{background:rgba(15,23,42,.66);backdrop-filter:blur(5px)}.yopms-qr-panel{padding:24px;background:#fff;color:#172033}.yopms-qr-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.yopms-qr-panel h2{margin:3px 0 5px;font-size:clamp(22px,4vw,29px);line-height:1.2}.yopms-qr-panel header p{margin:0;color:#667085;font-size:14px;line-height:1.55}.yopms-qr-eyebrow{color:#1173ff;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.yopms-qr-close{flex:0 0 40px;width:40px;height:40px;border:0;border-radius:11px;background:#f1f5f9;color:#334155}.yopms-qr-close i{font-size:21px}.yopms-qr-camera{position:relative;overflow:hidden;aspect-ratio:4/3;border-radius:18px;background:#0f172a}.yopms-qr-camera video{width:100%;height:100%;display:block;object-fit:cover}.yopms-qr-corners{position:absolute;inset:16%;border:3px solid rgba(255,255,255,.92);border-radius:18px;box-shadow:0 0 0 999px rgba(15,23,42,.22);pointer-events:none}.yopms-qr-status{min-height:22px;margin:12px 0;color:#475467;font-size:14px;font-weight:650;text-align:center}.yopms-qr-status[data-state=error]{color:#b42318}.yopms-qr-status[data-state=success]{color:#087957}.yopms-qr-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}.yopms-qr-tools button,.yopms-qr-tools label,.yopms-qr-tools select{min-height:42px;padding:0 14px;border:1px solid #d7deea;border-radius:11px;background:#fff;color:#24324a;font:700 14px/1.2 inherit}.yopms-qr-tools button,.yopms-qr-tools label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}.yopms-qr-tools i{font-size:18px}.yopms-qr-tools input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.yopms-qr-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#98a2b3;font-size:12px;font-weight:750;text-transform:uppercase}.yopms-qr-divider::before,.yopms-qr-divider::after{content:"";height:1px;flex:1;background:#e4e9f0}.yopms-qr-manual>label{display:block;margin-bottom:7px;color:#344054;font-size:14px;font-weight:750}.yopms-qr-manual>div{display:flex;gap:8px}.yopms-qr-manual input{min-width:0;min-height:46px;flex:1;padding:10px 13px;border:1px solid #cdd5df;border-radius:11px;font-size:16px}.yopms-qr-manual button{min-height:46px;padding:0 17px;border:0;border-radius:11px;background:#1173ff;color:#fff;font-size:14px;font-weight:800}.yopms-qr-privacy{display:flex;align-items:flex-start;gap:7px;margin:16px 0 0;padding:11px 13px;border-radius:11px;background:#f0f7ff;color:#315276;font-size:12px;line-height:1.5}.yopms-qr-privacy i{margin-top:1px;font-size:17px}.pending-dashboard-account .yopms-qr-scanner{flex:0 0 auto}
@media(max-width:575px){.yopms-qr-trigger{width:40px;height:40px}.yopms-qr-dialog{width:calc(100% - 14px);max-height:calc(100dvh - 14px);border-radius:18px}.yopms-qr-panel{padding:17px}.yopms-qr-camera{aspect-ratio:1/1}.yopms-qr-manual>div{flex-direction:column}.yopms-qr-manual button{width:100%}.yopms-qr-panel header p{font-size:13px}}

/* Header overlays, reliable QR SVGs, and white-surface branding */
body.yopms-ui .yopms-qr-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }
body.yopms-ui .yopms-qr-icon--trigger { width: 23px; height: 23px; flex-basis: 23px; }
body.yopms-ui .yopms-qr-trigger .yopms-qr-icon { opacity: .88; }
body.yopms-ui .yopms-qr-trigger:hover .yopms-qr-icon { opacity: 1; }

body.yopms-ui .header,
body.yopms-ui .header-area,
body.yopms-ui .pending-dashboard-navbar {
    overflow: visible;
}
body.yopms-ui .header { z-index: 1040; }
body.yopms-ui .header-area,
body.yopms-ui .pending-dashboard-navbar { position: relative; z-index: 1040; }
body.yopms-ui .header-controls,
body.yopms-ui .header-control-item,
body.yopms-ui .header-area .main-header,
body.yopms-ui .header-area .menu-wrapper,
body.yopms-ui .pending-dashboard-account { overflow: visible; }
body.yopms-ui .header .dropdown-menu.show,
body.yopms-ui .header .topbar-dropdown-menu.show,
body.yopms-ui .header-area .onhover-dropdown-show,
body.yopms-ui .header-area .notification_wrap,
body.yopms-ui .yopms-header-more__menu,
body.yopms-ui .yopms-role-switcher__menu { z-index: 1080 !important; }
body.yopms-ui .header .dropdown-menu.show,
body.yopms-ui .header .topbar-dropdown-menu.show {
    display: block !important;
    max-width: min(425px, calc(100vw - 16px));
    max-height: min(520px, calc(100dvh - 84px));
    overflow-y: auto;
    opacity: 1 !important;
    visibility: visible !important;
}
body.yopms-ui .header-area .light-logo { display: none !important; }
@media (min-width: 992px) {
    body.yopms-ui .header-area .logo-large.dark-logo { display: block !important; }
    body.yopms-ui .header-area .logo-mobile.dark-logo { display: none !important; }
}
@media (max-width: 991.98px) {
    body.yopms-ui .header-area .logo-large.dark-logo { display: none !important; }
    body.yopms-ui .header-area .logo-mobile.dark-logo { display: block !important; }
}
@media (max-width: 575.98px) {
    body.yopms-ui .header .dropdown-menu.show,
    body.yopms-ui .header .topbar-dropdown-menu.show,
    body.yopms-ui .header-area .notification_wrap,
    body.yopms-ui .header-area .onhover-dropdown-show {
        position: fixed !important;
        inset: 68px 8px auto auto !important;
        width: min(320px, calc(100vw - 16px));
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
        transform: none !important;
    }
}

/* Secure scan result */
.scan-result-page{min-height:100vh;padding:32px 16px;background:linear-gradient(145deg,#f6f9ff,#eef5ff 55%,#f8fafc);font-family:Inter,Arial,sans-serif;color:#172033}.scan-result-shell{width:min(780px,100%);margin:0 auto}.scan-result-brand{display:flex;justify-content:center;margin-bottom:20px}.scan-result-brand img{max-width:170px;max-height:48px}.scan-result-card{overflow:hidden;border:1px solid #dfe7f1;border-radius:24px;background:#fff;box-shadow:0 22px 70px rgba(20,39,74,.11)}.scan-result-accent{height:7px;background:linear-gradient(90deg,#1173ff,#5641f3)}.scan-result-body{padding:clamp(22px,5vw,38px)}.scan-result-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#eaf3ff;color:#175cae;font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.scan-result-card h1{margin:15px 0 5px;font-size:clamp(27px,6vw,42px);line-height:1.12}.scan-result-reference{margin:0;color:#667085;font-size:14px;font-weight:700}.scan-result-status{display:inline-flex;margin-top:12px;padding:6px 10px;border-radius:999px;background:#e9f8f1;color:#087957;font-size:13px;font-weight:800;text-transform:capitalize}.scan-result-subtitle{margin:14px 0 0;color:#475467;font-size:16px}.scan-result-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px}.scan-result-fact{padding:14px;border:1px solid #e3e9f1;border-radius:13px;background:#fafcff}.scan-result-fact span{display:block;margin-bottom:5px;color:#667085;font-size:12px;font-weight:750;text-transform:uppercase}.scan-result-fact strong{font-size:16px;overflow-wrap:anywhere}.scan-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.scan-result-action{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 17px;border-radius:11px;background:#1173ff;color:#fff!important;font-size:15px;font-weight:800;text-decoration:none}.scan-result-action.secondary{border:1px solid #d9e1ec;background:#fff;color:#244268!important}.scan-result-message{text-align:center}.scan-result-message i{display:inline-grid;width:68px;height:68px;place-items:center;border-radius:20px;background:#fff0f0;color:#b42318;font-size:34px}.scan-result-message h1{font-size:clamp(24px,5vw,34px)}.scan-result-footer{margin-top:18px;color:#7b8798;font-size:13px;line-height:1.55;text-align:center}@media(max-width:560px){.scan-result-page{padding:14px 9px}.scan-result-body{padding:21px}.scan-result-facts{grid-template-columns:1fr}.scan-result-actions{flex-direction:column}.scan-result-action{width:100%}}
