/* =================================================================
   WORKPLAN DESIGN SYSTEM — Portable CSS
   =================================================================
   Copy this file to wwwroot/css/workplan.css in your Blazor project.
   Link it in App.razor:
     <link rel="stylesheet" href="css/workplan.css" />

   Also required in <head>:
     <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" />
     <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap" rel="stylesheet" />
   ================================================================= */


/* =================================================================
   CSS CUSTOM PROPERTIES
   ================================================================= */
:root {
    --wp-red: #a81b27;
    --wp-red-hover: #8a1520;
    --wp-sidebar-bg: #192734;
    --wp-sidebar-hover: #243244;
    --wp-sidebar-border: #2d3b4a;
    --wp-accent: #20a29d;
    --wp-accent-soft: rgba(32, 162, 157, 0.12);
    --wp-accent-border: rgba(32, 162, 157, 0.40);
    --wp-text-primary: #0F172A;
    --wp-text-secondary: #64748B;
    --wp-text-muted: #94A3B8;
    --wp-border: #E2E8F0;
    --wp-surface: #FFFFFF;
    --wp-surface-alt: #F8FAFC;
}

html, body {
    font-family: "DM Sans", "Funnel Sans", sans-serif, Helvetica, Arial, sans-serif;
}


/* =================================================================
   ROOT LAYOUT
   ================================================================= */
.wp-layout {
    display: flex;
    min-height: 100vh;
    background: var(--wp-surface-alt);
    color: var(--wp-text-primary);
}

.wp-main-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wp-main {
    flex: 1;
    min-width: 0;
    padding: 1rem 2rem;
    overflow-x: auto;
}

.wp-sidebar-checkbox {
    display: none;
}

.wp-sidebar-overlay {
    display: none;
}


/* =================================================================
   SIDEBAR
   ================================================================= */
.wp-sidebar-column {
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #192734;
    color: rgba(255, 255, 255, 0.92);
    border-right: 1px solid #2d3b4a;
    flex-shrink: 0;
    z-index: 100;
    font-family: 'DM Sans', 'Funnel Sans', sans-serif;
}

/* Red header (sidebar top) */
.wp-header {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    height: 56px;
    padding: 0 1rem;
    background: #a81b27;
    color: #FFFFFF;
    flex-shrink: 0;
}

.wp-header-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.wp-hamburger {
    display: none;
    cursor: pointer;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    color: #FFFFFF;
    transition: background 0.15s;
    line-height: 0;
}

    .wp-hamburger:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .wp-hamburger .material-symbols-outlined {
        font-size: 24px;
    }

/* Nav container */
.wp-sidebar {
    position: static;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    width: auto;
    background: #192734;
    z-index: auto;
    transform: none;
    transition: none;
}

    .wp-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .wp-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 3px;
    }

/* Main nav items */
.wp-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 2px 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    list-style: none;
    user-select: none;
}

    .wp-sidebar-item::-webkit-details-marker,
    .wp-sidebar-item::marker {
        display: none;
        content: "";
    }

    .wp-sidebar-item:hover {
        background: rgba(32, 162, 157, 0.12);
        color: #FFFFFF;
        text-decoration: none;
    }

    .wp-sidebar-item.active {
        background: rgba(32, 162, 157, 0.12);
        color: #FFFFFF;
        border-left: 3px solid #20a29d;
        padding-left: 13px;
    }

    .wp-sidebar-item .material-symbols-outlined {
        font-size: 1.25rem;
        opacity: 0.75;
        flex-shrink: 0;
    }

/* Active group */
.wp-sidebar-group.has-active > summary {
    background: rgba(32, 162, 157, 0.12);
    color: #FFFFFF;
    border-left: 3px solid #20a29d;
    padding-left: 13px;
}

/* Chevron */
.wp-sidebar-chevron {
    margin-left: auto;
    font-size: 1.1rem !important;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

details.wp-sidebar-group[open] > summary .wp-sidebar-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
    color: rgba(32, 162, 157, 0.9);
}

details.wp-sidebar-group[open] > summary.wp-sidebar-item:not(.active):not(.has-active) {
    background: rgba(255, 255, 255, 0.04);
}

/* Submenu */
.wp-sidebar-submenu {
    border-left: 2px solid rgba(32, 162, 157, 0.40);
    margin-left: 24px;
    padding: 4px 0;
}

.wp-sidebar-submenu .wp-sidebar-submenu {
    margin-left: 16px;
    border-left-color: rgba(32, 162, 157, 0.25);
}

.wp-sidebar-submenu .wp-sidebar-submenu .wp-sidebar-submenu {
    margin-left: 12px;
    border-left-color: rgba(32, 162, 157, 0.15);
}

