/* =========================================================
   YYL CRM modern UI foundation
   ========================================================= */
:root {
    --yy-sidebar-width: 260px;
    --yy-navy-950: #071d36;
    --yy-navy-900: #0a294a;
    --yy-navy-800: #0f3b66;
    --yy-blue-700: #1d5fd1;
    --yy-blue-600: #2563eb;
    --yy-blue-100: #dbeafe;
    --yy-teal-600: #0f9f9a;
    --yy-slate-950: #0f172a;
    --yy-slate-700: #334155;
    --yy-slate-500: #64748b;
    --yy-slate-300: #cbd5e1;
    --yy-slate-200: #e2e8f0;
    --yy-slate-100: #f1f5f9;
    --yy-slate-50: #f8fafc;
    --yy-white: #ffffff;
    --yy-danger: #dc2626;
    --yy-shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.18);
    --yy-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
    --yy-radius-xl: 24px;
    --yy-radius-lg: 18px;
    --yy-radius-md: 12px;
}

body:has(.yy-login-page) {
    margin: 0;
    background: var(--yy-slate-50);
}

/* =========================================================
   YYL CRM modern logo related
   ========================================================= */
.yy-logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
    padding: 12px 10px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #2563eb, #0f9f9a);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.yy-logo-mark span {
    display: block;
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
}

.yy-logo-mark span:nth-child(1) { height: 15px; }
.yy-logo-mark span:nth-child(2) { height: 24px; }
.yy-logo-mark span:nth-child(3) { height: 31px; }

.yy-logo-title {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.yy-logo-subtitle {
    margin-top: 7px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.yy-field-label {
    margin-top: 8px;
    color: var(--yy-slate-700);
    font-size: 13px;
    font-weight: 700;
}

.yy-field-error:empty {
    display: none;
}

.yy-field-error {
    color: var(--yy-danger);
    font-size: 13px;
}

.yy-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--yy-slate-300);
    background: #fff;
    box-sizing: border-box;
    color: var(--yy-slate-950);
    font-size: 15px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.yy-input:focus {
    border-color: var(--yy-blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    background: #fff;
}

.yy-login-button {
    width: 100%;
    height: 50px;
    margin-top: 16px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--yy-blue-700), var(--yy-teal-600));
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.yy-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.28);
}

.yy-login-button:active {
    transform: translateY(0);
}

.yy-login-footer-note {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    color: var(--yy-slate-500);
    font-size: 12px;
    line-height: 1.5;
}

.yy-login-footer-note strong {
    display: block;
    margin-bottom: 3px;
    color: var(--yy-slate-700);
    font-size: 12px;
}

/* Modern table foundation for later pages. Safe unless wrapped with .modern-card or existing .nicetable is used. */
.modern-card,
.yy-card {
    background: #fff;
    border: 1px solid var(--yy-slate-200);
    border-radius: var(--yy-radius-lg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.modern-card table,
.yy-card table,
table.nicetable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.modern-card th,
.yy-card th,
table.nicetable th {
    padding: 11px 12px;
    background: var(--yy-slate-50);
    border-bottom: 1px solid var(--yy-slate-200);
    color: var(--yy-slate-700);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.modern-card td,
.yy-card td,
table.nicetable td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf2f7;
    color: var(--yy-slate-700);
    font-size: 14px;
}

.modern-card tr:hover td,
.yy-card tr:hover td,
table.nicetable tr:hover td {
    background: #f8fbff;
}

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

    .yy-login-brand-panel {
        padding: 30px;
    }

    .yy-login-hero-copy {
        margin-top: 46px;
    }

    .yy-login-feature-grid {
        margin-top: 36px;
    }
}

@media (max-width: 640px) {
    .yy-login-page {
        padding: 12px;
    }

    .yy-login-shell {
        border-radius: 22px;
    }

    .yy-login-brand-panel,
    .yy-login-card-panel {
        padding: 22px;
    }

    .yy-login-feature-grid {
        grid-template-columns: 1fr;
    }

    .yy-logo-title {
        font-size: 23px;
    }

    .yy-login-card {
        padding: 24px;
    }
}

/* =========================================================
   YYL CRM Modern App Shell
   ========================================================= */

body:has(.yy-modern-app-shell) {
    margin: 0;
    background: var(--yy-slate-50);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--yy-slate-950);
}

