/**
 * Mini ERP — Gulf-inspired light theme (teal, sand, subtle gold)
 * Loaded after style.css to override NiceAdmin defaults.
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Tajawal:wght@400;500;700&display=swap");

:root {
    --merp-primary: #0f766e;
    --merp-primary-hover: #0d9488;
    --merp-primary-soft: #ccfbf1;
    --merp-primary-muted: #f0fdfa;
    --merp-heading: #134e4a;
    --merp-text: #334155;
    --merp-text-muted: #64748b;
    --merp-border: rgba(15, 118, 110, 0.12);
    --merp-accent: #b8860b;
    --merp-accent-soft: rgba(184, 134, 11, 0.12);
    --merp-body-bg: #f4f7f6;
    --merp-surface: #ffffff;
    --merp-header-shadow: 0 2px 24px rgba(19, 78, 74, 0.08);
    --merp-sidebar-shadow: 0 0 28px rgba(19, 78, 74, 0.06);
    --bs-primary: #0f766e;
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: #0f766e;
    --bs-link-hover-color: #0d534d;
}

body {
    font-family: "Tajawal", "DM Sans", system-ui, -apple-system, sans-serif;
    background: var(--merp-body-bg);
    color: var(--merp-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Tajawal", "DM Sans", system-ui, sans-serif;
    color: var(--merp-heading);
}

a {
    color: var(--merp-primary);
}

a:hover {
    color: var(--merp-primary-hover);
}

#main {
    min-height: calc(100vh - 120px);
}

.pagetitle h1 {
    color: var(--merp-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.breadcrumb {
    background: transparent;
    padding: 0.35rem 0;
}

.breadcrumb a {
    color: var(--merp-primary);
    text-decoration: none;
}

.breadcrumb .active {
    color: var(--merp-text-muted);
}

/* ---------- Page breadcrumb (single baseline — RTL/LTR) ---------- */

.pagetitle nav .merp-breadcrumb-bar.breadcrumb,
.merp-breadcrumb-bar.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.5rem;
    row-gap: 0.35rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    list-style: none;
    margin-bottom: 0 !important;
    font-family: "Tajawal", "DM Sans", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
}

.pagetitle nav .merp-breadcrumb-bar .breadcrumb-item,
.merp-breadcrumb-bar .breadcrumb-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    float: none;
    flex-shrink: 0;
    max-width: 100%;
}

.pagetitle nav .merp-breadcrumb-bar[dir="rtl"],
.merp-breadcrumb-bar[dir="rtl"] {
    flex-direction: row;
}

.pagetitle nav .merp-breadcrumb-bar .breadcrumb-item + .breadcrumb-item,
.merp-breadcrumb-bar .breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
    padding-left: 0;
}

/* Pipe divider — replaces Bootstrap slash; keeps one visual line with icons + text */
.pagetitle nav .merp-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before,
.merp-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(15, 118, 110, 0.45);
    content: "|";
}

.pagetitle nav .merp-breadcrumb-bar .merp-breadcrumb-home,
.merp-breadcrumb-bar .merp-breadcrumb-home {
    color: var(--merp-primary);
}

.pagetitle nav .merp-breadcrumb-bar .merp-breadcrumb-home:hover,
.merp-breadcrumb-bar .merp-breadcrumb-home:hover {
    color: var(--merp-primary-hover);
}

.pagetitle nav .merp-breadcrumb-bar .merp-breadcrumb-icon,
.merp-breadcrumb-bar .merp-breadcrumb-icon {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}