/* Sub-items */
.wp-sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 1px 6px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    list-style: none;
    user-select: none;
}

    .wp-sidebar-subitem::-webkit-details-marker,
    .wp-sidebar-subitem::marker {
        display: none;
        content: "";
    }

    .wp-sidebar-subitem:hover {
        background: rgba(32, 162, 157, 0.15);
        color: #FFFFFF;
        text-decoration: none;
    }

    .wp-sidebar-subitem.active {
        background: rgba(32, 162, 157, 0.22);
        color: #FFFFFF;
        font-weight: 500;
    }

.wp-sidebar-subgroup-toggle {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

details.wp-sidebar-group[open] > .wp-sidebar-subgroup-toggle {
    color: rgba(255, 255, 255, 0.95);
}

.wp-sidebar-submenu .material-symbols-outlined {
    font-size: 1.05rem;
    opacity: 0.55;
}

.wp-sidebar-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

/* Divider */
.wp-sidebar-divider {
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent 100%);
    margin: 0.5rem 1rem;
}

.wp-sidebar-grunddata > summary {
    opacity: 0.75;
    font-size: 0.875rem;
}

    .wp-sidebar-grunddata > summary:hover {
        opacity: 1;
    }

.wp-sidebar-grunddata[open] > summary {
    opacity: 0.9;
}

.wp-sidebar-subicon {
    font-size: 1rem !important;
    margin-right: 0.25rem;
    opacity: 0.7;
    vertical-align: middle;
}


/* =================================================================
   USER AREA (sidebar bottom)
   ================================================================= */
.wp-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-top: 1px solid #2d3b4a;
    flex-shrink: 0;
    position: relative;
    background: #192734;
}

.wp-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

    .wp-user-info:hover {
        background: #243244;
    }

    .wp-user-info.active {
        background: rgba(32, 162, 157, 0.12);
    }

.wp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #243244;
    border: 2px solid #20a29d;
    flex-shrink: 0;
}

.wp-user-text {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.wp-user-name {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-user-meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-user-menu {
    position: relative;
    flex-shrink: 0;
}

.wp-user-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    list-style: none;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

    .wp-user-menu-toggle::-webkit-details-marker,
    .wp-user-menu-toggle::marker {
        display: none;
        content: "";
    }

    .wp-user-menu-toggle:hover {
        background: #243244;
        color: #FFFFFF;
    }

.wp-user-menu[open] > .wp-user-menu-toggle {
    background: #243244;
    color: #FFFFFF;
}

.wp-user-menu-toggle .material-symbols-outlined {
    font-size: 1.25rem;
}

.wp-user-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.wp-user-dropdown {
    position: absolute;
    bottom: calc(100% + 0.25rem);
    right: 0;
    top: auto;
    min-width: 200px;
    margin-top: 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    padding: 0.25rem 0;
    overflow: hidden;
    z-index: 1001;
}

.wp-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.12s, color 0.12s;
    cursor: pointer;
}

    .wp-user-dropdown-item:hover {
        background: #f0f7f6;
        color: #20a29d;
    }

    .wp-user-dropdown-item .material-symbols-outlined {
        font-size: 1.15rem;
        color: #999;
    }

.wp-user-dropdown-danger {
    color: #B91C1C;
}

    .wp-user-dropdown-danger:hover {
        background: #FEF2F2;
        color: #991B1B;
    }

    .wp-user-dropdown-danger .material-symbols-outlined {
        color: #DC2626;
    }

.wp-user-divider {
    margin: 0.25rem 0;
    border: none;
    border-top: 1px solid #E2E8F0;
}


/* =================================================================
   TOPBAR
   ================================================================= */
.wp-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 56px;
    padding: 0 1.5rem;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.wp-topbar-hamburger {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #64748B;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}

    .wp-topbar-hamburger:hover {
        background: #F1F5F9;
        color: #0F172A;
    }

    .wp-topbar-hamburger .material-symbols-outlined {
        font-size: 1.375rem;
    }

@media (max-width: 768px) {
    .wp-topbar-hamburger {
        display: inline-flex;
    }
}

.wp-topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748B;
    flex-shrink: 0;
}

    .wp-topbar-breadcrumb a {
        color: #64748B;
        text-decoration: none;
        transition: color 0.1s;
    }

        .wp-topbar-breadcrumb a:hover {
            color: #0F172A;
        }

.wp-breadcrumb-sep {
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

    .wp-breadcrumb-sep .material-symbols-outlined {
        font-size: 1rem;
    }

.wp-breadcrumb-current {
    color: #0F172A;
    font-weight: 500;
}

.wp-topbar-search {
    position: relative;
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
}

.wp-topbar-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem !important;
    color: #94A3B8;
    pointer-events: none;
}

.wp-topbar-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    color: #0F172A;
    outline: none;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

    .wp-topbar-search input:focus {
        background: #FFFFFF;
        border-color: #a81b27;
        box-shadow: 0 0 0 3px rgba(168, 27, 39, 0.1);
    }

    .wp-topbar-search input::placeholder {
        color: #94A3B8;
    }

.wp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.wp-topbar-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748B;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    padding: 0;
}

    .wp-topbar-iconbtn:hover {
        background: #F1F5F9;
        color: #0F172A;
    }

    .wp-topbar-iconbtn .material-symbols-outlined {
        font-size: 1.25rem;
    }

