:root {
    --whatsapp-primary: var(--primary, #128c7e);
    --whatsapp-green: var(--whatsapp-primary);
    --whatsapp-green-dark: var(--primary-dark, color-mix(in srgb, var(--whatsapp-primary) 78%, #000));
    --whatsapp-green-bright: var(--primary, #25d366);
    --whatsapp-sidebar-top: color-mix(in srgb, var(--whatsapp-green-dark) 82%, #fff);
    --whatsapp-sidebar-bottom: color-mix(in srgb, var(--whatsapp-green-dark) 88%, #000);
    --whatsapp-sidebar-active-bg: color-mix(in srgb, var(--whatsapp-primary) 8%, #fff);
    --whatsapp-sidebar-active-text: color-mix(in srgb, var(--whatsapp-primary) 68%, #173b36);
    --whatsapp-sidebar-icon-bg: color-mix(in srgb, var(--whatsapp-primary) 18%, transparent);
    --whatsapp-surface: color-mix(in srgb, var(--primary, #128c7e) 4%, #f5fbf9);
    --whatsapp-ink: var(--dark, #173b36);
}

body[data-pc-theme="light"] {
    background: var(--whatsapp-surface) !important;
    color: var(--whatsapp-ink);
}

.pc-sidebar {
    background: linear-gradient(180deg, var(--whatsapp-green-dark) 0%, var(--whatsapp-green) 55%, var(--whatsapp-green-dark) 100%) !important;
    box-shadow: 8px 0 28px rgba(7, 94, 84, .16);
}

.pc-sidebar .m-header,
.pc-sidebar .navbar-content {
    background: transparent !important;
}

.pc-sidebar .pc-navbar > .pc-item > .pc-link,
.pc-sidebar .pc-navbar > .pc-item > a,
.pc-sidebar .pc-link,
.pc-sidebar .pc-user-links {
    color: rgba(255, 255, 255, .92) !important;
}

.pc-sidebar .pc-navbar > .pc-item > .pc-link:hover,
.pc-sidebar .pc-navbar > .pc-item > a:hover,
.pc-sidebar .pc-link:hover {
    color: #fff !important;
    background: rgba(37, 211, 102, .18) !important;
}

.pc-sidebar .pc-navbar > .pc-item.active > .pc-link,
.pc-sidebar .pc-navbar > .pc-item.active > a {
    color: #fff !important;
    background: rgba(37, 211, 102, .28) !important;
    border-left: 3px solid var(--whatsapp-green-bright);
}

.pc-header {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(18, 140, 126, .14);
}

.pc-content {
    background: var(--whatsapp-surface);
}

.pc-content .card,
.pc-content .table-responsive,
.pc-content .modal-content {
    border: 1px solid rgba(18, 140, 126, .12) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 34px rgba(7, 94, 84, .08) !important;
}

.pc-content .btn-primary,
.pc-content .btn-success {
    background: var(--primary, var(--whatsapp-green)) !important;
    border-color: var(--primary, var(--whatsapp-green)) !important;
}

.pc-content .btn-primary:hover,
.pc-content .btn-success:hover {
    background: var(--primary-dark, var(--whatsapp-green-dark)) !important;
    border-color: var(--primary-dark, var(--whatsapp-green-dark)) !important;
}

.pc-content .form-control:focus,
.pc-content .form-select:focus {
    border-color: var(--primary, var(--whatsapp-green-bright)) !important;
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary, var(--whatsapp-green-bright)) 16%, transparent) !important;
}

#whatsapp-icon,
.whatsapp_instance_modal .btn-primary {
    background: var(--whatsapp-green-bright) !important;
}

@media (max-width: 991.98px) {
    .pc-content {
        padding: 16px !important;
    }
}

/* WhatsApp product shell */
.pc-sidebar {
    background: var(--whatsapp-green-dark) !important;
    box-shadow: 12px 0 32px rgba(7, 58, 51, .12) !important;
}

.pc-sidebar .navbar-wrapper {
    background: linear-gradient(180deg, color-mix(in srgb, var(--whatsapp-green-dark) 88%, #fff) 0%, var(--whatsapp-green-dark) 58%, color-mix(in srgb, var(--whatsapp-green-dark) 88%, #000) 100%) !important;
}

.pc-sidebar .m-header {
    min-height: 82px;
    padding: 18px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pc-sidebar .m-header h3,
.pc-sidebar .m-header .navbar-brand {
    color: #fff !important;
    font-size: 17px;
    letter-spacing: .01em;
}

.pc-sidebar .m-header .wa-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    text-decoration: none;
}

.pc-sidebar .m-header .wa-sidebar-brand-mark {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.pc-sidebar .m-header .wa-sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pc-sidebar .m-header .wa-sidebar-brand-copy strong {
    color: #fff;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1;
}

.pc-sidebar .m-header .wa-sidebar-brand-copy small {
    color: rgba(220, 249, 235, .68);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1;
}

.pc-sidebar .pc-user-card {
    margin: 22px 18px 18px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .09) !important;
    box-shadow: none !important;
}

.pc-sidebar .pc-user-card .card-body {
    padding: 16px !important;
}

.pc-sidebar .pc-user-card .wa-user-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, rgba(91, 229, 154, .8), rgba(18, 140, 126, .55));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
}

.pc-sidebar .pc-user-card small,
.pc-sidebar .pc-user-card strong {
    color: rgba(255, 255, 255, .82) !important;
}

.pc-sidebar .pc-user-card strong { color: #fff !important; }

.pc-sidebar .pc-user-card .pc-user-card-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .14) !important;
    box-shadow: none !important;
}

.pc-sidebar .pc-user-card .pc-user-card-toggle .pc-icon,
.pc-sidebar .pc-user-card .pc-user-card-toggle svg {
    width: 19px;
    height: 19px;
    color: #fff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.pc-sidebar .pc-user-card .pc-user-card-toggle:hover,
.pc-sidebar .pc-user-card .pc-user-card-toggle:focus-visible,
.pc-sidebar .pc-user-card .pc-user-card-toggle[aria-expanded="true"] {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .68) !important;
    background: rgba(255, 255, 255, .24) !important;
}

.pc-sidebar .pc-user-card .pc-user-links {
    color: rgba(255, 255, 255, .88) !important;
}

.pc-sidebar .pc-user-card .pc-user-links > div {
    padding-top: 10px !important;
}

.pc-sidebar .pc-user-card .pc-user-links a {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    margin: 2px 0;
    padding: 8px 9px !important;
    border-radius: 8px;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 12px !important;
    font-weight: 600;
    text-decoration: none;
}

.pc-sidebar .pc-user-card .pc-user-links a i {
    width: 18px;
    color: rgba(188, 244, 218, .82) !important;
    text-align: center;
}

.pc-sidebar .pc-user-card .pc-user-links a:hover,
.pc-sidebar .pc-user-card .pc-user-links a:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, .12) !important;
}

.pc-sidebar .pc-user-card .pc-user-links a:hover i,
.pc-sidebar .pc-user-card .pc-user-links a:focus-visible i {
    color: #fff !important;
}

.pc-sidebar .navbar-content {
    padding: 0 8px 24px !important;
}

.pc-sidebar .wa-sidebar-nav {
    padding: 0 4px !important;
}

.pc-sidebar .wa-sidebar-nav .wa-sidebar-caption {
    margin: 19px 12px 7px !important;
    padding: 0 !important;
}

.pc-sidebar .wa-sidebar-nav .wa-sidebar-caption label {
    color: rgba(210, 242, 231, .54) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pc-sidebar .wa-sidebar-nav .pc-link {
    display: flex !important;
    align-items: center;
    min-height: 46px;
    margin: 3px 0 !important;
    padding: 0 12px !important;
    border-radius: 11px;
    color: rgba(255, 255, 255, .76) !important;
    font-size: 13px !important;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.pc-sidebar .wa-sidebar-nav .pc-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .09) !important;
    transform: translateX(2px);
}

.pc-sidebar .wa-sidebar-nav .pc-item.active > .pc-link {
    color: #fff !important;
    background: color-mix(in srgb, var(--primary, #25d366) 25%, transparent) !important;
    box-shadow: inset 3px 0 0 var(--primary, #5be59a);
}

.pc-sidebar .wa-sidebar-nav .pc-micon {
    display: grid !important;
    width: 28px;
    margin-right: 10px !important;
    place-items: center;
}

.pc-sidebar .wa-sidebar-nav .pc-micon i {
    color: color-mix(in srgb, var(--primary, #8ce5b9) 72%, #fff);
    font-size: 21px !important;
}

.pc-sidebar .wa-sidebar-nav .pc-item.active .pc-micon i,
.pc-sidebar .wa-sidebar-nav .pc-link:hover .pc-micon i { color: #fff; }

.pc-sidebar .wa-sidebar-nav .pc-submenu {
    padding: 4px 0 4px 38px !important;
    background: rgba(0, 0, 0, .12) !important;
    border-radius: 10px;
}

.pc-sidebar .wa-sidebar-nav .pc-submenu .pc-link {
    min-height: 36px;
    padding: 0 10px !important;
    font-size: 12px !important;
}

.pc-sidebar .wa-sidebar-nav .wa-sidebar-logout {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* Distinct WhatsApp navigation surface. Do not let the shared template's
   button/sidebar rules make this menu resemble the AutoHRM shell. */
.wa-sidebar-shell {
    overflow: hidden !important;
    background: var(--whatsapp-green-dark) !important;
    box-shadow: 14px 0 34px rgba(4, 42, 35, .2) !important;
}

.wa-sidebar-shell .navbar-wrapper {
    display: flex;
    height: 100%;
    flex-direction: column;
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--whatsapp-green-bright) 18%, transparent), transparent 17rem),
        linear-gradient(180deg, var(--whatsapp-sidebar-top) 0%, var(--whatsapp-green-dark) 56%, var(--whatsapp-sidebar-bottom) 100%) !important;
}

.wa-sidebar-shell .navbar-content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.wa-sidebar-shell .navbar-content .simplebar-content-wrapper {
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.wa-sidebar-shell .navbar-content .simplebar-content {
    min-height: 100%;
    padding-bottom: 18px;
}

.wa-sidebar-shell .wa-sidebar-nav {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 24px !important;
    scrollbar-color: rgba(181, 245, 214, .35) transparent;
    scrollbar-width: thin;
}

.wa-sidebar-shell .wa-sidebar-nav::-webkit-scrollbar { width: 5px; }
.wa-sidebar-shell .wa-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(181, 245, 214, .3);
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 20px 4px 9px !important;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption-rule {
    display: block;
    width: 18px;
    height: 1px;
    background: rgba(163, 235, 199, .45);
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: rgba(211, 247, 229, .62) !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    letter-spacing: .16em;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item:not(.pc-caption) {
    margin: 4px 0 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link {
    min-height: 50px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid transparent;
    border-radius: 15px;
    color: rgba(240, 255, 248, .75) !important;
    font-size: 13px !important;
    font-weight: 650;
    letter-spacing: .005em;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible {
    color: #fff !important;
    background: rgba(255, 255, 255, .075) !important;
    border-color: rgba(185, 245, 215, .12);
    transform: translateX(3px);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    color: var(--whatsapp-sidebar-active-text) !important;
    background: var(--whatsapp-sidebar-active-bg) !important;
    border-color: rgba(190, 245, 218, .78) !important;
    border-left: 0 !important;
    box-shadow: 0 9px 22px rgba(1, 23, 18, .18);
    transform: translateX(3px);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon {
    width: 36px;
    height: 36px;
    margin-right: 11px !important;
    border: 1px solid rgba(196, 249, 222, .12);
    border-radius: 12px;
    background: var(--whatsapp-sidebar-icon-bg);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: #9de8bf;
    font-size: 20px !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon {
    border-color: transparent;
    background: linear-gradient(145deg, var(--whatsapp-green-bright), var(--whatsapp-primary));
    box-shadow: 0 5px 12px color-mix(in srgb, var(--whatsapp-primary) 25%, transparent);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:hover .pc-micon i,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible .pc-micon i {
    color: #fff !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-arrow {
    margin-left: auto;
    color: rgba(213, 248, 230, .62);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu {
    margin: 5px 0 7px 18px;
    padding: 5px 0 5px 13px !important;
    border-left: 1px solid rgba(164, 239, 198, .22);
    border-radius: 0;
    background: transparent !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link {
    min-height: 38px;
    padding: 0 11px !important;
    border-radius: 10px;
    color: rgba(233, 255, 243, .7) !important;
    font-size: 12px !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link:focus-visible,
.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-item.active > .pc-link {
    color: #fff !important;
    background: rgba(255, 255, 255, .09) !important;
    border-left: 0 !important;
    box-shadow: none;
    transform: none;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout {
    margin-top: 22px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(178, 241, 205, .16);
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link {
    color: #ffcfca !important;
    background: rgba(185, 62, 53, .09) !important;
    border-color: rgba(255, 170, 162, .1);
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-micon {
    border-color: rgba(255, 183, 174, .14);
    background: rgba(206, 74, 65, .18);
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-micon i {
    color: #ffaaa1 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link:focus-visible {
    color: #fff !important;
    background: rgba(206, 74, 65, .22) !important;
}

.pc-header {
    min-height: 76px;
    background: rgba(255, 255, 255, .92) !important;
    border-bottom: 1px solid #e7f0ed !important;
    box-shadow: 0 4px 16px rgba(19, 72, 61, .04);
    backdrop-filter: blur(12px);
}

.pc-header .pc-head-link {
    border-radius: 10px !important;
    color: #56716b !important;
    background: #fff !important;
    border: 1px solid #e3eeea !important;
    box-shadow: 0 2px 8px rgba(23, 59, 54, .04);
}

.pc-header .pc-head-link:hover,
.pc-header .pc-head-link:focus-visible {
    color: var(--whatsapp-green) !important;
    background: #f3fbf7 !important;
    border-color: #cfe7df !important;
}

/* Keep the account-mode switch on a white control surface in the WhatsApp shell. */
.pc-header .toggle-switch_layout {
    display: inline-flex !important;
    align-items: center;
    width: 50px !important;
    height: 30px !important;
    margin: 0 3px !important;
    padding: 3px !important;
    border: 1px solid #e3eeea;
    border-radius: 999px;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(23, 59, 54, .05);
}

.pc-header .toggle-switch_layout .slider_layout {
    inset: 3px !important;
    border-radius: 999px !important;
}

.pc-header .toggle-switch_layout .slider_layout:before {
    height: 18px !important;
    width: 18px !important;
    top: 3px !important;
    left: 3px !important;
}

.pc-header .toggle-switch_layout input:checked + .slider_layout:before {
    transform: translateX(20px) !important;
}

.pc-header .dropdown-menu.pc-h-dropdown {
    min-width: 220px;
    margin-top: 8px !important;
    padding: 6px !important;
    overflow: hidden;
    border: 1px solid #dcebe7 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(23, 59, 54, .16) !important;
}

.pc-header .pc-h-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 11px !important;
    border-radius: 8px;
    color: #36544d !important;
    background: transparent !important;
    font-size: .78rem;
    font-weight: 600;
}

.pc-header .pc-h-dropdown .dropdown-item i {
    width: 18px;
    color: var(--whatsapp-green-dark) !important;
    text-align: center;
}

.pc-header .pc-h-dropdown .dropdown-item:hover,
.pc-header .pc-h-dropdown .dropdown-item:focus-visible {
    color: var(--whatsapp-green-dark) !important;
    background: #eef9f4 !important;
}

/* Keep the shell on the framework's single sidebar grid. The header and
   content use the same 280px offset, then both return to full width together
   when the sidebar is collapsed. */
@media (min-width: 1025px) {
    .pc-sidebar {
        width: 280px !important;
    }

    .pc-sidebar .navbar-wrapper {
        width: 280px !important;
    }

    .pc-header {
        left: 280px !important;
        right: 0 !important;
    }

    .pc-container {
        margin-left: 280px !important;
        margin-right: 0 !important;
    }

    .pc-sidebar.pc-sidebar-hide {
        width: 0 !important;
    }

    .pc-sidebar.pc-sidebar-hide ~ .pc-header {
        left: 0 !important;
    }

    .pc-sidebar.pc-sidebar-hide ~ .pc-container {
        margin-left: 0 !important;
    }
}

/* Light dashboard shell inspired by modern admin layouts. Product color is
   reserved for navigation emphasis and controls, while the surrounding shell
   stays neutral and lets each tenant theme remain readable. */
.wa-sidebar-shell {
    --whatsapp-sidebar-top: #fff;
    --whatsapp-sidebar-bottom: #fff;
    --whatsapp-sidebar-active-bg: var(--primary, #128c7e);
    --whatsapp-sidebar-active-text: #fff;
    --whatsapp-sidebar-icon-bg: color-mix(in srgb, var(--primary, #128c7e) 8%, #f4f7fb);
    background: #fff !important;
    border-right: 1px solid #e7ecf3;
    box-shadow: 2px 0 12px rgba(31, 45, 61, .035) !important;
}

.wa-sidebar-shell .navbar-wrapper {
    background: #fff !important;
}

.wa-sidebar-shell .m-header {
    min-height: 82px;
    border-bottom: 1px solid #e7ecf3;
    background: #fff !important;
}

.wa-sidebar-shell .m-header .wa-sidebar-brand-mark {
    border: 0;
    color: #fff;
    background: var(--primary, #128c7e);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--primary, #128c7e) 22%, transparent);
}

.wa-sidebar-shell .m-header .wa-sidebar-brand-copy strong {
    color: #263447;
}

.wa-sidebar-shell .m-header .wa-sidebar-brand-copy small {
    color: #8996aa;
}

.wa-sidebar-shell .pc-user-card {
    border: 1px solid #e9eef5 !important;
    background: #f7f9fc !important;
    box-shadow: 0 4px 14px rgba(31, 45, 61, .035) !important;
}

.wa-sidebar-shell .pc-user-card .wa-user-avatar {
    border: 0;
    color: #fff;
    background: linear-gradient(145deg, var(--secondary, var(--primary, #25d366)), var(--primary, #128c7e));
    box-shadow: 0 5px 12px color-mix(in srgb, var(--primary, #128c7e) 18%, transparent);
}

.wa-sidebar-shell .pc-user-card small {
    color: #8190a4 !important;
}

.wa-sidebar-shell .pc-user-card strong {
    color: #263447 !important;
}

/* Staff mode should identify the session without pushing the navigation far
   below the fold. Keep long staff emails readable through the tooltip while
   keeping the visible card compact. */
.wa-sidebar-shell .pc-user-card .flex-grow-1 {
    min-width: 0;
}

.wa-sidebar-shell .pc-user-card .wa-user-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.wa-sidebar-shell .pc-user-card .wa-user-card-content {
    min-width: 0;
    width: 100%;
}

.wa-sidebar-shell .pc-user-card .wa-sidebar-welcome,
.wa-sidebar-shell .pc-user-card .wa-sidebar-username,
.wa-sidebar-shell .pc-user-card .wa-sidebar-team-member {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wa-sidebar-shell .pc-user-card .wa-sidebar-welcome {
    margin-bottom: 2px;
    line-height: 1.35;
}

.wa-sidebar-shell .pc-user-card .wa-sidebar-username {
    line-height: 1.35;
}

.wa-sidebar-shell .pc-user-card .wa-sidebar-team-member {
    margin-top: 3px;
    color: var(--primary) !important;
    font-size: .8em;
    line-height: 1.3;
}

.wa-sidebar-shell .pc-user-card .wa-staff-mode-panel {
    margin-top: 7px !important;
}

.wa-sidebar-shell .pc-user-card .wa-staff-mode-label {
    max-width: 100% !important;
    padding: 4px 9px !important;
    font-size: .68rem !important;
    line-height: 1.15 !important;
    white-space: nowrap;
}

.wa-sidebar-shell .pc-user-card .wa-staff-mode-email {
    width: 100%;
    max-width: 100% !important;
    padding: 2px 7px !important;
    font-size: .68rem !important;
    line-height: 1.2 !important;
    overflow: visible !important;
    text-overflow: clip;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word !important;
}

.wa-sidebar-shell .pc-user-card .wa-staff-mode-actions {
    width: 100%;
    margin-top: 7px !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
}

.wa-sidebar-shell .pc-user-card .wa-staff-mode-button {
    width: 100% !important;
    min-width: 0;
    padding: 6px 8px !important;
    font-size: .62rem !important;
    line-height: 1.15 !important;
    letter-spacing: .2px !important;
    white-space: nowrap;
}

.wa-sidebar-shell .pc-user-card .pc-user-card-toggle {
    border-color: #dfe7f0 !important;
    color: #77869a !important;
    background: #fff !important;
}

.wa-sidebar-shell .pc-user-card .pc-user-card-toggle .pc-icon,
.wa-sidebar-shell .pc-user-card .pc-user-card-toggle svg {
    color: #77869a !important;
}

.wa-sidebar-shell .pc-user-card .pc-user-card-toggle:hover,
.wa-sidebar-shell .pc-user-card .pc-user-card-toggle:focus-visible,
.wa-sidebar-shell .pc-user-card .pc-user-card-toggle[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--primary, #128c7e) 28%, #dfe7f0) !important;
    color: var(--primary, #128c7e) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
}

.wa-sidebar-shell .pc-user-card .pc-user-links a {
    color: #687991 !important;
}

.wa-sidebar-shell .pc-user-card .pc-user-links a i {
    color: var(--primary, #128c7e) !important;
}

.wa-sidebar-shell .pc-user-card .pc-user-links a:hover,
.wa-sidebar-shell .pc-user-card .pc-user-links a:focus-visible {
    color: var(--primary-dark, #0d6d61) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption-rule {
    background: color-mix(in srgb, var(--primary, #128c7e) 28%, #dfe7f0);
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: #9aa6b8 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link {
    color: #718199 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible {
    color: var(--primary-dark, #0d6d61) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
    border-color: color-mix(in srgb, var(--primary, #128c7e) 12%, #e7ecf3);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    color: var(--whatsapp-sidebar-active-text) !important;
    background: var(--whatsapp-sidebar-active-bg) !important;
    border-color: var(--whatsapp-sidebar-active-bg) !important;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--primary, #128c7e) 19%, transparent);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon {
    border-color: #e2e9f1;
    color: var(--primary, #128c7e);
    background: var(--whatsapp-sidebar-icon-bg);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: var(--primary, #128c7e);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon {
    background: color-mix(in srgb, #fff 18%, var(--primary, #128c7e));
    box-shadow: none;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:hover .pc-micon i,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible .pc-micon i {
    color: var(--primary, #128c7e) !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i {
    color: #fff !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-arrow {
    color: #9aa8ba;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu {
    border-left-color: color-mix(in srgb, var(--primary, #128c7e) 18%, #e7ecf3);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link {
    color: #8190a4 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link:focus-visible,
.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-item.active > .pc-link {
    color: var(--primary-dark, #0d6d61) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
}

/* Final alignment override: the sidebar panel and the floating top rail share
   the same 12px top baseline. */
.wa-platform .wa-sidebar-shell {
    padding-top: 12px !important;
}

.wa-platform .wa-sidebar-shell .navbar-wrapper {
    height: calc(100% - 12px) !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.wa-platform .pc-header {
    min-height: 72px !important;
    padding-top: 12px !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .header-wrapper {
    box-sizing: border-box;
    height: 48px !important;
    min-height: 48px !important;
    margin-right: 18px;
    padding: 0 12px;
    overflow: visible;
    border: 1px solid var(--wa-shell-primary-line);
    border-radius: 18px;
    background: var(--wa-shell-panel);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--wa-shell-primary-dark) 7%, transparent);
}

.wa-platform .pc-header .pc-h-item {
    min-height: 48px;
}

@media (max-width: 767.98px) {
    .wa-platform .wa-sidebar-shell {
        padding: 0 !important;
    }

    .wa-platform .pc-header {
        padding-top: 0 !important;
    }

    .wa-platform .pc-header .header-wrapper {
        height: 100% !important;
        min-height: 72px !important;
        margin-right: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* WhatsApp workspace template layer. Keep this scoped to the WhatsApp
   platform so the other products can retain their own shell language. */
.wa-platform {
    --wa-shell-primary: var(--primary, #128c7e);
    --wa-shell-primary-dark: var(--primary-dark, var(--primary, #075e54));
    --wa-shell-primary-soft: color-mix(in srgb, var(--wa-shell-primary) 7%, #fff);
    --wa-shell-primary-line: color-mix(in srgb, var(--wa-shell-primary) 16%, #e4eaf0);
    --wa-shell-surface: color-mix(in srgb, var(--wa-shell-primary) 2%, #f5f7fb);
    --wa-shell-panel: color-mix(in srgb, var(--wa-shell-primary) 1%, #fff);
    --wa-shell-ink: var(--dark, #263447);
    --wa-shell-muted: color-mix(in srgb, var(--wa-shell-ink) 62%, #fff);
}

/* Floating workspace navigation, matching the reference layout without
   changing the framework's sidebar width or collapse hooks. */
.wa-platform .wa-sidebar-shell {
    box-sizing: border-box;
    padding: 12px 0 12px 12px;
    border-right: 0 !important;
    background: var(--wa-shell-surface) !important;
    box-shadow: none !important;
}

.wa-platform .wa-sidebar-shell .navbar-wrapper {
    box-sizing: border-box;
    width: calc(100% - 12px) !important;
    height: calc(100% - 24px);
    margin: 12px 0 12px 12px;
    overflow: hidden;
    border: 1px solid var(--wa-shell-primary-line);
    border-radius: 22px;
    background: var(--wa-shell-panel) !important;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--wa-shell-primary-dark) 10%, transparent);
}

.wa-platform .wa-sidebar-shell .m-header {
    min-height: 78px;
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--wa-shell-primary-line);
    background: var(--wa-shell-panel) !important;
}

.wa-platform .wa-sidebar-shell .m-header .wa-sidebar-brand-mark {
    background: var(--wa-shell-primary) !important;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--wa-shell-primary) 22%, transparent);
}

.wa-platform .wa-sidebar-shell .m-header .wa-sidebar-brand-copy strong {
    color: var(--wa-shell-ink) !important;
}

.wa-platform .wa-sidebar-shell .m-header .wa-sidebar-brand-copy small {
    color: var(--wa-shell-muted) !important;
}

.wa-platform .wa-sidebar-shell .pc-user-card {
    margin: 18px 14px 16px !important;
    border: 1px solid var(--wa-shell-primary-line) !important;
    border-radius: 18px !important;
    background: var(--wa-shell-primary-soft) !important;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--wa-shell-primary-dark) 7%, transparent) !important;
}

.wa-platform .wa-sidebar-shell .pc-user-card .wa-user-avatar {
    background: var(--wa-shell-primary) !important;
    box-shadow: 0 7px 15px color-mix(in srgb, var(--wa-shell-primary) 20%, transparent);
}

.wa-platform .wa-sidebar-shell .pc-user-card small {
    color: var(--wa-shell-muted) !important;
}

.wa-platform .wa-sidebar-shell .pc-user-card strong {
    color: var(--wa-shell-ink) !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav {
    padding: 0 12px 22px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption {
    margin: 20px 6px 8px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: var(--wa-shell-muted) !important;
    font-size: .64rem !important;
    letter-spacing: .12em;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link {
    min-height: 46px;
    border-radius: 12px;
    color: var(--wa-shell-muted) !important;
    font-size: .82rem !important;
    font-weight: 650;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link:hover,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible {
    color: var(--wa-shell-primary-dark) !important;
    background: var(--wa-shell-primary-soft) !important;
    transform: none;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    color: #fff !important;
    background: var(--wa-shell-primary) !important;
    border-color: transparent !important;
    box-shadow: 0 9px 20px color-mix(in srgb, var(--wa-shell-primary) 22%, transparent);
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-micon {
    width: 30px;
    height: 30px;
    margin-right: 11px !important;
    border: 0;
    border-radius: 9px;
    color: var(--wa-shell-primary) !important;
    background: var(--wa-shell-primary-soft);
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i {
    color: #fff !important;
    background: transparent;
}

/* The framework header becomes the compact utility rail from the reference
   template while remaining compatible with the existing header controls. */
.wa-platform .pc-header {
    min-height: 72px;
    background: color-mix(in srgb, var(--wa-shell-primary) 1%, #fff) !important;
    border-bottom: 1px solid var(--wa-shell-primary-line) !important;
    box-shadow: 0 5px 18px color-mix(in srgb, var(--wa-shell-primary-dark) 5%, transparent);
}

.wa-platform .pc-header .pc-head-link,
.wa-platform .pc-header .btn,
.wa-platform .pc-header .toggle-switch_layout {
    border-radius: 11px !important;
}

.wa-platform .pc-header .pc-head-link:hover,
.wa-platform .pc-header .pc-head-link:focus-visible {
    color: var(--wa-shell-primary-dark) !important;
    background: var(--wa-shell-primary-soft) !important;
}

/* Make generic WhatsApp content controls feel like the reference cards while
   leaving dashboard-specific hero colours and layouts untouched. */
.wa-platform .pc-content {
    font-size: .88rem;
}

.wa-platform .pc-content .btn {
    min-height: 36px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 650;
}

.wa-platform .pc-content > .card,
.wa-platform .pc-content .card:not(.wa-dashboard-card) {
    border-color: var(--wa-shell-primary-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--wa-shell-primary-dark) 7%, transparent) !important;
}

.wa-platform .modal-content,
body:has(.wa-platform) .bootbox .modal-content {
    border-color: var(--wa-shell-primary-line) !important;
    border-radius: 18px !important;
}

.wa-platform .modal-header,
body:has(.wa-platform) .bootbox .modal-header {
    border-bottom-color: var(--wa-shell-primary-line);
    background: var(--wa-shell-primary-soft);
}

.wa-platform .modal-header.btn-primary,
.wa-platform .modal-header.bg-primary,
body:has(.wa-platform) .bootbox .modal-header {
    color: #fff;
    background: linear-gradient(135deg, var(--wa-shell-primary-dark), var(--wa-shell-primary)) !important;
}

@media (max-width: 1024px) {
    .wa-platform .wa-sidebar-shell {
        padding: 0;
    }

    .wa-platform .wa-sidebar-shell .navbar-wrapper {
        width: 100% !important;
        height: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Final typography contract for the WhatsApp product. Page styles may still
   control their own sizes, but the family, rendering and control language are
   shared across every WhatsApp inner page. */
.wa-platform,
.wa-platform .pc-sidebar,
.wa-platform .pc-header,
.wa-platform .pc-container,
.wa-platform .pc-content,
.wa-platform .pc-content :where(h1, h2, h3, h4, h5, h6, p, span, small, label, a, button, input, select, textarea, th, td, .btn, .form-control, .form-select),
.wa-platform .wa-sidebar-shell :where(.m-header, .wa-sidebar-brand-copy, .pc-user-card, .pc-navbar, .pc-caption, .pc-link, .pc-mtext, .pc-arrow, .pc-user-links a) {
    font-family: var(--wa-font-ui, 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
    font-optical-sizing: auto;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

.wa-platform .pc-content {
    font-size: .875rem;
    line-height: 1.5;
}

.wa-platform .pc-content :where(button, input, select, textarea, .btn, .form-control, .form-select) {
    letter-spacing: 0;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link {
    min-height: 46px;
    color: var(--wa-shell-muted, #627287) !important;
    font-size: .82rem !important;
    font-weight: 550 !important;
    line-height: 1.25;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    color: #fff !important;
    font-weight: 650 !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon {
    width: 28px;
    height: 28px;
    margin-right: 12px !important;
    border: 0;
    border-radius: 8px;
    color: var(--wa-shell-muted, #627287) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: currentColor !important;
    font-size: 19px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i {
    color: #fff !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link:hover .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible .pc-micon {
    color: var(--wa-shell-primary-dark, var(--primary-dark, #075e54)) !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link:hover .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link:focus-visible .pc-micon {
    color: #fff !important;
}

.wa-platform .wa-plans-page .wa-plans-intro h1 {
    font-size: clamp(2rem, 3vw, 2.35rem);
    font-weight: 720;
    letter-spacing: -.045em;
}

.wa-platform .wa-plans-page :where(.wa-current-plan-heading h2, .wa-plans-section-heading h2, .plan-card .plan-name) {
    font-weight: 700;
    letter-spacing: -.025em;
}

.wa-platform .wa-plans-page :where(.wa-plans-eyebrow, .wa-plans-section-kicker, .plan-card-topline) {
    font-weight: 650;
}

/* Reference-style top utility rail. Existing account, KYC, help and settings
   actions stay on the right; these workspace shortcuts make the header feel
   like the same product template as the sidebar. */
.wa-platform .pc-header .header-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding: 0 24px 0 18px;
}

.wa-platform .pc-header .pc-mob-drp {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 14px;
}

.wa-platform .pc-header .pc-mob-drp > ul {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.wa-platform .pc-header .pc-sidebar-collapse,
.wa-platform .pc-header .pc-sidebar-popup {
    display: none;
}

.wa-platform .pc-header .pc-sidebar-collapse:first-child,
.wa-platform .pc-header .pc-sidebar-popup:first-child {
    display: block;
}

.wa-platform .pc-header .pc-sidebar-collapse .pc-head-link,
.wa-platform .pc-header .pc-sidebar-popup .pc-head-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--wa-shell-primary-line) !important;
    border-radius: 12px !important;
    color: var(--wa-shell-muted) !important;
    background: var(--wa-shell-panel) !important;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--wa-shell-primary-dark) 6%, transparent) !important;
}

.wa-platform .pc-header .pc-sidebar-collapse .pc-head-link:hover,
.wa-platform .pc-header .pc-sidebar-popup .pc-head-link:hover {
    color: var(--wa-shell-primary-dark) !important;
    background: var(--wa-shell-primary-soft) !important;
}

.wa-platform .pc-header .wa-header-context {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.wa-platform .pc-header .wa-header-context-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--wa-shell-primary);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--wa-shell-primary) 20%, transparent);
}

.wa-platform .pc-header .wa-header-context-mark i {
    font-size: 17px;
}

.wa-platform .pc-header .wa-header-context-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wa-platform .pc-header .wa-header-context-copy strong {
    overflow: hidden;
    color: var(--wa-shell-ink);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-platform .pc-header .wa-header-context-copy small {
    color: var(--wa-shell-muted);
    font-size: .66rem;
    white-space: nowrap;
}

.wa-platform .pc-header .wa-header-search {
    display: flex;
    flex: 1 1 430px;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: 540px;
    min-height: 44px;
    padding: 0 11px 0 14px;
    border: 1px solid var(--wa-shell-primary-line);
    border-radius: 14px;
    color: var(--wa-shell-muted);
    background: var(--wa-shell-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 16px color-mix(in srgb, var(--wa-shell-primary-dark) 5%, transparent);
    font-size: .78rem;
}

.wa-platform .pc-header .wa-header-search > i {
    flex: 0 0 auto;
    color: var(--wa-shell-primary);
    font-size: 18px;
}

.wa-platform .pc-header .wa-header-search > span {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-platform .pc-header .wa-header-search kbd {
    flex: 0 0 auto;
    min-width: 37px;
    padding: 4px 6px;
    border: 1px solid var(--wa-shell-primary-line);
    border-radius: 7px;
    color: var(--wa-shell-muted);
    background: var(--wa-shell-primary-soft);
    font-family: inherit;
    font-size: .65rem;
    line-height: 1;
    text-align: center;
}

.wa-platform .pc-header .wa-header-quick-links {
    display: flex;
    flex: 0 1 430px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 5px;
    border: 1px solid var(--wa-shell-primary-line);
    border-radius: 14px;
    background: var(--wa-shell-primary-soft);
}

.wa-platform .pc-header .wa-header-quick-link {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--wa-shell-muted) !important;
    font-size: .73rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.wa-platform .pc-header .wa-header-quick-link i {
    flex: 0 0 auto;
    color: var(--wa-shell-primary);
    font-size: 16px;
}

.wa-platform .pc-header .wa-header-quick-link:hover,
.wa-platform .pc-header .wa-header-quick-link:focus-visible,
.wa-platform .pc-header .wa-header-quick-link.is-active {
    color: #fff !important;
    background: var(--wa-shell-primary);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--wa-shell-primary) 18%, transparent);
}

.wa-platform .pc-header .wa-header-quick-link:hover i,
.wa-platform .pc-header .wa-header-quick-link:focus-visible i,
.wa-platform .pc-header .wa-header-quick-link.is-active i {
    color: #fff;
}

.wa-platform .pc-header > .header-wrapper > .ms-auto {
    flex: 0 0 auto;
    min-width: 0;
}

.wa-platform .pc-header > .header-wrapper > .ms-auto > ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.wa-platform .pc-header > .header-wrapper > .ms-auto .pc-h-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.wa-platform .pc-header > .header-wrapper > .ms-auto .pc-head-link {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--wa-shell-primary-line) !important;
    border-radius: 12px !important;
    background: var(--wa-shell-panel) !important;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--wa-shell-primary-dark) 5%, transparent) !important;
}

.wa-platform .pc-header > .header-wrapper > .ms-auto .btn-primary,
.wa-platform .pc-header > .header-wrapper > .ms-auto .btn-success {
    min-height: 42px;
    border-radius: 11px !important;
    font-size: .76rem;
    font-weight: 700;
}

/* Keep the floating sidebar panel and utility rail on the same baseline. */
.wa-platform .wa-sidebar-shell {
    padding-top: 12px;
}

.wa-platform .wa-sidebar-shell .navbar-wrapper {
    height: calc(100% - 12px);
    margin-top: 0;
    margin-bottom: 12px;
}

.wa-platform .pc-header {
    min-height: 72px;
    padding-top: 12px;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .header-wrapper {
    box-sizing: border-box;
    min-height: 48px;
    height: 48px;
    margin-right: 18px;
    padding: 0 12px;
    overflow: visible;
    border: 1px solid var(--wa-shell-primary-line);
    border-radius: 18px;
    background: var(--wa-shell-panel);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--wa-shell-primary-dark) 7%, transparent);
}

.wa-platform .pc-header .pc-h-item {
    min-height: 48px;
}

@media (max-width: 1050px) {
    .wa-platform .pc-header .pc-sidebar-collapse {
        display: none;
    }

    .wa-platform .pc-header .pc-sidebar-popup {
        display: block;
    }

    .wa-platform .pc-header .wa-header-quick-links {
        flex-basis: 360px;
    }
}

@media (max-width: 767.98px) {
    /* The desktop collapse control and the mobile popup control are both
       first children in the header. Keep only the mobile control visible. */
    body.wa-platform .pc-header .pc-sidebar-collapse {
        display: none !important;
    }

    body.wa-platform .pc-header .pc-sidebar-popup {
        display: block !important;
    }

    /* The mobile bottom navigation is the primary workspace navigation. Keep
       the top rail limited to menu access and settings instead of squeezing
       every desktop utility into a phone-sized header. */
    body.wa-platform .pc-header > .header-wrapper > .ms-auto > ul > .pc-h-item {
        display: none !important;
    }

    body.wa-platform .pc-header > .header-wrapper > .ms-auto > ul > .pc-h-item.dropdown {
        display: inline-flex !important;
    }

    /* Keep the desktop sidebar completely off-canvas until the mobile menu
       button opens it. This prevents a clipped green rail behind the header. */
    body.wa-platform .pc-sidebar.wa-sidebar-shell {
        top: 0 !important;
        bottom: 0 !important;
        left: -280px !important;
        width: 280px !important;
        visibility: hidden;
        z-index: 1031 !important;
    }

    body.wa-platform .pc-sidebar.wa-sidebar-shell.mob-sidebar-active {
        left: 0 !important;
        visibility: visible;
    }

    html,
    body.wa-platform {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.wa-platform .pc-container,
    body.wa-platform .pc-content {
        box-sizing: border-box;
        min-width: 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.wa-platform .pc-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.wa-platform .pc-content {
        overflow-x: hidden;
    }

    /* Page styles are shared by many WhatsApp views. Apply border-box and
       zero-width flex/grid children here so a long label or desktop-sized
       child cannot enlarge the mobile canvas and get clipped. */
    body.wa-platform,
    body.wa-platform *,
    body.wa-platform *::before,
    body.wa-platform *::after {
        box-sizing: border-box;
    }

    body.wa-platform .pc-content > *,
    body.wa-platform .pc-content .row,
    body.wa-platform .pc-content .row > [class*="col-"],
    body.wa-platform .pc-content :where(
        .wa-dashboard,
        .wa-plans-page,
        .whatsapp-platform-page,
        .whatsapp-instances-page,
        .wa-documentation-page,
        .wa-panel,
        .card,
        .table-responsive
    ) {
        min-width: 0;
        max-width: 100%;
    }

    body.wa-platform .pc-content :where(
        .d-flex,
        .row,
        [class*="-grid"],
        [class*="-heading"]
    ) > * {
        min-width: 0;
    }

    body.wa-platform .pc-content :where(h1, h2, h3, h4, h5, h6) {
        overflow-wrap: anywhere;
    }

    body.wa-platform .pc-header,
    body.wa-platform .pc-header .header-wrapper,
    body.wa-platform .pc-header .pc-mob-drp,
    body.wa-platform .pc-header > .header-wrapper > .ms-auto {
        min-width: 0;
        max-width: 100%;
    }

    body.wa-platform .pc-header .header-wrapper {
        box-sizing: border-box;
        overflow: hidden;
    }

    body.wa-platform .pc-header,
    body.wa-platform .pc-header .header-wrapper {
        min-height: 60px !important;
    }

    body.wa-platform .pc-header .header-wrapper {
        height: 60px !important;
    }

    body.wa-platform .pc-content > :where(
        .wa-plans-page,
        .wa-dashboard,
        .wa-documentation-page,
        .wa-debug-page,
        .wa-edit-profile-page,
        .whatsapp-instances-page,
        .whatsapp-platform-page,
        .whatsapp-fund-wallet-page,
        .whatsapp-members-page,
        .whatsapp-wallet-transactions-page,
        .whatsapp-message-queue-page,
        .whatsapp-otp-templates-page
    ) {
        min-width: 0;
    }

    .wa-platform .pc-header {
        padding-top: 0;
    }

    .wa-platform .pc-header .header-wrapper {
        height: 100%;
        min-height: 72px;
        margin-right: 0;
        padding: 0 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .wa-platform .pc-header .header-wrapper {
        gap: 8px;
        padding: 0 12px;
    }

    .wa-platform .pc-header .wa-header-quick-links {
        display: none;
    }

    .wa-platform .pc-header .wa-header-search {
        min-width: 0;
        min-height: 38px;
        padding-left: 10px;
    }

    .wa-platform .pc-header > .header-wrapper > .ms-auto > ul {
        gap: 4px;
    }

    .wa-platform .pc-header > .header-wrapper > .ms-auto .pc-head-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
    }
}

/* Keep the readability choices above at the end of the cascade. */
.wa-platform {
    -webkit-font-smoothing: auto;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: #8492a4 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link {
    color: #5f7187 !important;
    font-weight: 600;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon {
    color: #667a90;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: currentColor !important;
}

.wa-sidebar-shell .pc-user-card small {
    color: #6f8094 !important;
}

.wa-platform .pc-header .pc-head-link {
    color: #63758a !important;
}

/* Final WhatsApp template readability layer. This is intentionally scoped to
   the WhatsApp shell so other platform templates retain their own language. */
.wa-platform {
    --wa-ui-primary: var(--primary, #128c7e);
    --wa-ui-primary-dark: var(--primary-dark, var(--primary, #075e54));
    --wa-ui-primary-soft: color-mix(in srgb, var(--primary, #128c7e) 8%, #fff);
    --wa-ui-primary-line: color-mix(in srgb, var(--primary, #128c7e) 18%, #dcebe6);
    --wa-ui-primary-text: color-mix(in srgb, var(--primary, #128c7e) 68%, #173b36);
    color: #2f403d;
    -webkit-font-smoothing: auto;
}

.wa-platform .pc-content {
    color: #2f403d;
}

.wa-platform .pc-content .text-muted,
.wa-platform .pc-content .form-text,
.wa-platform .pc-content small.text-muted {
    color: #63766f !important;
    opacity: 1 !important;
}

.wa-platform .pc-content .form-label,
.wa-platform .pc-content label {
    color: #36504a;
    font-weight: 650;
}

.wa-platform .pc-content .form-control,
.wa-platform .pc-content .form-select,
.wa-platform .pc-content .input-group-text {
    color: #2f403d;
    border-color: #d3e2dd;
    background: #fff;
}

.wa-platform .pc-content .form-control::placeholder {
    color: #81938d;
    opacity: 1;
}

.wa-platform .pc-content .btn-outline-light {
    border-color: #c8d8e4 !important;
    color: #36556c !important;
    background: #fff !important;
}

.wa-platform .pc-content .btn-outline-light:hover,
.wa-platform .pc-content .btn-outline-light:focus-visible {
    border-color: var(--primary, #128c7e) !important;
    color: #fff !important;
    background: var(--primary, #128c7e) !important;
}

.wa-platform .pc-content .btn-secondary {
    border-color: var(--wa-ui-primary-line) !important;
    color: var(--wa-ui-primary-text) !important;
    background: var(--wa-ui-primary-soft) !important;
}

.wa-platform .pc-content .btn-secondary:hover,
.wa-platform .pc-content .btn-secondary:focus-visible {
    border-color: color-mix(in srgb, var(--wa-ui-primary) 38%, #cfe3dc) !important;
    color: var(--wa-ui-primary-dark) !important;
    background: color-mix(in srgb, var(--wa-ui-primary) 14%, #fff) !important;
}

.wa-platform .pc-content .dropdown-menu {
    border: 1px solid #d7e5e0;
    border-radius: 11px;
    box-shadow: 0 16px 34px rgba(23, 59, 54, .14);
}

.wa-platform .pc-content .dropdown-item {
    color: #36544d;
}

.wa-platform .pc-content .dropdown-item:hover,
.wa-platform .pc-content .dropdown-item:focus-visible {
    color: var(--wa-ui-primary-dark);
    background: var(--wa-ui-primary-soft);
}

/* Sidebar labels and icons were previously too pale against the white
   navigation surface. */
.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: #8492a4 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link {
    color: #5f7187 !important;
    font-weight: 600;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon {
    color: #667a90;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: currentColor !important;
}

.wa-sidebar-shell .pc-user-card small {
    color: #6f8094 !important;
}

.wa-platform .pc-header .pc-head-link {
    color: #63758a !important;
}

/* Consistent modal surface for the platform's native dialogs. */
.wa-platform .modal-content,
.wa-platform .member-modal-content {
    overflow: hidden;
    border: 1px solid #d6e6e0 !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 58px rgba(23, 59, 54, .18) !important;
}

.wa-platform .modal-header {
    min-height: 58px;
    padding: 15px 20px;
    border-bottom: 1px solid #dcebe6;
    color: #29463f;
    background: #f5faf8;
}

.wa-platform .modal-header.btn-primary,
.wa-platform .modal-header.bg-primary {
    border-bottom-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--wa-ui-primary-dark), var(--wa-ui-primary)) !important;
}

.wa-platform .modal-title {
    color: inherit;
    font-size: .98rem;
    font-weight: 750;
}

.wa-platform .modal-body {
    color: #3c514b;
}

.wa-platform .modal-body .text-muted,
.wa-platform .modal-body small {
    color: #63766f !important;
    opacity: 1 !important;
}

.wa-platform .modal-body .form-control,
.wa-platform .modal-body .form-select,
.wa-platform .modal-body .input-group-text {
    min-height: 39px;
    border-color: #d3e2dd;
    color: #2f403d;
    background: #fff;
}

.wa-platform .modal-body .form-control:focus,
.wa-platform .modal-body .form-select:focus {
    border-color: color-mix(in srgb, var(--wa-ui-primary) 55%, #d3e2dd);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wa-ui-primary) 11%, transparent);
}

.wa-platform .modal-footer {
    padding: 13px 20px 16px;
    border-top: 1px solid #dcebe6;
    background: #fbfdfc;
}

.wa-platform .member-modal {
    background: rgba(18, 45, 40, .48);
    backdrop-filter: blur(3px);
}

.wa-platform .member-modal-content {
    width: min(420px, calc(100vw - 32px));
    padding: 26px;
    text-align: left;
}

.wa-platform .member-modal-content h3 {
    margin: 0 0 18px;
    color: #29463f;
    font-size: 1.05rem;
}

.wa-platform .member-modal-content input {
    width: 100%;
    min-height: 40px;
    margin: 0;
    border: 1px solid #d3e2dd;
    border-radius: 9px;
    color: #2f403d;
}

.wa-platform .member-modal-content button {
    min-height: 38px;
    margin: 0 4px 0 0;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 650;
}

.wa-platform .member-close {
    top: 13px;
    right: 17px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #71857e;
    background: var(--wa-ui-primary-soft);
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .wa-platform .modal-dialog {
        margin: .75rem;
    }

    .wa-platform .modal-header,
    .wa-platform .modal-body,
    .wa-platform .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Bootbox dialogs are moved directly under <body>, outside the shell root. */
body:has(.wa-platform) .bootbox .modal-content {
    overflow: hidden;
    border: 1px solid #d6e6e0;
    border-radius: 16px;
    box-shadow: 0 22px 58px rgba(23, 59, 54, .18);
}

body:has(.wa-platform) .bootbox .modal-header {
    padding: 15px 20px;
    border-bottom: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark, var(--primary, #075e54)), var(--primary, #128c7e));
}

body:has(.wa-platform) .bootbox .modal-title,
body:has(.wa-platform) .bootbox .modal-body {
    color: #29463f;
}

body:has(.wa-platform) .bootbox .modal-body {
    padding: 20px;
}

body:has(.wa-platform) .bootbox .modal-footer {
    border-top: 1px solid #dcebe6;
    background: #fbfdfc;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout {
    border-top-color: #e7ecf3;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link {
    color: #c45d58 !important;
    background: #fff7f6 !important;
    border-color: #f5dfdc;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-micon {
    border-color: #f1d5d1;
    background: #fff0ee;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-micon i {
    color: #d56a62 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link:focus-visible {
    color: #a83f3b !important;
    background: #fff0ee !important;
}

.wa-platform .pc-header {
    background: #fff !important;
    border-bottom: 1px solid #e7ecf3 !important;
    box-shadow: 0 2px 10px rgba(31, 45, 61, .03);
}

.wa-platform .pc-header .pc-head-link {
    border-color: transparent !important;
    color: #63758a !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .pc-head-link:hover,
.wa-platform .pc-header .pc-head-link:focus-visible {
    color: var(--primary, #128c7e) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
}

.wa-platform .pc-content {
    background: color-mix(in srgb, var(--primary, #128c7e) 2%, #f5f7fb) !important;
}

/* Typography follows the reference admin layout: Inter for navigation,
   controls, content and headings, with theme colour reserved for emphasis. */
.wa-platform {
    --wa-font-ui: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-family: var(--wa-font-ui) !important;
    -webkit-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

.wa-platform .pc-sidebar,
.wa-platform .pc-header,
.wa-platform .pc-container,
.wa-platform .pc-content,
.wa-platform .wa-dashboard,
.wa-platform .wa-auth-container {
    font-family: var(--wa-font-ui);
}

.wa-sidebar-shell .m-header .wa-sidebar-brand-copy strong {
    font-family: var(--wa-font-ui);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.025em;
}

.wa-sidebar-shell .m-header .wa-sidebar-brand-copy small {
    font-family: var(--wa-font-ui);
    font-size: 10px;
    font-weight: 550;
    letter-spacing: .045em;
}

.wa-sidebar-shell .pc-user-card,
.wa-sidebar-shell .pc-user-card small,
.wa-sidebar-shell .pc-user-card strong,
.wa-sidebar-shell .wa-sidebar-nav .pc-link,
.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    font-family: var(--wa-font-ui);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link {
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: -.01em;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
}

.wa-platform .pc-header .pc-head-link,
.wa-platform .pc-header .btn,
.wa-platform .pc-header .dropdown-item {
    font-family: var(--wa-font-ui);
    letter-spacing: 0;
}

.wa-platform .wa-dashboard h1,
.wa-platform .wa-dashboard h2,
.wa-platform .wa-dashboard h3,
.wa-platform .wa-dashboard h4,
.wa-platform .wa-dashboard h5,
.wa-platform .wa-dashboard h6 {
    font-family: var(--wa-font-ui) !important;
    letter-spacing: -.03em;
}

.wa-platform .wa-dashboard p,
.wa-platform .wa-dashboard small,
.wa-platform .wa-dashboard label,
.wa-platform .wa-dashboard a,
.wa-platform .wa-dashboard button {
    font-family: var(--wa-font-ui);
    letter-spacing: 0;
}

.wa-platform .wa-dashboard .wa-eyebrow,
.wa-platform .wa-dashboard .wa-kicker {
    letter-spacing: .14em;
}

/* Reference-style navigation: quiet text rows, plain section labels and a
   single theme-coloured active row. */
.wa-sidebar-shell .wa-sidebar-nav {
    padding-right: 18px !important;
    padding-left: 18px !important;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption {
    display: flex !important;
    gap: 0;
    margin: 22px 5px 8px !important;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption-rule {
    display: none;
}

.wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: #8492a4 !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    letter-spacing: .105em;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item:not(.pc-caption) {
    margin: 2px 0 !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link {
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 0 13px !important;
    color: #5f7187 !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: -.008em;
    white-space: nowrap;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-mtext {
    display: inline-flex !important;
    align-items: center;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon {
    display: inline-grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-right: 13px !important;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #667a90;
    background: transparent;
    box-shadow: none;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: currentColor !important;
    font-size: 20px !important;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible {
    color: var(--primary-dark, #0d6d61) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
    border-color: transparent !important;
    transform: none;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    color: #fff !important;
    background: var(--primary, #128c7e) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary, #128c7e) 20%, transparent);
    font-weight: 650;
    transform: none;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon,
.wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i {
    color: #fff !important;
    background: transparent;
    box-shadow: none;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-arrow {
    display: inline-flex !important;
    margin-left: auto;
    color: #9eabba;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu {
    margin-left: 16px;
    border-left-color: color-mix(in srgb, var(--primary, #128c7e) 20%, #e7ecf3);
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link {
    min-height: 38px;
    padding-left: 12px !important;
    color: #6f8094 !important;
    font-size: 12px !important;
    font-weight: 500;
}

.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link:hover,
.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link:focus-visible,
.wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-item.active > .pc-link {
    color: var(--primary-dark, #0d6d61) !important;
    background: color-mix(in srgb, var(--primary, #128c7e) 7%, #fff) !important;
}

/* Final polish for the WhatsApp utility rail and plans page. */
.wa-platform .pc-header .wa-header-quick-link {
    min-height: 40px;
}

.wa-platform .pc-header .wa-header-quick-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    line-height: 1.05;
}

.wa-platform .pc-header .wa-header-quick-copy small {
    overflow: hidden;
    max-width: 100%;
    color: currentColor;
    font-size: .58rem;
    font-weight: 500;
    opacity: .72;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-platform .pc-header .wa-header-quick-copy strong {
    color: currentColor;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.wa-platform .pc-header > .header-wrapper > .ms-auto > ul {
    gap: 10px;
}

.wa-platform .wa-plans-page .wa-plans-intro h1 {
    font-size: clamp(2rem, 3vw, 2.35rem) !important;
    font-weight: 650 !important;
}

.wa-platform .wa-plans-page :where(.wa-current-plan-heading h2, .wa-plans-section-heading h2, .plan-card .plan-name) {
    font-weight: 650 !important;
}

@media (max-width: 1050px) {
    .wa-platform .pc-header .wa-header-quick-copy small {
        display: none;
    }

    .wa-platform .pc-header .wa-header-quick-link {
        gap: 6px;
    }
}

/* The WhatsApp rail uses the page surface as its backdrop. Controls retain
   their own themed surfaces, so there is no second white alignment layer. */
.wa-platform .pc-header {
    background: var(--wa-shell-surface) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .header-wrapper {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .wa-header-search {
    display: none !important;
}

/* Inner WhatsApp pages should fill the workspace left by the sidebar. */
.wa-platform .pc-container {
    width: auto !important;
    max-width: none !important;
}

.wa-platform .pc-content {
    width: 100% !important;
    max-width: none !important;
}

.wa-platform .pc-content > :where(
    .wa-plans-page,
    .wa-dashboard,
    .wa-documentation-page,
    .wa-debug-page,
    .wa-edit-profile-page,
    .whatsapp-instances-page,
    .whatsapp-platform-page,
    .whatsapp-fund-wallet-page,
    .whatsapp-members-page,
    .whatsapp-wallet-transactions-page,
    .whatsapp-message-queue-page,
    .whatsapp-otp-templates-page
) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Keep the font family consistent without making every line look like a
   heading. Page titles, active navigation and buttons keep their emphasis;
   ordinary copy and table values stay readable at regular weight. */
.wa-platform .pc-content {
    font-weight: 400;
}

.wa-platform .pc-content :where(p, li, td, .text-muted, .form-text) {
    font-weight: 400 !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link {
    font-weight: 500 !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    font-weight: 600 !important;
}

.wa-platform .pc-header .wa-header-quick-link {
    font-weight: 500;
}

/* -------------------------------------------------------------------------
   Reference workspace pass
   The WhatsApp product uses the same calm admin proportions as the reference
   dashboard: a quiet rail, a compact utility bar and restrained indigo
   emphasis. Keep this block last so older product-specific rules cannot
   re-introduce the oversized green shell.
------------------------------------------------------------------------- */
.wa-platform {
    --wa-shell-primary: var(--primary, #128c7e);
    --wa-shell-primary-dark: var(--primary-dark, color-mix(in srgb, var(--wa-shell-primary) 78%, #000));
    --wa-shell-primary-soft: color-mix(in srgb, var(--wa-shell-primary) 8%, #fff);
    --wa-shell-primary-line: color-mix(in srgb, var(--wa-shell-primary) 16%, #e4eaf0);
    --wa-shell-surface: #f7f8fb;
    --wa-shell-panel: #ffffff;
    --wa-shell-ink: #242b3a;
    --wa-shell-muted: #748198;
    background: var(--wa-shell-surface) !important;
    color: var(--wa-shell-ink);
}

.wa-platform .wa-sidebar-shell {
    box-sizing: border-box;
    width: 248px !important;
    padding: 0 !important;
    border-right: 1px solid #e9ebf2 !important;
    background: #fff !important;
    box-shadow: 2px 0 12px rgba(35, 43, 62, .035) !important;
}

.wa-platform .wa-sidebar-shell .navbar-wrapper {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.wa-platform .wa-sidebar-shell .m-header {
    min-height: 76px;
    padding: 17px 19px !important;
    border-bottom: 1px solid #edf0f5;
    background: #fff !important;
}

.wa-platform .wa-sidebar-shell .m-header .wa-sidebar-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--wa-shell-primary) !important;
    box-shadow: none;
    font-size: 17px;
}

.wa-platform .wa-sidebar-shell .m-header .wa-sidebar-brand-copy strong {
    color: var(--wa-shell-ink) !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .045em;
}

.wa-platform .wa-sidebar-shell .m-header .wa-sidebar-brand-copy small {
    color: #9aa5b6 !important;
    font-size: 9px;
    font-weight: 500;
}

.wa-platform .wa-sidebar-shell .pc-user-card {
    margin: 16px 14px 14px !important;
    border: 1px solid #eceef5 !important;
    border-radius: 12px !important;
    background: #fafaff !important;
    box-shadow: none !important;
}

.wa-platform .wa-sidebar-shell .pc-user-card .card-body {
    padding: 12px !important;
}

.wa-platform .wa-sidebar-shell .pc-user-card .wa-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--wa-shell-primary) !important;
    box-shadow: none;
    font-size: 12px;
}

.wa-platform .wa-sidebar-shell .pc-user-card small {
    color: #8793a7 !important;
    font-size: 10px;
}

.wa-platform .wa-sidebar-shell .pc-user-card strong {
    color: var(--wa-shell-ink) !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav {
    padding: 0 12px 20px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption {
    margin: 18px 7px 7px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    color: #a0a8b7 !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: .11em;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item:not(.pc-caption) {
    margin: 2px 0 !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link {
    min-height: 42px;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 10px;
    color: #69788e !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transform: none !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link:hover,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link:focus-visible {
    color: var(--wa-shell-primary-dark) !important;
    background: var(--wa-shell-primary-soft) !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    color: var(--wa-shell-primary) !important;
    background: var(--wa-shell-primary-soft) !important;
    font-weight: 650 !important;
    box-shadow: inset 3px 0 0 var(--wa-shell-primary) !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon {
    width: 26px;
    height: 26px;
    margin-right: 10px !important;
    border: 0 !important;
    border-radius: 7px;
    color: #8793a7 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-micon i {
    color: currentColor !important;
    font-size: 18px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active .pc-micon i {
    color: var(--wa-shell-primary) !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-submenu {
    margin: 3px 0 5px 16px;
    border-left-color: #e9e7f7;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link {
    min-height: 34px;
    font-size: 11px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout {
    margin-top: 16px !important;
    padding-top: 12px !important;
    border-top: 1px solid #edf0f5;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-logout .pc-link {
    color: #9a6570 !important;
    background: transparent !important;
}

@media (min-width: 1025px) {
    .wa-platform .wa-sidebar-shell,
    .wa-platform .wa-sidebar-shell .navbar-wrapper {
        width: 248px !important;
    }

    .wa-platform .pc-header {
        left: 248px !important;
        right: 0 !important;
    }

    .wa-platform .pc-container {
        margin-left: 248px !important;
        margin-right: 0 !important;
    }

    .wa-platform .pc-sidebar.pc-sidebar-hide {
        width: 0 !important;
    }

    .wa-platform .pc-sidebar.pc-sidebar-hide ~ .pc-header {
        left: 0 !important;
    }

    .wa-platform .pc-sidebar.pc-sidebar-hide ~ .pc-container {
        margin-left: 0 !important;
    }
}

.wa-platform .pc-header {
    min-height: 70px !important;
    padding-top: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eceef4 !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .header-wrapper {
    height: 70px !important;
    min-height: 70px !important;
    margin-right: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .pc-head-link,
.wa-platform .pc-header > .header-wrapper > .ms-auto .pc-head-link {
    min-width: 36px;
    height: 36px;
    border: 1px solid #eceef4 !important;
    border-radius: 9px !important;
    color: #7b879a !important;
    background: #fff !important;
    box-shadow: none !important;
}

.wa-platform .pc-header .pc-head-link:hover,
.wa-platform .pc-header .pc-head-link:focus-visible {
    color: var(--wa-shell-primary) !important;
    background: var(--wa-shell-primary-soft) !important;
}

.wa-platform .pc-header .wa-header-context {
    display: flex !important;
    min-width: 150px;
    gap: 8px;
}

.wa-platform .pc-header .wa-header-context-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--wa-shell-primary) !important;
    box-shadow: none;
    font-size: 15px;
}

.wa-platform .pc-header .wa-header-context-copy strong {
    color: var(--wa-shell-ink);
    font-size: 12px;
    font-weight: 650;
}

.wa-platform .pc-header .wa-header-context-copy small {
    color: #9aa5b6;
    font-size: 9px;
}

.wa-platform .pc-header .wa-header-quick-links {
    flex: 0 1 330px;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
}

.wa-platform .pc-header .wa-header-quick-link {
    min-height: 36px;
    justify-content: flex-start;
    padding: 0 9px;
    border-radius: 8px;
    color: #7a879b !important;
    font-size: 11px;
    font-weight: 500;
}

.wa-platform .pc-header .wa-header-quick-link i {
    color: var(--wa-shell-primary);
    font-size: 15px;
}

.wa-platform .pc-header .wa-header-quick-link:hover,
.wa-platform .pc-header .wa-header-quick-link:focus-visible,
.wa-platform .pc-header .wa-header-quick-link.is-active {
    color: var(--wa-shell-primary) !important;
    background: var(--wa-shell-primary-soft);
    box-shadow: none;
}

.wa-platform .pc-header .wa-header-quick-link:hover i,
.wa-platform .pc-header .wa-header-quick-link:focus-visible i,
.wa-platform .pc-header .wa-header-quick-link.is-active i {
    color: var(--wa-shell-primary);
}

.wa-platform .pc-header .wa-header-quick-copy small {
    display: none;
}

.wa-platform .pc-header .wa-header-quick-copy strong {
    font-size: 11px;
    font-weight: 550;
}

.wa-platform .pc-content {
    min-height: calc(100vh - 70px);
    padding: 28px 34px 72px !important;
    background: var(--wa-shell-surface) !important;
}

.wa-platform .pc-content .card,
.wa-platform .pc-content .table-responsive,
.wa-platform .pc-content > .card {
    border-color: #e8ebf2 !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(37, 45, 69, .045) !important;
}

@media (max-width: 1050px) {
    .wa-platform .pc-header .wa-header-context {
        min-width: 0;
    }

    .wa-platform .pc-header .wa-header-quick-links {
        flex-basis: 250px;
    }
}

@media (max-width: 767.98px) {
    .wa-platform .pc-header .header-wrapper {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 12px !important;
    }

    .wa-platform .pc-header {
        min-height: 60px !important;
    }

    .wa-platform .pc-header .wa-header-context,
    .wa-platform .pc-header .wa-header-quick-links {
        display: none !important;
    }

    .wa-platform .pc-content {
        min-height: calc(100vh - 60px);
        padding: 20px 14px 72px !important;
    }
}

/* Keep labels readable without making every item compete with the page
   heading. This also gives the system theme's text a little more breathing
   room than the older 12px navigation override. */
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link {
    font-size: 13px !important;
    font-weight: 500 !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link,
.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-item.active > .pc-link[aria-current="page"] {
    font-weight: 600 !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link {
    font-size: 12px !important;
}

/* Larger WhatsApp workspace type scale. Keep the weight moderate so the
   improved readability does not turn every label into a heading. */
.wa-platform {
    font-size: 15px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-link {
    font-size: 14px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .pc-submenu .pc-link {
    font-size: 13px !important;
}

.wa-platform .wa-sidebar-shell .wa-sidebar-nav .wa-sidebar-caption label {
    font-size: 10px !important;
}

.wa-platform .pc-header .wa-header-context-copy strong {
    font-size: 13px;
}

.wa-platform .pc-header .wa-header-context-copy small {
    font-size: 10px;
}

.wa-platform .pc-header .wa-header-quick-copy strong {
    font-size: 12px;
}

.wa-platform .pc-header .wa-header-quick-link {
    font-size: 12px;
}

/* Shared WhatsApp modal flow. Keep native Bootstrap dialogs compact and
   calm, with the system green used as an accent instead of a large banner. */
.wa-platform .modal-backdrop.show {
    background: #173b36;
    opacity: .52;
}

.wa-platform .modal-dialog {
    width: auto;
    max-width: min(720px, calc(100vw - 2rem));
}

.wa-platform .modal-content {
    overflow: hidden;
    border: 1px solid var(--wa-shell-primary-line, #d6e6e0) !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 22px 58px rgba(23, 59, 54, .2) !important;
}

.wa-platform .modal-header,
.wa-platform .modal-header.btn-primary,
.wa-platform .modal-header.bg-primary {
    min-height: 0;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1.2rem !important;
    border-bottom: 1px solid var(--wa-shell-primary-line, #d6e6e0) !important;
    color: var(--wa-shell-ink, #253242) !important;
    background: #f5faf8 !important;
}

.wa-platform .modal-header .modal-title {
    color: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

.wa-platform .modal-header .modal-title i {
    color: var(--wa-shell-primary, #128c7e);
}

.wa-platform .modal-header .btn-close,
.wa-platform .modal-header .btn-close-white {
    width: 1.8rem;
    height: 1.8rem;
    margin: -.15rem -.25rem -.15rem auto;
    border-radius: 8px;
    opacity: .65;
    background-color: #e7f4ef;
    background-image: var(--bs-btn-close-bg);
    filter: none;
}

.wa-platform .modal-header .btn-close:hover,
.wa-platform .modal-header .btn-close:focus-visible {
    opacity: 1;
    background-color: #d7eee6;
}

.wa-platform .modal-body {
    max-height: min(62vh, 560px);
    overflow-y: auto;
    padding: 1.2rem !important;
    color: #3c514b;
    scrollbar-width: thin;
}

.wa-platform .modal-body .form-label {
    margin-bottom: .35rem;
    color: #29463f;
    font-size: .75rem;
    font-weight: 650;
}

.wa-platform .modal-body .form-control,
.wa-platform .modal-body .form-select,
.wa-platform .modal-body .input-group-text {
    min-height: 40px;
    border-color: #d3e2dd;
    color: #2f403d;
    background: #fff;
    box-shadow: none;
    font-size: .8rem;
}

.wa-platform .modal-body .input-group-text {
    min-width: 42px;
    justify-content: center;
    color: var(--wa-shell-primary-dark, #075e54);
    background: #f5faf8;
}

.wa-platform .modal-body .form-control::placeholder {
    color: #879b94;
    opacity: 1;
}

.wa-platform .modal-body .form-control:focus,
.wa-platform .modal-body .form-select:focus {
    border-color: var(--wa-shell-primary, #128c7e);
    box-shadow: 0 0 0 3px rgba(18, 140, 126, .12);
}

.wa-platform .modal-footer,
.wa-platform .wa-filter-actions {
    align-items: center;
    padding: .85rem 1.2rem !important;
    border-top: 1px solid #dcebe6;
    background: #fbfdfc;
}

.wa-platform .wa-filter-actions {
    margin-top: 1.15rem !important;
    margin-right: -1.2rem;
    margin-bottom: -1.2rem;
    margin-left: -1.2rem;
}

.wa-platform .modal-footer .btn,
.wa-platform .wa-filter-actions .btn {
    min-height: 38px;
    border-radius: 9px;
    padding: .55rem .9rem;
    font-size: .76rem;
    font-weight: 650;
}

.wa-platform .modal-footer .btn-success,
.wa-platform .wa-filter-actions .btn-primary,
.wa-platform .wa-filter-actions .btn-success {
    border-color: var(--wa-shell-primary, #128c7e) !important;
    color: #fff !important;
    background: var(--wa-shell-primary, #128c7e) !important;
}

.wa-platform .modal-footer .btn-success:hover,
.wa-platform .wa-filter-actions .btn-primary:hover,
.wa-platform .wa-filter-actions .btn-success:hover {
    border-color: var(--wa-shell-primary-dark, #075e54) !important;
    background: var(--wa-shell-primary-dark, #075e54) !important;
}

.wa-platform .modal-footer .btn-light,
.wa-platform .modal-footer .btn-secondary,
.wa-platform .wa-filter-actions .btn-light {
    border-color: #d3e2dd;
    color: #52645f;
    background: #fff;
}

.wa-platform .modal-footer .btn-light:hover,
.wa-platform .modal-footer .btn-secondary:hover,
.wa-platform .wa-filter-actions .btn-light:hover {
    border-color: #b8d5cb;
    color: #29463f;
    background: #f5faf8;
}

.wa-platform .wa-filter-actions .btn-outline-danger {
    border-color: #f1c7ca;
    color: #c13c4e;
    background: #fff;
}

.wa-platform .wa-filter-actions .btn-outline-danger:hover {
    border-color: #e7a4aa;
    color: #a52a3b;
    background: #fff4f5;
}

@media (max-width: 767.98px) {
    .wa-platform .modal-dialog {
        max-width: none;
        margin: .55rem;
    }

    .wa-platform .modal-body {
        max-height: calc(100vh - 170px);
        padding: 1rem !important;
    }

    .wa-platform .wa-filter-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        margin-right: -1rem;
        margin-bottom: -1rem;
        margin-left: -1rem;
        padding: .8rem 1rem !important;
    }

    .wa-platform .wa-filter-actions .btn {
        width: 100%;
    }
}
