/*
 * Dokan Vendor Dashboard – Complete Theme
 * Brand color: #104377
 * Matches: clean white content area + dark navy sidebar
 * Place this file at: wp-content/themes/merto-child/dokan-fix.css
 */

/* ═══════════════════════════════════════════
   1. GLOBAL RESET FOR DASHBOARD PAGE
═══════════════════════════════════════════ */
body.dokan-dashboard-fullwidth-template {
    background: #f4f6f9 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body.dokan-dashboard-fullwidth-template #page,
body.dokan-dashboard-fullwidth-template .site,
body.dokan-dashboard-fullwidth-template .site-content,
body.dokan-dashboard-fullwidth-template #content,
body.dokan-dashboard-fullwidth-template #primary,
body.dokan-dashboard-fullwidth-template .entry-content,
body.dokan-dashboard-fullwidth-template .site-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    background: transparent !important;
}

/* Hide Merto theme header/footer on dashboard */
body.dokan-dashboard-fullwidth-template .ts-header,
body.dokan-dashboard-fullwidth-template header.site-header,
body.dokan-dashboard-fullwidth-template footer.site-footer,
body.dokan-dashboard-fullwidth-template .site-footer,
body.dokan-dashboard-fullwidth-template #colophon {
    display: none !important;
}

/* ═══════════════════════════════════════════
   2. CUSTOM TOP HEADER BAR
═══════════════════════════════════════════ */
#dk-topbar {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 9999;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#dk-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#dk-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    display: none;
    transition: background 0.15s;
}
#dk-hamburger:hover { background: #f3f4f6; }

#dk-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

#dk-visit-store {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    padding: 7px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}
#dk-visit-store:hover {
    border-color: #104377;
    color: #104377;
    background: #f0f6ff;
}
#dk-visit-store svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Avatar dropdown */
#dk-avatar-wrap { position: relative; }

#dk-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    display: block;
    transition: border-color 0.2s;
}
#dk-avatar-btn:hover { border-color: #104377; }

#dk-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    overflow: hidden;
    z-index: 10000;
}
#dk-dropdown.open { display: block; }

.dk-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.dk-dropdown-header strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}
.dk-dropdown-header span {
    font-size: 12px;
    color: #6b7280;
}

#dk-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}
#dk-dropdown a:hover { background: #f9fafb; }
#dk-dropdown a svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}
#dk-dropdown a.dk-logout {
    color: #ef4444;
    border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════
   3. SIDEBAR STYLING
═══════════════════════════════════════════ */
.dokan-dash-sidebar {
    width: 240px !important;
    min-width: 240px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    background: #104377 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 2px 0 12px rgba(16, 67, 119, 0.15) !important;
}

/* Sidebar scrollbar */
.dokan-dash-sidebar::-webkit-scrollbar { width: 4px; }
.dokan-dash-sidebar::-webkit-scrollbar-track { background: transparent; }
.dokan-dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* Sidebar logo/brand area at top */
.dokan-dash-sidebar .logo,
.dokan-dash-sidebar .site-logo {
    padding: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Nav menu items */
.dokan-dash-sidebar ul.dokan-dashboard-menu {
    flex: 1 !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li {
    margin: 2px 10px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    color: rgba(255,255,255,0.72) !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.18s !important;
    letter-spacing: 0.01em !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li.active > a,
.dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-condition > a {
    background: rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Menu icons */
.dokan-dash-sidebar ul.dokan-dashboard-menu li a i,
.dokan-dash-sidebar ul.dokan-dashboard-menu li a span.icon {
    width: 18px !important;
    text-align: center !important;
    opacity: 0.85 !important;
    font-size: 15px !important;
}

/* Sub-menu */
.dokan-dash-sidebar ul.dokan-dashboard-menu li ul {
    padding: 4px 0 4px 28px !important;
    list-style: none !important;
    margin: 0 !important;
}
.dokan-dash-sidebar ul.dokan-dashboard-menu li ul li a {
    font-size: 12.5px !important;
    padding: 7px 12px !important;
    color: rgba(255,255,255,0.6) !important;
}
.dokan-dash-sidebar ul.dokan-dashboard-menu li ul li a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
}

/* Bottom icon row (store link, profile, logout) */
.dokan-dash-sidebar .dokan-dashboard-menu-bottom,
.dokan-dash-sidebar > ul:last-child {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 12px 10px !important;
    display: flex !important;
    gap: 4px !important;
}
.dokan-dash-sidebar .dokan-dashboard-menu-bottom li a,
.dokan-dash-sidebar > ul:last-child li a {
    padding: 8px 10px !important;
    border-radius: 8px !important;
}

/* ── Your Store brand at sidebar bottom ── */
#dk-store-brand {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
}
#dk-store-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}
#dk-store-brand .dk-brand-info {
    overflow: hidden;
}
#dk-store-brand .dk-brand-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
#dk-store-brand .dk-brand-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

/* ═══════════════════════════════════════════
   4. MAIN CONTENT AREA
═══════════════════════════════════════════ */
.dokan-dashboard-wrap,
#dokan-dashboard-fullwidth-wrapper {
    padding-top: 60px !important; /* offset for fixed topbar */
}