.pagetitle nav .merp-breadcrumb-bar .merp-breadcrumb-label,
.pagetitle nav .merp-breadcrumb-bar .merp-breadcrumb-current,
.merp-breadcrumb-bar .merp-breadcrumb-label,
.merp-breadcrumb-bar .merp-breadcrumb-current {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.pagetitle nav .merp-breadcrumb-bar .breadcrumb-item.active,
.merp-breadcrumb-bar .breadcrumb-item.active {
    color: var(--merp-heading);
}

.pagetitle nav .merp-breadcrumb-bar .breadcrumb-item.active .text-heading-brand,
.merp-breadcrumb-bar .breadcrumb-item.active .text-heading-brand {
    line-height: 1;
}

.back-to-top {
    background: var(--merp-primary);
}

.back-to-top:hover {
    background: var(--merp-primary-hover);
}

/* Header */
.header {
    box-shadow: var(--merp-header-shadow);
    background-color: var(--merp-surface) !important;
    border-bottom: 1px solid var(--merp-border);
}

.header .toggle-sidebar-btn,
.header-nav .nav-icon,
.header-nav .nav-profile,
.logo span {
    color: var(--merp-heading) !important;
}

.logo span {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo img {
    box-shadow: 0 2px 12px rgba(15, 118, 110, 0.15);
}

/* Sidebar */
.sidebar {
    box-shadow: var(--merp-sidebar-shadow);
    background: linear-gradient(180deg, #ffffff 0%, #fafdfb 100%);
    border-inline-start: 1px solid var(--merp-border);
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(15, 118, 110, 0.25);
}

.sidebar-nav .nav-link {
    background: var(--merp-primary-muted);
    color: var(--merp-primary);
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    color: var(--merp-primary);
}

.sidebar-nav .nav-link.collapsed {
    background: transparent;
    color: var(--merp-heading);
}

.sidebar-nav .nav-link.collapsed i {
    color: var(--merp-text-muted);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
    background: var(--merp-primary-soft);
    color: var(--merp-primary-hover);
}

.sidebar-nav .nav-content a {
    color: var(--merp-text);
    border-radius: 8px;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
    color: var(--merp-primary);
}

.sidebar-nav .nav-content a.active i {
    background-color: var(--merp-primary);
}

.sidebar-brand-meta {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--merp-heading);
    text-align: center;
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

#main_logo img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.18);
}

/* Cards & tables */
.card {
    border: 1px solid var(--merp-border);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(19, 78, 74, 0.04);
    overflow: hidden;
}

.card-body h4,
.card-body h5 {
    color: var(--merp-heading);
}

.table {
    --bs-table-hover-bg: var(--merp-primary-muted);
}

.table thead th {
    background: var(--merp-primary-muted);
    color: var(--merp-heading);
    font-weight: 700;
    border-bottom: 2px solid var(--merp-border);
}

.btn-primary {
    --bs-btn-bg: var(--merp-primary);
    --bs-btn-border-color: var(--merp-primary);
    --bs-btn-hover-bg: var(--merp-primary-hover);
    --bs-btn-hover-border-color: var(--merp-primary-hover);
    --bs-btn-active-bg: #0d534d;
    --bs-btn-active-border-color: #0d534d;
    font-weight: 600;
    border-radius: 10px;
}

.btn-secondary,
.btn-info {
    border-radius: 10px;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--merp-primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--merp-primary-muted);
}

.text-primary {
    color: var(--merp-primary) !important;
}

/* Export / print toolbar (replaces oversized SVG image buttons) */
.asstsIcons {
    margin-bottom: 0.5rem;
}

.page-export-toolbar {
    row-gap: 0.5rem;
}

.btn-export-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--merp-border);
    background: var(--merp-surface);
    color: var(--merp-heading);
    box-shadow: 0 1px 3px rgba(19, 78, 74, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        transform 0.12s ease;
}

.btn-export-tool:hover {
    background: var(--merp-primary-muted);
    border-color: rgba(15, 118, 110, 0.35);
    color: var(--merp-primary);
    transform: translateY(-1px);
}

.btn-export-tool:focus-visible {
    outline: 2px solid var(--merp-primary);
    outline-offset: 2px;
}

.btn-export-tool i {
    font-size: 1.125rem;
    line-height: 1;
}

.btn-export-excel:hover {
    border-color: rgba(22, 163, 74, 0.45);
    color: #15803d;
    background: rgba(22, 163, 74, 0.06);
}

.btn-export-pdf:hover {
    border-color: rgba(220, 38, 38, 0.45);
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.05);
}

.btn-export-print:hover {
    border-color: rgba(15, 118, 110, 0.45);
    color: var(--merp-primary);
}

@media (max-width: 575.98px) {
    .btn-export-tool .btn-export-label {
        display: none;
    }

    .btn-export-tool {
        padding: 0.5rem 0.65rem;
    }
}

.storage-page-card .merp-card-head {
    border-color: var(--merp-border) !important;
}

.text-heading-brand {
    color: var(--merp-heading);
}

/* Footer */
.footer {
    border-top: 1px solid var(--merp-border);
    padding-top: 1rem;
}

.footer .copyright,
.footer .credits {
    color: var(--merp-text-muted);
}

/* ---------- Login page ---------- */
body.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--merp-body-bg);
}

.login-skip-fab {
    z-index: 1080;
    box-shadow: 0 4px 18px rgba(15, 118, 110, 0.35);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr 1fr;
    }
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.25rem 1.5rem;
    background: linear-gradient(145deg, #134e4a 0%, #0f766e 42%, #115e59 100%);
    color: #fff;
    overflow: hidden;
}