.yy-modern-app-shell {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    overflow: hidden;
}

/* Left sidebar now starts at the very top of the screen */
.yy-modern-sidebar {
    width: var(--yy-sidebar-width);
    flex: 0 0 var(--yy-sidebar-width);
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px 18px;
    background: linear-gradient(180deg, var(--yy-navy-900), var(--yy-navy-950));
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

/* New right-side wrapper: contains topbar + page content */
.yy-modern-right-shell {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Topbar now starts to the right of the sidebar */
.yy-modern-topbar {
    height: 68px;
    flex: 0 0 68px;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--yy-slate-200);
    box-sizing: border-box;
    color: var(--yy-slate-950);
}

/* Logo is now in the right-side topbar, so it should be white-background friendly */
.yy-modern-topbar-brand {
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    background: #ffffff;
    border-right: 1px solid var(--yy-slate-200);
    text-decoration: none;
    flex: 0 0 auto;
}

.yy-modern-topbar-brand:hover {
    text-decoration: none;
    background: var(--yy-slate-50);
}

.yy-modern-topbar-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.yy-modern-topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding-left: 22px;
    flex: 1 1 auto;
    min-width: 0;
}

.yy-modern-topnav-link {
    height: 68px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--yy-slate-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
}

.yy-modern-topnav-link:hover {
    color: var(--yy-blue-700);
    background: var(--yy-slate-50);
}

.yy-modern-topnav-link-active {
    color: var(--yy-blue-700);
    border-bottom-color: var(--yy-blue-600);
}

.yy-modern-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 20px;
    flex: 0 0 auto;
}

/* No longer used by the new PHP layout */
.yy-modern-body {
    display: contents;
}

.yy-modern-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 26px 26px;
    box-sizing: border-box;
    overflow: auto;
}

.yy-modern-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.yy-modern-page-header h1 {
    margin: 0;
    color: var(--yy-slate-950);
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.yy-modern-page-header p {
    margin: 10px 0 0;
    color: var(--yy-slate-500);
    font-size: 12px;
}

/* Make old dashboard tables look more modern inside the new shell */
.yy-modern-main .table_border,
.yy-modern-main .shadowed-table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--yy-slate-200);
    border-radius: var(--yy-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.yy-modern-main table.nicetable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.yy-modern-main .nicetable th,
.yy-modern-main .table_heading {
    padding: 11px 12px;
    background: var(--yy-slate-50);
    border-bottom: 1px solid var(--yy-slate-200);
    color: var(--yy-slate-700);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.yy-modern-main .nicetable td,
.yy-modern-main .table_rows {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    color: var(--yy-slate-700);
    font-size: 13px;
}

.yy-modern-main .nicetable tr:hover td {
    background: #f8fbff;
}

.yy-modern-main a {
    color: var(--yy-blue-700);
    font-weight: 700;
    text-decoration: none;
}

.yy-modern-main a:hover {
    text-decoration: underline;
}

.yy-modern-main .grid-container table {
    max-width: 100%;
}

.yy-modern-main .grid-container .table_border,
.yy-modern-main .grid-container .shadowed-table,
.yy-modern-main .grid-container table.nicetable {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.yy-modern-main .grid-container td,
.yy-modern-main .grid-container th {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 1100px) {
    .yy-modern-body {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .yy-modern-topbar-brand {
        width: 220px;
        min-width: 220px;
    }

    .yy-modern-topbar-logo {
        max-width: 180px;
    }
}

@media (max-width: 820px) {
    .yy-modern-topbar {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .yy-modern-topnav-link {
        height: 40px;
    }

    .yy-modern-body {
        grid-template-columns: 1fr;
    }

    .yy-modern-sidebar {
        max-height: none;
    }

    .yy-modern-main {
        padding: 18px;
    }
}

.yy-modern-user-menu {
    position: relative;
}

.yy-modern-userbox {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--yy-slate-950);
    cursor: pointer;
    font-family: inherit;
}

.yy-modern-userbox:hover {
    background: var(--yy-slate-50);
}

.yy-modern-user-name {
    color: var(--yy-slate-950);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.yy-modern-user-role {
    margin-top: 2px;
    color: var(--yy-slate-500);
    font-size: 11px;
    font-weight: 600;
}

.yy-modern-user-caret {
    color: var(--yy-slate-500);
    font-size: 12px;
    padding-left: 2px;
}

.yy-modern-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 178px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--yy-slate-200);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.20);
    z-index: 1000;
}

.yy-modern-user-dropdown-open {
    display: block;
}

.yy-modern-user-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--yy-slate-200);
    border-top: 1px solid var(--yy-slate-200);
    transform: rotate(45deg);
}