.wp-topbar-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #a81b27;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}


/* =================================================================
   PAGE TEMPLATE COMPONENTS
   ================================================================= */

/* Legacy container (used in Mall.razor) */
.sec-side-container {
    padding: 0.1rem;
}

.sec-side-title {
    font-size: 2rem;
    color: #086370;
    font-weight: 700;
    margin: 0;
}

/* Page header */
.wp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.wp-page-header-text {
    flex: 1;
    min-width: 0;
}

.wp-page-subtitle {
    color: #64748B;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.wp-page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}


/* =================================================================
   KPI CARDS
   ================================================================= */
.wp-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 100%;
}

    .wp-kpi-card:hover {
        border-color: #CBD5E1;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }

.wp-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.wp-kpi-label {
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 500;
}

.wp-kpi-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #64748B;
    flex-shrink: 0;
}

    .wp-kpi-icon-box .material-symbols-outlined {
        font-size: 18px;
        line-height: 1;
    }

/* KPI color variants */
.wp-kpi-warning .wp-kpi-icon-box {
    background: #FEF3C7;
    color: #B45309;
}

.wp-kpi-info .wp-kpi-icon-box {
    background: #DBEAFE;
    color: #1D4ED8;
}

.wp-kpi-danger .wp-kpi-icon-box {
    background: #FEE2E2;
    color: #B91C1C;
}

.wp-kpi-success .wp-kpi-icon-box {
    background: #D1FAE5;
    color: #047857;
}

.wp-kpi-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.1;
}

.wp-kpi-trend {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.wp-kpi-trend-up {
    color: #047857;
    font-weight: 500;
}

.wp-kpi-trend-down {
    color: #B91C1C;
    font-weight: 500;
}


/* =================================================================
   FILTER BAR
   ================================================================= */
.wp-filter-bar {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}


/* =================================================================
   CARDS (Radzen override)
   ================================================================= */
.wp-card {
    border-radius: 10px !important;
    border-color: #E2E8F0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.wp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
}

.wp-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wp-card-title-icon {
    font-size: 1.125rem !important;
    color: #64748B;
}

.wp-card-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 2px;
}

.wp-card-body {
    padding: 1rem 1.25rem;
}

.wp-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 0.375rem;
    background: #F1F5F9;
    color: #64748B;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* DataGrid inside wp-card */
.wp-card .rz-data-grid {
    border: none !important;
    border-radius: 0 !important;
}


/* =================================================================
   ACTIVITY LIST
   ================================================================= */
.wp-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #F1F5F9;
}

    .wp-activity-item:last-child {
        border-bottom: none;
    }

.wp-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F1F5F9;
    color: #64748B;
}

    .wp-activity-icon .material-symbols-outlined {
        font-size: 1rem !important;
    }

.wp-activity-icon-success {
    background: #D1FAE5;
    color: #047857;
}

.wp-activity-icon-info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.wp-activity-icon-warning {
    background: #FEF3C7;
    color: #B45309;
}

.wp-activity-icon-danger {
    background: #FEE2E2;
    color: #B91C1C;
}

.wp-activity-text {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.4;
}

.wp-activity-time {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 2px;
}


/* =================================================================
   QUICK ACTIONS
   ================================================================= */
.wp-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.wp-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

    .wp-quick-action:hover {
        background: #F8FAFC;
        border-color: #CBD5E1;
        color: #0F172A;
    }

    .wp-quick-action .material-symbols-outlined {
        font-size: 1.375rem !important;
        color: #64748B;
    }

    .wp-quick-action:hover .material-symbols-outlined {
        color: #20a29d;
    }


/* =================================================================
   KEY-VALUE DISPLAY
   ================================================================= */
.wp-kv-list {
    display: flex;
    flex-direction: column;
}

.wp-kv-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #F1F5F9;
    font-size: 0.875rem;
    align-items: center;
}

    .wp-kv-row:last-child {
        border-bottom: none;
    }

.wp-kv-label {
    color: #64748B;
    font-weight: 500;
}

.wp-kv-value {
    color: #0F172A;
    word-break: break-word;
}

.wp-kv-strong {
    font-weight: 600;
}

.wp-kv-muted {
    color: #94A3B8;
    font-style: italic;
    font-size: 0.85rem;
}

.wp-kv-link {
    color: #1D4ED8;
    text-decoration: none;
}

    .wp-kv-link:hover {
        text-decoration: underline;
    }