@media (min-width: 992px) {
    .login-brand-panel {
        padding: 3rem 2rem;
    }
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background: linear-gradient(180deg, transparent, var(--merp-accent), transparent);
    border-radius: 4px;
    opacity: 0.85;
}

.login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    text-align: center;
}

.login-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.15rem;
}

@media (min-width: 992px) {
    .login-brand-logo {
        width: 96px;
        height: 96px;
        border-radius: 22px;
        margin-bottom: 1.5rem;
    }
}

.login-brand-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
    color: #fff;
}

@media (min-width: 992px) {
    .login-brand-title {
        font-size: 1.85rem;
        margin-bottom: 0.75rem;
    }
}

.login-brand-tagline {
    font-size: 0.95rem;
    opacity: 0.92;
    line-height: 1.65;
    font-weight: 400;
}

@media (min-width: 992px) {
    .login-brand-tagline {
        font-size: 1.05rem;
    }
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.15rem 2rem;
    background: var(--merp-body-bg);
}

@media (min-width: 992px) {
    .login-form-panel {
        padding: 2rem 1.25rem;
    }
}

.login-form-main {
    width: 100%;
    max-width: 420px;
    outline: none;
}

.login-form-main:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35);
    border-radius: 20px;
}

.login-card {
    width: 100%;
    border: 1px solid var(--merp-border);
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(19, 78, 74, 0.08);
    background: var(--merp-surface);
}

.login-card .card-body {
    padding: 1.65rem 1.35rem 1.5rem;
}

@media (min-width: 576px) {
    .login-card .card-body {
        padding: 2rem 2rem 1.75rem;
    }
}

.login-card-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--merp-heading);
    margin-bottom: 0.25rem;
}

@media (min-width: 576px) {
    .login-card-heading {
        font-size: 1.35rem;
    }
}

.login-card-sub {
    font-size: 0.9rem;
    color: var(--merp-text-muted);
    margin-bottom: 1.35rem;
}

.login-page .login-input-group .input-group-text {
    background: var(--merp-primary-muted);
    border-color: #e2e8f0;
    color: var(--merp-primary);
}

.login-page .login-input-group > .input-group-text:first-child {
    border-start-start-radius: 10px;
    border-end-start-radius: 10px;
}

.login-page .login-input-group > .form-control {
    border-color: #e2e8f0;
}

.login-page .login-password-group > .form-control {
    border-inline-end: 0;
}

.login-page .form-control {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.login-page .form-control:focus {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.login-password-toggle {
    border: 1px solid #e2e8f0;
    border-start-end-radius: 10px;
    border-end-end-radius: 10px;
    background: var(--merp-surface);
    color: var(--merp-primary);
    padding-inline: 0.85rem;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.login-password-toggle:hover {
    background: var(--merp-primary-muted);
    color: var(--merp-heading);
}

.login-password-toggle:focus-visible {
    z-index: 4;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.25);
}

.login-page .btn-login-submit {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.login-page .btn-login-submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.22);
}

.login-page .btn-login-submit:disabled {
    cursor: progress;
    opacity: 0.92;
}

.login-page .btn-login-submit.is-loading {
    pointer-events: none;
}

.login-alert-stack .alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
}

.login-error-summary {
    background: rgba(220, 53, 69, 0.08);
}

.login-error-list li + li {
    margin-top: 0.25rem;
}

.login-trust-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--merp-text-muted);
    line-height: 1.5;
    text-align: start;
}

.login-trust-strip .bi {
    color: var(--merp-primary);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.login-lang-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: var(--merp-body-bg);
    border: 1px solid var(--merp-border);
    gap: 0.2rem;
}

.login-lang-pill {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--merp-text-muted);
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 0;
}

.login-lang-pill:hover {
    color: var(--merp-heading);
    background: rgba(255, 255, 255, 0.65);
}

.login-lang-pill.is-active {
    background: var(--merp-primary);
    color: #fff;
}

.login-lang-pill.is-active:hover {
    color: #fff;
    background: var(--merp-primary-hover);
}

.login-footer-note {
    font-size: 0.82rem;
    color: var(--merp-text-muted);
    text-align: center;
}

.login-footer-note a {
    color: var(--merp-primary);
    font-weight: 600;
}

/* App shell typography (replaces heavy global centering in layout) */
.app-surface .table:not(.table-keep-center) th,
.app-surface .table:not(.table-keep-center) td {
    text-align: start;
    vertical-align: middle;
    font-size: 0.9375rem;
}