.dokan-dashboard-content,
.dokan-dashboard-wrap .dokan-w9 {
    margin-left: 240px !important;
    padding: 32px 36px !important;
    background: #f4f6f9 !important;
}

/* Content cards / panels */
.dokan-dashboard-content .dokan-panel,
.dokan-dashboard-content .dokan-settings-content,
.dokan-dashboard-content > .dokan-w9 > div {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    border: 1px solid #edf0f4 !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
}

/* Page headings */
.dokan-dashboard-content h1,
.dokan-dashboard-content h2.dokan-dashboard-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.3px !important;
}

/* Balance chip */
.dokan-dashboard-content .seller-balance,
.dokan-dashboard-content .dokan-balance {
    color: #104377 !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════
   5. OVERVIEW / REPORTS TABLE
═══════════════════════════════════════════ */
.dokan-dashboard-content table,
.dokan-report-summary table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.dokan-dashboard-content table th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e8ecf0 !important;
}

.dokan-dashboard-content table td {
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    color: #374151 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.dokan-dashboard-content table tr:hover td {
    background: #fafbfc !important;
}

/* ═══════════════════════════════════════════
   6. BUTTONS
═══════════════════════════════════════════ */
.dokan-dashboard-content .dokan-btn,
.dokan-dashboard-content .button,
.dokan-dashboard-content input[type="submit"] {
    background: #104377 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    letter-spacing: 0.02em !important;
}
.dokan-dashboard-content .dokan-btn:hover,
.dokan-dashboard-content .button:hover,
.dokan-dashboard-content input[type="submit"]:hover {
    background: #0d3560 !important;
    color: #ffffff !important;
}

.dokan-dashboard-content .dokan-btn-default,
.dokan-dashboard-content .button-secondary {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #e2e8f0 !important;
}
.dokan-dashboard-content .dokan-btn-default:hover {
    background: #f9fafb !important;
    border-color: #104377 !important;
    color: #104377 !important;
}

/* ═══════════════════════════════════════════
   7. FORM INPUTS
═══════════════════════════════════════════ */
.dokan-dashboard-content input[type="text"],
.dokan-dashboard-content input[type="email"],
.dokan-dashboard-content input[type="number"],
.dokan-dashboard-content input[type="url"],
.dokan-dashboard-content textarea,
.dokan-dashboard-content select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    font-size: 13.5px !important;
    color: #374151 !important;
    background: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
}
.dokan-dashboard-content input:focus,
.dokan-dashboard-content textarea:focus,
.dokan-dashboard-content select:focus {
    border-color: #104377 !important;
    box-shadow: 0 0 0 3px rgba(16,67,119,0.1) !important;
    outline: none !important;
}

/* ═══════════════════════════════════════════
   8. NOTICE / ALERT BARS
═══════════════════════════════════════════ */
.dokan-dashboard-content .dokan-alert,
.dokan-dashboard-content .woocommerce-message,
.dokan-dashboard-content .woocommerce-error {
    border-radius: 8px !important;
    border-left: 4px solid #104377 !important;
    background: #f0f6ff !important;
    color: #1e3a5f !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    margin-bottom: 20px !important;
}

/* Profile progress bar */
.dokan-dashboard-content .dokan-progress-bar,
.dokan-dashboard-content .profile-progress-bar {
    background: #e8ecf0 !important;
    border-radius: 99px !important;
    overflow: hidden !important;
}
.dokan-dashboard-content .dokan-progress-bar .progress,
.dokan-dashboard-content .profile-progress-bar .progress {
    background: #104377 !important;
    border-radius: 99px !important;
}

/* ═══════════════════════════════════════════
   9. MOBILE RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    #dk-hamburger { display: block !important; }
    #dk-topbar { left: 0 !important; }

    .dokan-dash-sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1) !important;
    }
    .dokan-dash-sidebar.open {
        transform: translateX(0) !important;
    }

    .dokan-dashboard-content,
    .dokan-dashboard-wrap .dokan-w9 {
        margin-left: 0 !important;
        padding: 20px 16px !important;
    }
}

/* ── Remove separator lines between menu items ── */
.dokan-dash-sidebar ul.dokan-dashboard-menu li {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

/* ── Remove the 3 bottom icon buttons ── */
.dokan-dash-sidebar .dokan-dashboard-menu-bottom,
.dokan-dash-sidebar ul li.dokan-go-to-store,
.dokan-dash-sidebar ul li.dokan-account,
.dokan-dash-sidebar ul li.dokan-logout,
.dokan-dash-sidebar > ul:last-of-type {
    display: none !important;
}

/* ── Settings submenu — clean style like Image 1 ── */
.dokan-dash-sidebar ul.dokan-dashboard-menu li ul {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 8px 44px !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li ul li {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li ul li a {
    padding: 8px 16px !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.65) !important;
    border-radius: 6px !important;
    background: transparent !important;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li ul li.active a,
.dokan-dash-sidebar ul.dokan-dashboard-menu li ul li a:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

/* ── Add logo/brand at top of sidebar like Image 1 ── */
.dokan-dash-sidebar::before {
    content: '';
    display: block;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}