.wp-kv-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

    .wp-kv-chip .material-symbols-outlined {
        font-size: 0.9rem !important;
    }

.wp-kv-chip-success {
    background: #D1FAE5;
    color: #047857;
}

.wp-kv-chip-info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.wp-kv-chip-neutral {
    background: #F1F5F9;
    color: #334155;
}

.wp-kv-divider {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.375rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid #E2E8F0;
}

.wp-kv-divider-icon {
    font-size: 1rem !important;
    color: #94A3B8;
}

.wp-kv-address {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}

.wp-kv-note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    border-radius: 6px;
    font-size: 0.813rem;
    color: #78350F;
    line-height: 1.4;
}

.wp-kv-note-icon {
    font-size: 1rem !important;
    color: #B45309;
    flex-shrink: 0;
    margin-top: 1px;
}


/* =================================================================
   EDIT DIALOG
   ================================================================= */
.wp-edit-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wp-edit-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.25rem 0.5rem;
}

.wp-edit-subheader {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #E2E8F0;
}

.wp-edit-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.wp-edit-checkbox-standalone {
    padding: 0.75rem 0;
}

.wp-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E2E8F0;
    margin-top: 0.5rem;
}


/* =================================================================
   NOTES
   ================================================================= */
.wp-notes-card {
    /* Inherits wp-card */
}

.wp-notes-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wp-notes-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.wp-notes-input-actions {
    display: flex;
    justify-content: flex-end;
}

.wp-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 480px;
    overflow-y: auto;
}

    .wp-notes-list::-webkit-scrollbar {
        width: 6px;
    }

    .wp-notes-list::-webkit-scrollbar-thumb {
        background: #CBD5E1;
        border-radius: 3px;
    }

.wp-notes-item {
    padding: 0.625rem 0.75rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.875rem;
}

.wp-notes-item-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    color: #64748B;
}

.wp-notes-author {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    color: #334155;
}

    .wp-notes-author .material-symbols-outlined {
        font-size: 0.9rem !important;
        color: #94A3B8;
    }

.wp-notes-date {
    color: #94A3B8;
}

.wp-notes-delete {
    margin-left: auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #94A3B8;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

    .wp-notes-delete:hover {
        background: #FEE2E2;
        color: #B91C1C;
    }

    .wp-notes-delete .material-symbols-outlined {
        font-size: 1rem !important;
    }

.wp-notes-text {
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.wp-notes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    color: #94A3B8;
    font-size: 0.875rem;
    text-align: center;
}

    .wp-notes-empty .material-symbols-outlined {
        font-size: 2rem !important;
        opacity: 0.6;
    }


/* =================================================================
   PROJECT HEADER (sticky)
   ================================================================= */
.wp-project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.wp-sticky-header {
    position: sticky;
    top: 56px;
    z-index: 20;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wp-project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748B;
}

.wp-project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wp-meta-icon {
    font-size: 1rem !important;
    color: #94A3B8;
}

.wp-meta-success {
    color: #047857;
}

    .wp-meta-success .wp-meta-icon {
        color: #047857;
    }


/* =================================================================
   MARGIN HELPERS
   ================================================================= */
.wp-mt-0 { margin-top: 0; }
.wp-mt-2 { margin-top: 0.5rem; }
.wp-mt-4 { margin-top: 1rem; }
.wp-mb-0 { margin-bottom: 0; }
.wp-mb-2 { margin-bottom: 0.5rem; }
.wp-mb-4 { margin-bottom: 1rem; }


/* =================================================================
   MOBILE RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
    .wp-sidebar-column {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s ease-out;
        z-index: 1000;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .wp-header {
        flex-shrink: 0;
    }

    .wp-sidebar {
        flex: 1 1 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    .wp-sidebar-user {
        flex-shrink: 0;
    }

    .wp-sidebar-checkbox:checked ~ .wp-layout .wp-sidebar-column {
        transform: translateX(0);
    }

    .wp-sidebar-checkbox:checked ~ .wp-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
    }

    .wp-hamburger {
        display: inline-flex;
    }

    .wp-main {
        padding: 1rem;
    }

    .wp-topbar {
        padding: 0 1rem;
    }

    .wp-topbar-search {
        display: none;
    }

    .wp-project-header {
        flex-direction: column;
        align-items: stretch;
    }

    .wp-sticky-header {
        position: static;
    }

    .wp-kv-row {
        grid-template-columns: 1fr;
        gap: 0.125rem;
        padding: 0.5rem 0;
    }

    .wp-kv-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}


/* =================================================================
   RADZEN DIALOG — center on viewport (not on wp-main-column)
   ================================================================= */
.rz-dialog-wrapper {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1100 !important;
}

.rz-dialog-overlay {
    position: fixed !important;
    inset: 0 !important;
}