.app-surface .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--merp-heading);
    text-align: start;
}

.app-surface .btn {
    font-weight: 600;
}

/* Dashboard metric cards */
.dashboard .info-card h6 {
    color: var(--merp-heading);
}

.dashboard .sales-card .card-icon {
    color: var(--merp-primary);
    background: var(--merp-primary-muted);
}

.dashboard .activity .activity-item .activite-label::before {
    background-color: var(--merp-primary-soft);
}

/* ---------- Page shell (reference: owner-dashboard/products-center) ---------- */
/* مركز Mini-ERP — دوائر أيقونات الأقسام، بطاقات متدرجة، شريط إجراءات الصفحة */

.merp-filter-icon-wrap {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.merp-panel-gradient-card,
.merp-products-filter-panel,
.merp-storage-filter-panel {
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 110, 0.14) !important;
    background: linear-gradient(165deg, rgba(248, 250, 249, 0.98) 0%, #fff 42%);
    box-shadow: 0 8px 28px rgba(15, 118, 110, 0.06);
}

.merp-page-action-bar .card-body {
    min-height: 100%;
}

.merp-collapsible-toggle-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #0f766e;
}

[aria-expanded="true"] .merp-collapsible-toggle-chevron {
    transform: rotate(180deg);
}

/* ---------- ERP document detail (show pages: production, PO, sales, returns) ---------- */

.merp-erp-detail-page .merp-detail-hero-card {
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 118, 110, 0.12);
}

.merp-detail-hero-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 48%, #2dd4bf 100%);
    position: relative;
    overflow: hidden;
}

.merp-detail-hero-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 45%);
    pointer-events: none;
}

.merp-detail-hero-gradient > .position-relative {
    position: relative;
    z-index: 1;
}

.merp-detail-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.merp-detail-ref-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.merp-detail-section.card {
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    overflow: hidden;
}

.merp-detail-section .merp-detail-section-head {
    padding-bottom: 0.35rem !important;
}

.merp-detail-section .merp-detail-section-head h3 {
    letter-spacing: 0.02em;
}

.merp-detail-kv-wrap {
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    background: linear-gradient(180deg, #fafdfb 0%, #fff 100%);
    overflow: hidden;
}

.merp-detail-kv-row:last-child {
    border-bottom: none !important;
}

.merp-detail-table {
    font-size: 0.9375rem;
}

.merp-detail-table thead th {
    background-color: rgba(15, 118, 110, 0.09) !important;
    font-weight: 600;
    color: var(--merp-heading);
    border-bottom: 1px solid rgba(15, 118, 110, 0.14);
    white-space: nowrap;
}

.merp-detail-table tbody tr:hover {
    background-color: rgba(15, 118, 110, 0.04);
}

.merp-detail-empty {
    border-radius: 14px;
    border: 2px dashed rgba(15, 118, 110, 0.22) !important;
    background: var(--merp-primary-muted) !important;
}

.merp-detail-action-panel {
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: linear-gradient(165deg, rgba(240, 253, 250, 0.95) 0%, #fff 55%);
    box-shadow: 0 10px 32px rgba(15, 118, 110, 0.08);
}

.merp-detail-action-panel .btn-success {
    box-shadow: 0 6px 18px rgba(25, 135, 84, 0.28);
}

/* LTR OVERRIDES FOR SIDEBAR AND MAIN LAYOUT */
html[dir="ltr"] .sidebar {
    right: auto !important;
    left: 0 !important;
}

@media (max-width: 1199px) {
    html[dir="ltr"] .sidebar {
        left: -300px !important;
        right: auto !important;
    }
    html[dir="ltr"] body.toggle-sidebar .sidebar {
        left: 0 !important;
    }
}

@media (min-width: 1200px) {
    html[dir="ltr"] #main,
    html[dir="ltr"] #footer {
        margin-right: 0 !important;
        margin-left: 300px !important;
    }
    html[dir="ltr"] body.toggle-sidebar #main,
    html[dir="ltr"] body.toggle-sidebar #footer {
        margin-left: 0 !important;
    }
    html[dir="ltr"] body.toggle-sidebar .sidebar {
        left: -300px !important;
    }
}

html[dir="ltr"] .header-nav > ul {
    margin-left: 0 !important;
    margin-right: 150px !important;
}

html[dir="ltr"] .header {
    padding-left: 0 !important;
    padding-right: 20px !important;
}
