/* ==================================================
   DASHBOARD APPLICATION SHELL
   ================================================== */
.pm-dashboard-shell{background:#f7f8fb;min-height:calc(100vh - var(--pm-header-height));padding:24px 0 56px}
.pm-dashboard-shell__container{max-width:var(--pm-container-width)}
.pm-dashboard-content{min-width:0}

/* Existing Pak Manufacture Core dashboard presentation compatibility. */
.pm-dashboard-content .pm-dashboard,
.pm-dashboard-content .pm-manufacturer-dashboard{background:transparent}
.pm-dashboard-content table{width:100%;border-collapse:collapse;background:var(--pm-surface);border:1px solid var(--pm-border);border-radius:var(--pm-radius-md)}
.pm-dashboard-content th,.pm-dashboard-content td{padding:12px 14px;border-bottom:1px solid var(--pm-border);text-align:left;vertical-align:top}
.pm-dashboard-content th{font-size:13px;font-weight:700;background:#f9fafb}
.pm-dashboard-content tr:last-child td{border-bottom:0}
.pm-dashboard-content .button,
.pm-dashboard-content button,
.pm-dashboard-content input[type="submit"]{border-radius:var(--pm-radius-pill);font-family:var(--pm-font-family);font-weight:600}

/* Status / feedback blocks can inherit these without changing plugin logic. */
.pm-dashboard-content .pm-admin-feedback,
.pm-dashboard-content .pm-feedback,
.pm-dashboard-content .pm-notice{padding:12px 14px;border:1px solid var(--pm-border);border-left:4px solid var(--pm-primary);border-radius:var(--pm-radius-sm);background:var(--pm-surface)}

/* ==================================================
   CORE DASHBOARD WIDTH + THEME OWNERSHIP
   ================================================== */
/* Core currently ships a 1200px inline maximum. The theme shell owns page
   width, so the application is allowed to fill the configured 1366px container. */
.pm-dashboard-shell .pm-manufacturer-dashboard{
    width:100%;
    max-width:none;
    margin:0;
    padding:24px 0;
}
.pm-dashboard-shell .pm-dashboard-layout{width:100%}
.pm-dashboard-shell .pm-dashboard-content{max-width:none}

/* Modern pill actions and consistent spacing for Core plugin controls. */
.pm-dashboard-content .button,.pm-dashboard-content a.button,.pm-dashboard-content button,.pm-dashboard-content input[type="submit"],.pm-dashboard-content input[type="button"]{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 18px;border-radius:var(--pm-radius-pill)!important;font-family:var(--pm-font-family);font-weight:600;line-height:1.2}
.pm-dashboard-content .pm-actions,.pm-dashboard-content .actions,.pm-dashboard-content .pm-product-actions,.pm-dashboard-content .pm-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.pm-dashboard-content td .button+.button,.pm-dashboard-content td button+button,.pm-dashboard-content td a+a.button{margin-left:8px}
.pm-dashboard-content form>button+.button,.pm-dashboard-content form>.button+button,.pm-dashboard-content form>input[type="submit"]+a.button{margin-left:8px}


/* ==================================================
   MANUFACTURER DASHBOARD MODULE TOPBAR — v0.5.33
   Theme owns presentation; Core remains navigation source of truth.
   ================================================== */
.pm-dashboard-shell .pm-dashboard-layout{
    display:block;
    width:100%;
}
.pm-dashboard-shell .pm-dashboard-topbar{
    width:100%;
    margin:0 0 26px;
}
.pm-dashboard-shell .pm-dashboard-topbar-toggle{
    display:none;
}
.pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-navigation{
    display:flex;
    align-items:stretch;
    gap:6px;
    width:100%;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    padding:8px;
    background:var(--pm-surface);
    border:1px solid var(--pm-border);
    border-radius:var(--pm-radius-lg);
    box-sizing:border-box;
}
.pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex:0 0 auto;
    min-height:44px;
    margin:0;
    padding:10px 15px;
    border:1px solid transparent;
    border-radius:10px;
    white-space:nowrap;
    line-height:1.25;

    font-size:14px;
    font-weight:600;}
.pm-dashboard-shell .pm-dashboard-topbar a.pm-dashboard-nav-item:hover{
    background:#f4f6fb;
    border-color:var(--pm-border);
}
.pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item-active{
    background:#eef2ff;
    border-color:#d9def7;
    color:var(--pm-primary);
    box-shadow:inset 0 -2px 0 var(--pm-primary);
}
.pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item[aria-disabled="true"]{
    opacity:.55;
    background:#fafafa;
}
.pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item small{
    font-size:10px;
}
.pm-dashboard-shell .pm-dashboard-content{
    width:100%;
    max-width:none;
}
.pm-dashboard-shell .pm-dashboard-topbar a.pm-dashboard-nav-item:focus-visible,
.pm-dashboard-shell .pm-dashboard-topbar-toggle:focus-visible{
    outline:3px solid rgba(12,22,112,.22);
    outline-offset:2px;
}
@media (max-width:1000px){
    .pm-dashboard-shell .pm-dashboard-topbar{
        margin-bottom:22px;
    }
    .pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-navigation{
        scroll-snap-type:x proximity;
    }
    .pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item{
        scroll-snap-align:start;
    }
}
@media (max-width:760px){
    .pm-dashboard-shell .pm-dashboard-topbar{
        position:relative;
        margin-bottom:20px;
    }
    .pm-dashboard-shell .pm-dashboard-topbar-toggle{
        display:flex;
        width:100%;
        min-height:48px;
        align-items:center;
        justify-content:space-between;
        gap:16px;
        padding:11px 15px;
        border:1px solid var(--pm-border);
        border-radius:12px;
        background:var(--pm-surface);
        color:var(--pm-text);
        font:600 14px/1.3 var(--pm-font-family);
        cursor:pointer;
    }
    .pm-dashboard-shell .pm-dashboard-topbar-toggle[aria-expanded="true"] .pm-dashboard-topbar-toggle-icon{
        transform:rotate(180deg);
    }
    .pm-dashboard-shell .pm-dashboard-topbar-toggle-icon{
        transition:transform .18s ease;
    }
    .pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-navigation{
        display:none;
        margin-top:8px;
        padding:8px;
        overflow:visible;
        flex-direction:column;
        gap:4px;
        border-radius:12px;
    }
    .pm-dashboard-shell .pm-dashboard-topbar.is-open .pm-dashboard-navigation{
        display:flex;
    }
    .pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item{
        width:100%;
        justify-content:space-between;
        min-height:44px;
        padding:10px 12px;
        white-space:normal;
        text-align:left;
    }
    .pm-dashboard-shell .pm-dashboard-topbar .pm-dashboard-nav-item-active{
        box-shadow:inset 3px 0 0 var(--pm-primary);
    }
}


/* Manufacturer Products module typography — compact 13px density */
.pm-dashboard-shell .pm-dashboard-product-filters,
.pm-dashboard-shell .pm-dashboard-product-filter,
.pm-dashboard-shell .pm-dashboard-products-table,
.pm-dashboard-shell .pm-dashboard-products-table th,
.pm-dashboard-shell .pm-dashboard-products-table td,
.pm-dashboard-shell .pm-dashboard-products-table td > strong,
.pm-dashboard-shell .pm-dashboard-product-status,
.pm-dashboard-shell .pm-dashboard-product-actions-inline,
.pm-dashboard-shell .pm-dashboard-product-actions-inline a,
.pm-dashboard-shell .pm-dashboard-product-admin-feedback,
.pm-dashboard-shell .pm-dashboard-product-admin-feedback strong,
.pm-dashboard-shell .pm-dashboard-product-admin-feedback span{
    font-size:13px;
}
