.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    background: var(--color-bg);
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #171715 0%, #22211d 100%);
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-brand {
    padding: 28px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-brand .brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.dashboard-brand .brand-title {
    font-family: "Playfair Display", serif;
    font-size: 1.95rem;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.dashboard-brand .brand-subtitle {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--color-gold);
}

.dashboard-nav {
    padding: 22px 12px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: linear-gradient(135deg, rgba(196, 164, 107, 0.16), rgba(102, 114, 77, 0.28));
    color: #ffffff;
}

.dashboard-signout {
    padding: 18px 18px 28px;
}

.dashboard-main {
    min-width: 0;
    overflow-x: hidden;
}

.dashboard-topbar {
    background: rgba(255, 253, 249, 0.9);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-topbar h1 {
    font-family: "Playfair Display", serif;
    color: var(--color-dark);
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.dashboard-content {
    padding: 34px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-section-subtitle {
    color: var(--color-text-light);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card,
.panel-card,
.data-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
}

.kpi-card {
    padding: 26px;
    min-height: 120px;
}

.kpi-label {
    color: var(--color-text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
}

.kpi-value {
    color: var(--color-dark);
    font-size: 2rem;
    font-family: "Playfair Display", serif;
    line-height: 1.1;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.panel-card {
    padding: 24px;
}

.panel-card h3 {
    font-family: "Playfair Display", serif;
    color: var(--color-dark);
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-confirmed {
    background: rgba(102, 114, 77, 0.14);
    color: var(--color-olive-dark);
}

.status-pending {
    background: rgba(196, 164, 107, 0.18);
    color: #8d6a2d;
}

.status-planning {
    background: rgba(65, 79, 111, 0.12);
    color: #495d86;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.dashboard-table th {
    color: var(--color-text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.activity-list li,
.task-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.activity-list li:last-child,
.task-list li:last-child {
    border-bottom: 0;
}

.muted {
    color: var(--color-text-light);
    font-size: 14px;
}

.event-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center;
}

.event-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
}

.event-card h4 {
    font-family: "Playfair Display", serif;
    color: var(--color-dark);
    font-size: 1.9rem;
    margin: 10px 0;
}

.event-meta {
    display: grid;
    gap: 8px;
    color: var(--color-text-light);
}

.inline-actions {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.inline-actions a {
    font-weight: 600;
    color: var(--color-olive);
}

.inline-actions a:hover {
    color: var(--color-gold-dark);
}

.search-box {
    width: 320px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 12px 18px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--color-gold);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dashboard polish / overflow protection */
.panel-card {
    max-width: 100%;
    overflow-x: auto;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    min-width: 760px;
}

.dashboard-table th,
.dashboard-table td {
    vertical-align: top;
    white-space: normal;
}

.dashboard-table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 235px minmax(0, 1fr);
    }

    .dashboard-brand {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dashboard-brand .brand-title {
        font-size: 1.65rem;
    }

    .dashboard-brand .brand-subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.22em;
    }

    .dashboard-nav a {
        font-size: 14px;
        padding: 12px 14px;
    }
}/* =========================
   MOBILE DASHBOARD MENU
========================= */

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

.dashboard-sidebar-close{
    display:none;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:16px;
}

.dashboard-mobile-toggle{
    display:none;
    border:none;
    background:#111827;
    color:#fff;
    width:44px;
    height:44px;
    border-radius:10px;
    cursor:pointer;
    font-size:20px;
}

@media (max-width:860px){

    .dashboard-mobile-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .dashboard-layout{
        display:block !important;
    }

    .dashboard-sidebar{
        position:fixed !important;
        top:0;
        left:-280px;
        width:260px;
        height:100vh;
        z-index:9999;
        overflow-y:auto;
        transition:left .25s ease;
    }

    .dashboard-sidebar.open{
        left:0;
    }

    .dashboard-sidebar-close{
        display:flex;
        align-items:center;
        justify-content:center;
        width:36px;
        height:36px;
        border:none;
        background:none;
        font-size:28px;
        cursor:pointer;
    }

    .dashboard-brand{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .dashboard-sidebar-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        z-index:9998;
        display:none;
    }

    .dashboard-sidebar-overlay.open{
        display:block;
    }

    .dashboard-main{
        width:100%;
        margin:0;
    }

    .dashboard-grid-2{
        grid-template-columns:1fr !important;
    }

    .kpi-grid{
        grid-template-columns:1fr !important;
    }

    .dashboard-table{
        min-width:700px;
    }

    .panel-card{
        overflow-x:auto;
    }

    body.dashboard-menu-open{
        overflow:hidden;
    }
}body:has(.dashboard-layout) .site-header .mobile-nav-toggle {
    display: none !important;
}@media (max-width: 860px) {
    .dashboard-topbar {
        padding: 18px 20px;
    }

    .topbar-left {
        align-items: flex-start;
    }

    .dashboard-content {
        padding: 22px 14px;
    }

    .panel-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .panel-card h3 {
        font-size: 1.45rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .btn {
        min-height: 42px;
        padding: 0 16px;
        font-size: 13px;
    }
}/* =========================
   MOBILE DASHBOARD POLISH
========================= */

@media (max-width: 860px) {

    .dashboard-sidebar {
        width: 230px;
        left: -240px;
        padding-top: 0;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .dashboard-brand {
        padding: 22px 18px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .dashboard-brand .brand {
        display: block;
        min-width: 0;
    }

    .dashboard-brand .brand-title {
        font-size: 1.45rem;
        letter-spacing: 0.04em;
    }

    .dashboard-brand .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.24em;
    }

    .dashboard-sidebar-close {
        color: #fff;
        opacity: 0.85;
    }

    .dashboard-nav {
        padding: 16px 10px;
    }

    .dashboard-nav a {
        padding: 11px 14px;
        margin-bottom: 6px;
        font-size: 13px;
        border-radius: 10px;
    }

    .dashboard-mobile-toggle {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 18px;
        background: var(--color-dark);
        color: #fff;
        flex: 0 0 auto;
    }

    .dashboard-topbar {
        padding: 16px 18px;
        gap: 12px;
    }

    .topbar-left {
        gap: 10px;
        align-items: flex-start;
    }

    .topbar-left strong {
        display: block;
        line-height: 1.2;
    }

    .topbar-left span {
        display: block;
        font-size: 13px;
        line-height: 1.4;
    }

    .topbar-actions {
        gap: 10px;
        font-size: 13px;
    }

    .topbar-actions .btn {
        min-height: 38px;
        padding: 0 14px;
    }
}/* =========================
   MOBILE TABLE FIX
========================= */

@media (max-width: 860px) {

    .panel-card {
        width: 100%;
        overflow-x: auto;
    }

    .dashboard-table {
        width: max-content;
        min-width: 760px;
        table-layout: auto;
    }

    .dashboard-table th,
    .dashboard-table td {
        white-space: nowrap;
        font-size: 12px;
        padding: 10px 8px;
    }

    .dashboard-table .btn,
    .dashboard-table button {
        min-width: 54px;
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
}.contract-document {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 42px;
    max-width: 900px;
    margin: 20px auto 0;
    line-height: 1.85;
    font-size: 15px;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
    .contract-document {
        padding: 24px 18px;
        font-size: 14px;
        line-height: 1.75;
        max-width: 100%;
    }
}@media (max-width: 860px) {
    .panel-card > div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}.dashboard-cards-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:24px;
}.decoration-main-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: zoom-in;
}

.decoration-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.decoration-thumb {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.decoration-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.decoration-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.decoration-lightbox.open {
    display: flex;
}

.decoration-lightbox img {
    max-width: 96vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 14px;
}

.decoration-lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

@media (max-width: 860px) {
    .decoration-main-image {
        height: 220px;
    }

    .decoration-thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}