.yy-modern-user-dropdown a {
    display: block;
    padding: 10px 11px;
    border-radius: 10px;
    color: var(--yy-slate-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.yy-modern-user-dropdown a:hover {
    background: var(--yy-slate-50);
    color: var(--yy-blue-700);
    text-decoration: none;
}

/* =========================================================
   YYL CRM Shared Page Wrappers
   ========================================================= */
.yy-page-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
    box-sizing: border-box;
}

.yy-page-wrap-narrow {
    max-width: 980px;
}

.yy-page-wrap-wide {
    max-width: 1280px;
}

.yy-page-wrap-full {
    max-width: none;
    width: 100%;
}

/* =========================================================
   YYL CRM Shared Select/Search Form Layouts
   ========================================================= */

.yy-select-card {
    max-width: 640px;
    margin: 0 auto;
}

.yy-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.yy-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 22px;
}

.yy-form-actions-right {
    justify-content: flex-end;
}

.yy-form-actions-between {
    justify-content: space-between;
}

@media (max-width: 640px) {
    .yy-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   YYL CRM Shared Modern Cards
   Use across all modernized CRM pages
   ========================================================= */
.yy-modern-card {
    background: #fff;
    border: 1px solid var(--yy-slate-200);
    border-radius: var(--yy-radius-lg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.yy-modern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    background: linear-gradient(180deg, #eaf3ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
}

.yy-modern-card-header-main {
    min-width: 0;
}

.yy-modern-card-header-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.yy-modern-card-title {
    margin: 0;
    color: var(--yy-slate-950);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.yy-modern-card-subtitle {
    margin: 7px 0 0;
    color: var(--yy-slate-500);
    font-size: 14px;
}

.yy-modern-card-body {
    padding: 26px;
}

.yy-modern-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px 18px;
    border-top: 1px solid var(--yy-slate-200);
    background: var(--yy-slate-50);
}

.yy-modern-card-footer-right {
    justify-content: flex-end;
}

.yy-modern-card-compact .yy-modern-card-header {
    padding: 18px 22px;
}

.yy-modern-card-compact .yy-modern-card-body {
    padding: 16px;
}

.yy-modern-card-compact .yy-modern-card-footer {
    padding: 14px 22px 16px;
}

@media (max-width: 640px) {
    .yy-modern-card-header {
        display: block;
        padding: 20px 18px;
    }

    .yy-modern-card-header-side {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .yy-modern-card-body,
    .yy-modern-card-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .yy-modern-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   YYL CRM Shared Date Range Row
   ========================================================= */

.yy-date-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.yy-date-range-row .yy-form-row label {
    min-height: 18px;
}

@media (max-width: 700px) {
    .yy-date-range-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   YYL CRM Modern Profile Page
   ========================================================= */

.yy-profile-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.yy-profile-card {
    width: min(720px, 100%);
    margin: 0 auto;
}

.yy-profile-card-wide {
    width: min(980px, 100%);
}

.yy-profile-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    background: linear-gradient(180deg, #eaf3ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
}

.yy-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yy-blue-700), var(--yy-teal-600));
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.20);
}

.yy-profile-card-header h2,
.yy-profile-edit-header h2 {
    margin: 0;
    color: var(--yy-slate-950);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.yy-profile-card-header p,
.yy-profile-edit-header p {
    margin: 7px 0 0;
    color: var(--yy-slate-500);
    font-size: 14px;
}

.yy-profile-details {
    padding: 10px 26px 6px;
}

.yy-profile-detail-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}

.yy-profile-detail-row:last-child {
    border-bottom: 0;
}

.yy-profile-detail-label {
    color: var(--yy-slate-500);
    font-size: 13px;
    font-weight: 600;
}

.yy-profile-detail-value {
    color: var(--yy-slate-950);
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: break-word;
}

.yy-profile-edit-header {
    padding: 24px 26px;
    background: linear-gradient(180deg, #eaf3ff, #dbeafe);
    border-bottom: 1px solid #bfdbfe;
}

.yy-profile-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 22px;
    padding: 26px;
}

.yy-profile-form-section {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--yy-slate-200);
    border-radius: 16px;
    background: #fff;
}

.yy-profile-form-section h3 {
    margin: 0 0 16px;
    color: var(--yy-slate-950);
    font-size: 17px;
    font-weight: 600;
}

.yy-section-note {
    margin: -6px 0 16px;
    color: var(--yy-slate-500);
    font-size: 13px;
    line-height: 1.5;
}

.yy-form-row {
    margin-bottom: 16px;
}

.yy-form-row:last-child {
    margin-bottom: 0;
}

.yy-form-row label {
    display: block;
    margin-bottom: 7px;
    color: var(--yy-slate-700);
    font-size: 13px;
    font-weight: 600;
}

.yy-modern-input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid var(--yy-slate-300);
    background: #fff;
    box-sizing: border-box;
    color: var(--yy-slate-950);
    font-size: 14px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.yy-modern-input:focus {
    border-color: var(--yy-blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.yy-readonly-field {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid var(--yy-slate-200);
    background: var(--yy-slate-50);
    color: var(--yy-slate-700);
    font-size: 14px;
    box-sizing: border-box;
}

/* =========================================================
   YYL CRM Shared Modern Buttons
   Use across all modernized CRM pages
   ========================================================= */

.yy-btn,
.yy-btn:link,
.yy-btn:visited {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.yy-btn:hover,
.yy-btn:focus,
.yy-btn:active {
    text-decoration: none !important;
}

/* Primary action: Add, Save, Update, Search */
.yy-btn-primary,
.yy-btn-primary:link,
.yy-btn-primary:visited {
    color: #fff !important;
    background: linear-gradient(135deg, var(--yy-blue-700), var(--yy-teal-600));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.yy-btn-primary:hover,
.yy-btn-primary:focus,
.yy-btn-primary:active {
    color: #fff !important;
    filter: brightness(1.03);
}

/* Secondary action: Edit, Back, Cancel, neutral actions */
.yy-btn-secondary,
.yy-btn-secondary:link,
.yy-btn-secondary:visited {
    color: var(--yy-slate-700) !important;
    background: #fff;
    border-color: var(--yy-slate-300);
    box-shadow: none;
}

.yy-btn-secondary:hover,
.yy-btn-secondary:focus,
.yy-btn-secondary:active {
    color: var(--yy-blue-700) !important;
    background: var(--yy-slate-50);
    border-color: var(--yy-slate-300);
}

/* Success/finish action: Done, Complete */
.yy-btn-success,
.yy-btn-success:link,
.yy-btn-success:visited {
    color: #fff !important;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.16);
}

.yy-btn-success:hover,
.yy-btn-success:focus,
.yy-btn-success:active {
    color: #fff !important;
    filter: brightness(1.03);
}

/* Done / return action: more visible than secondary, less aggressive than primary */
.yy-btn-done,
.yy-btn-done:link,
.yy-btn-done:visited {
    color: var(--yy-blue-700) !important;
    background: #eaf3ff;
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
}

.yy-btn-done:hover,
.yy-btn-done:focus,
.yy-btn-done:active {
    color: var(--yy-blue-700) !important;
    background: #dbeafe;
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

/* Utility action: Print, Export, Download, Preview */
.yy-btn-utility,
.yy-btn-utility:link,
.yy-btn-utility:visited {
    color: #92400e !important;
    background: #fef3c7;
    border-color: #fcd34d;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

.yy-btn-utility:hover,
.yy-btn-utility:focus,
.yy-btn-utility:active {
    color: #78350f !important;
    background: #fde68a;
    border-color: #fbbf24;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.16);
}

/* Danger action: Delete, Remove */
.yy-btn-danger,
.yy-btn-danger:link,
.yy-btn-danger:visited {
    color: #fff !important;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.16);
}

.yy-btn-danger:hover,
.yy-btn-danger:focus,
.yy-btn-danger:active {
    color: #fff !important;
    filter: brightness(1.03);
}

/* Smaller button variant for table rows */
.yy-btn-sm {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
}

/* Old entry_error() output sometimes appears as inline text/divs.
   This makes most legacy error messages less ugly inside modern forms. */
.yy-profile-card .error,
.yy-profile-card .error_message,
.yy-profile-card .entry_error {
    margin: 4px 0 7px;
    color: var(--yy-danger);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .yy-profile-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .yy-profile-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .yy-profile-form-grid,
    .yy-profile-card-header,
    .yy-profile-edit-header,
    .yy-profile-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .yy-profile-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .yy-btn {
        width: 100%;
    }
}

.yy-modern-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.yy-modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.yy-modern-table th {
    background: #eaf3ff;
    color: #1e3a8a;
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #cfe1f5;
    white-space: nowrap;
}

.yy-modern-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    vertical-align: middle;
}

.yy-modern-table tbody tr:hover {
    background: #f8fbff;
}

.yy-modern-table tbody tr:last-child td {
    border-bottom: 0;
}

.yy-money-col {
    text-align: right !important;
    white-space: nowrap;
}

.yy-money-label {
    text-align: right !important;
    font-weight: 800;
    color: var(--yy-slate-950) !important;
}

.yy-total-row td {
    background: #f8fafc;
    font-weight: 800;
    color: var(--yy-slate-950);
}

.yy-muted {
    color: #94a3b8;
    font-weight: 700;
}

.yy-strong {
    color: #0f172a;
    font-weight: 800;
}

.yy-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.yy-pill-good {
    background: #dcfce7;
    color: #166534;
}

.yy-pill-bad {
    background: #fee2e2;
    color: #991b1b;
}

.yy-pill-muted {
    background: #f1f5f9;
    color: #64748b;
}

.yy-empty-state {
    padding: 34px;
    color: #64748b;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

/* =========================================================
   YYL Date Picker Styles  
   Larger font and more padding to make the jQuery UI date 
   picker feel less cramped and more modern.
   ========================================================= */
.ui-datepicker {
    font-size: 18px;
}

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.ui-datepicker-header {
    font-size: 20px;
    padding: 0.4em;
}

.ui-datepicker-calendar th {
    padding: 0.4em;
    border: none;
}

.ui-datepicker-calendar td {
    padding: 0.2em;
    border: none;
}

.ui-datepicker-calendar .ui-state-default {
    padding: 0.2em;
}

/* =========================================================
   YYL CRM Shared Modern Textarea
   ========================================================= */

.yy-modern-textarea {
    width: 100%;
    min-height: 220px;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid var(--yy-slate-300);
    background: #fff;
    box-sizing: border-box;
    color: var(--yy-slate-950);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    outline: none;
    resize: vertical;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.yy-modern-textarea:focus {
    border-color: var(--yy-blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

/* =========================================================
   YYL CRM Shared Icon Buttons
   Use for table actions across all modernized pages
   ========================================================= */

.yy-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    border: 1px solid var(--yy-slate-300);
    border-radius: 8px;
    background: #fff;
    color: var(--yy-blue-700);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.yy-icon-btn:hover {
    background: var(--yy-slate-50);
    border-color: #bfdbfe;
    color: var(--yy-blue-700);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
}

.yy-icon-btn:active {
    transform: translateY(0);
}

.yy-icon-btn img {
    max-width: 15px;
    max-height: 15px;
}

.yy-icon-btn i {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

/* Add / create */
.yy-icon-btn-add {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.yy-icon-btn-add:hover {
    color: #15803d;
    border-color: #86efac;
    background: #dcfce7;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.12);
}

/* Edit */
.yy-icon-btn-edit {
    color: var(--yy-blue-700);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.yy-icon-btn-edit:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #dbeafe;
}

/* Delete / remove */
.yy-icon-btn-danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff1f2;
}

.yy-icon-btn-danger:hover {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fee2e2;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}

/* Neutral / view / details */
.yy-icon-btn-neutral {
    color: var(--yy-slate-700);
    border-color: var(--yy-slate-300);
    background: #fff;
}

.yy-icon-btn-neutral:hover {
    color: var(--yy-slate-950);
    background: var(--yy-slate-50);
}

/* =========================================================
   YYL CRM Shared Icon Button Variants
   Use these anywhere table/list action icons are needed
   ========================================================= */

/* Payment / money */
.yy-icon-btn-payment {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.yy-icon-btn-payment:hover {
    color: #065f46;
    border-color: #6ee7b7;
    background: #d1fae5;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.12);
}

/* Print */
.yy-icon-btn-print {
    color: #92400e;
    border-color: #fcd34d;
    background: #fffbeb;
}

.yy-icon-btn-print:hover {
    color: #78350f;
    border-color: #fbbf24;
    background: #fef3c7;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

/* Email */
.yy-icon-btn-email {
    color: var(--yy-blue-700);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.yy-icon-btn-email:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #dbeafe;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

/* View / open */
.yy-icon-btn-view {
    color: var(--yy-slate-700);
    border-color: var(--yy-slate-300);
    background: #fff;
}

.yy-icon-btn-view:hover {
    color: var(--yy-blue-700);
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
}

/* Void / warning */
.yy-icon-btn-warning {
    color: #b45309;
    border-color: #fde68a;
    background: #fffbeb;
}

.yy-icon-btn-warning:hover {
    color: #92400e;
    border-color: #fcd34d;
    background: #fef3c7;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

/* =========================================================
   YYL CRM Shared Status Pills
   For document flags, yes/no statuses, and small state labels
   ========================================================= */

.yy-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

.yy-status-pill i {
    font-size: 12px;
    line-height: 1;
}

.yy-status-pill-good {
    background: #dcfce7;
    color: #166534;
}

.yy-status-pill-muted {
    background: #f1f5f9;
    color: #64748b;
}

.yy-status-pill-faded {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    opacity: 0.72;
}

.yy-status-pill-bad {
    background: #fee2e2;
    color: #991b1b;
}

.yy-status-pill-warning {
    background: #fef3c7;
    color: #92400e;
}

/* =========================================================
   YYL CRM File Select Button
   ========================================================= */
.yy-modern-input[type="file"]::file-selector-button {
    height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--yy-blue-700);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.yy-modern-input[type="file"]::file-selector-button:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* =========================================================
   YYL CRM Shared Switch / Toggle
   Use:
   <div class="yy-switch-wrap">
       <label class="yy-switch-field" for="some_id">
           <input type="checkbox" id="some_id" name="some_name" value="Y">
           <span class="yy-switch-slider"></span>
           <span class="yy-switch-text">Label</span>
       </label>
   </div>
   ========================================================= */

.yy-switch-wrap {
    min-height: 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.yy-switch-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    cursor: pointer;
    user-select: none;
}

.yy-form-row .yy-switch-field {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}

.yy-switch-field input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
}

.yy-switch-field .ui-checkboxradio-icon,
.yy-switch-field .ui-checkboxradio-label {
    display: none !important;
}

.yy-switch-slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #94a3b8;
    border: 1px solid #64748b;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    box-sizing: border-box;
}

.yy-switch-slider::before {
    content: "";
    position: absolute;
    display: block;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
    transition: transform 0.16s ease;
}

.yy-switch-field input[type="checkbox"]:checked + .yy-switch-slider {
    background: linear-gradient(135deg, var(--yy-blue-700), var(--yy-teal-600));
    border-color: transparent;
}

.yy-switch-field input[type="checkbox"]:checked + .yy-switch-slider::before {
    transform: translateX(20px);
}

.yy-switch-text {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    color: var(--yy-slate-700);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* =========================================================
   YYL CRM Fatal Error Box
   ========================================================= */

.yy-fatal-card {
    max-width: 760px;
    margin: 0 auto;
}

.yy-fatal-card-header {
    background: linear-gradient(180deg, #fee2e2, #fff1f2);
    border-bottom-color: #fecaca;
}

.yy-fatal-card-header .yy-modern-card-title {
    color: #991b1b;
}

.yy-fatal-card-header .yy-modern-card-subtitle {
    color: #7f1d1d;
}

.yy-fatal-message {
    padding: 16px 18px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff1f2;
}

.yy-fatal-label {
    margin-bottom: 7px;
    color: #991b1b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.yy-fatal-text {
    color: #7f1d1d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.yy-fatal-debug {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--yy-slate-50);
    border: 1px solid var(--yy-slate-200);
    color: var(--yy-slate-700);
    font-size: 13px;
    line-height: 1.6;
}

.yy-fatal-link {
    margin-top: 16px;
}

/* =========================================================
   Modern App Layout Override
   Sidebar full height, topbar starts to the right
   ========================================================= */

.yy-modern-app-shell {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.yy-modern-right-shell {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yy-modern-topbar {
    height: 68px;
    flex: 0 0 68px;
}

.yy-modern-topbar-brand {
    width: auto;
    min-width: 0;
    height: 68px;
    background: #ffffff;
    border-right: 1px solid var(--yy-slate-200);
    flex: 0 0 auto;
}

.yy-modern-sidebar {
    width: var(--yy-sidebar-width);
    flex: 0 0 var(--yy-sidebar-width);
    height: 100vh;
    overflow: hidden;
}

.yy-modern-main {
    flex: 1 1 auto;
    overflow: auto;
}

/* Old wrapper is no longer used with the new PHP function */
.yy-modern-body {
    display: contents;
}

/* Compact the sidebar a little */
.yy-modern-sidebar-section {
    padding-top: 0;
}

.yy-modern-sidebar-heading,
.yy-modern-sidebar-title {
    margin-top: 8px;
    margin-bottom: 6px;
}

.yy-modern-sidebar-link {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
}

/* Footer takes too much vertical space; hide it if needed */
.yy-modern-sidebar-footer {
    display: none;
}

/* =========================================================
   TEMP FIX - Modern Shell Recovery
   Sidebar full height, topbar starts to right of sidebar
   ========================================================= */

body:has(.yy-modern-app-shell) {
    margin: 0;
    background: var(--yy-slate-50);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--yy-slate-950);
}

/* Main layout */
.yy-modern-app-shell {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    overflow: hidden;
}

/* Left sidebar: full height from top */
.yy-modern-sidebar {
    width: 210px;
    flex: 0 0 210px;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px 18px;
    background: linear-gradient(180deg, var(--yy-navy-900), var(--yy-navy-950));
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

/* Right side: topbar + page content */
.yy-modern-right-shell {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Topbar starts to the right of the sidebar */
.yy-modern-topbar {
    height: 68px;
    flex: 0 0 68px;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--yy-slate-200);
    box-sizing: border-box;
    color: var(--yy-slate-950);
}

/* New white-background logo area */
.yy-modern-topbar-brand {
    width: auto;
    min-width: 0;
    height: 68px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    background: #ffffff;
    border-right: 0;
    text-decoration: none;
    flex: 0 0 auto;
    box-shadow: none;
    outline: none;
}

.yy-modern-topbar-brand:hover {
    text-decoration: none;
    background: #ffffff;
    opacity: 1;
}

.yy-modern-topbar-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

/* Top navigation */
.yy-modern-topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding-left: 22px;
    flex: 1 1 auto;
    min-width: 0;
}

.yy-modern-topnav-link {
    height: 68px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--yy-slate-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
}

.yy-modern-topnav-link:hover {
    color: var(--yy-blue-700);
    background: var(--yy-slate-50);
    text-decoration: none;
}

.yy-modern-topnav-link-active {
    color: var(--yy-blue-700);
    border-bottom-color: var(--yy-blue-600);
}

/* Topbar right side */
.yy-modern-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 20px;
}

/* Restore DEBUG badge */
.yy-modern-debug-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Restore user menu */
.yy-modern-user-menu {
    position: relative;
}

.yy-modern-userbox {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--yy-slate-950);
    cursor: pointer;
    font-family: inherit;
}

.yy-modern-userbox:hover {
    background: var(--yy-slate-50);
}

.yy-modern-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yy-blue-700), var(--yy-teal-600));
    color: #fff;
    font-weight: 900;
}

.yy-modern-user-name {
    color: var(--yy-slate-950);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.yy-modern-user-role {
    margin-top: 2px;
    color: var(--yy-slate-500);
    font-size: 11px;
    font-weight: 600;
}

.yy-modern-user-caret {
    color: var(--yy-slate-500);
    font-size: 12px;
    padding-left: 2px;
}

/* Main content */
.yy-modern-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 26px 26px;
    box-sizing: border-box;
    overflow: auto;
}

/* Old wrapper should not control the new layout */
.yy-modern-body {
    display: contents;
}

/* Sidebar background effect */
.yy-modern-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.36;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.20), transparent 28%);
    background-size: 36px 36px, 36px 36px, auto;
}

.yy-modern-sidebar > * {
    position: relative;
    z-index: 1;
}

/* Sidebar sections */
.yy-modern-sidebar-section {
    padding-top: 0;
}

/* Works whether your PHP uses heading class or plain section title class */
.yy-modern-sidebar-heading,
.yy-modern-sidebar-title {
    display: block;
    margin: 10px 14px 6px;
    color: rgba(125, 211, 252, 0.86);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Restore sidebar links.
   This also fixes the case where anchors lost the yy-modern-sidebar-link class. */
.yy-modern-sidebar-link,
.yy-modern-sidebar a {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    color: rgba(241, 245, 249, 0.90);
    text-decoration: none;
    font-size: 15px;
    font-weight: 200;
    line-height: 1.15;
    box-sizing: border-box;
}

.yy-modern-sidebar-link:hover,
.yy-modern-sidebar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.yy-modern-sidebar-link-active,
.yy-modern-sidebar a.yy-modern-sidebar-link-active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

/* Hide footer for height savings */
.yy-modern-sidebar-footer {
    display: none;
}

/* User dropdown */
.yy-modern-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 178px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--yy-slate-200);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.20);
    z-index: 1000;
}

.yy-modern-user-dropdown-open {
    display: block;
}

.yy-modern-user-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--yy-slate-200);
    border-top: 1px solid var(--yy-slate-200);
    transform: rotate(45deg);
}

.yy-modern-user-dropdown a {
    display: block;
    padding: 10px 11px;
    border-radius: 10px;
    color: var(--yy-slate-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.yy-modern-user-dropdown a:hover {
    background: var(--yy-slate-50);
    color: var(--yy-blue-700);
    text-decoration: none;
}