/* MMCT 2.2.4 - forced local IRANSansX font and payment fix */
@font-face{font-family:'IRANSansX';src:url('../fonts/iransans/IRANSansX-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap;}
:root{--mmct-font:'IRANSansX',Tahoma,Arial,sans-serif;}
html.mmct-html-ready,html.mmct-html-ready *,html.mmct-html-ready input,html.mmct-html-ready textarea,html.mmct-html-ready select,html.mmct-html-ready button,html.mmct-html-ready table,html.mmct-html-ready .btn,html.mmct-html-ready .dropdown-menu{font-family:'IRANSansX',Tahoma,Arial,sans-serif!important;}
/* MMCT 2.2.2: external Google font import removed; local/system fonts only. */
/* MM Client Theme 2.0.0 - pro bar dashboard and auth/mobile fixes */
:root{
  --mmct-font:'IRANSansX',Tahoma,Arial,sans-serif;
  --mmct-sidebar-w:284px;
  --mmct-gap-r:18px;
  --mmct-gap-main:18px;
  --mmct-right:320px;
  --mmct-left:26px;
  --mmct-top:126px;
  --mmct-primary:#3158ff;
  --mmct-primary-2:#7c3aed;
  --mmct-dark:#101828;
  --mmct-muted:#667085;
  --mmct-border:#e6edf5;
  --mmct-bg:#f4f7fb;
  --mmct-card:#fff;
  --mmct-shadow:0 18px 50px rgba(15,23,42,.08);
}
html.mmct-html-ready,html.mmct-html-ready body,html.mmct-html-ready input,html.mmct-html-ready textarea,html.mmct-html-ready select,html.mmct-html-ready button,html.mmct-html-ready table,html.mmct-html-ready .btn,html.mmct-html-ready .dropdown-menu{font-family:var(--mmct-font)!important}
html.mmct-html-ready body.customers{direction:rtl!important;text-align:right!important;background:radial-gradient(circle at 12% 0%,rgba(49,88,255,.10),transparent 34%),var(--mmct-bg)!important;min-height:100vh!important;margin:0!important;padding:0!important;color:var(--mmct-dark)!important;overflow-x:hidden!important}
html.mmct-html-ready body.customers:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:linear-gradient(rgba(49,88,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(49,88,255,.045) 1px,transparent 1px);background-size:34px 34px;opacity:.72}
html.mmct-html-ready a{text-decoration:none!important}

/* legacy nav */
html.mmct-html-ready:not(.mmct-auth-page) body>nav.navbar,
html.mmct-html-ready:not(.mmct-auth-page) .navbar.header,
html.mmct-html-ready:not(.mmct-auth-page) .customer-top-submenu,
html.mmct-html-ready:not(.mmct-auth-page) ul.submenu.customer-top-submenu,
html.mmct-html-ready:not(.mmct-auth-page) .mmct-hide-legacy,
html.mmct-html-ready .mmct-dashboard-legacy-hidden,
html.mmct-html-ready .mmct-chart-hidden,
html.mmct-html-ready .mmct-greeting-hidden{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important}

/* sidebar */
html.mmct-html-ready .mmct-sidebar{position:fixed!important;top:18px!important;right:18px!important;bottom:18px!important;left:auto!important;width:var(--mmct-sidebar-w)!important;z-index:9900!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(22px);border:1px solid rgba(226,232,240,.92)!important;border-radius:30px!important;box-shadow:var(--mmct-shadow)!important;padding:18px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html.mmct-html-ready .mmct-sidebar-brand a{display:flex!important;align-items:center!important;gap:12px!important;color:var(--mmct-dark)!important;padding:8px 6px 18px!important;border-bottom:1px solid var(--mmct-border)!important}
html.mmct-html-ready .mmct-brand-icon{width:48px;height:48px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:21px;background:linear-gradient(135deg,var(--mmct-primary),var(--mmct-primary-2));box-shadow:0 16px 30px rgba(49,88,255,.24)}
html.mmct-html-ready .mmct-sidebar-brand strong{display:block;font-size:15px;font-weight:900}html.mmct-html-ready .mmct-sidebar-brand small{display:block;margin-top:4px;color:var(--mmct-muted);font-size:12px;font-weight:700}
html.mmct-html-ready .mmct-sidebar-nav{flex:1;padding:18px 0;overflow-y:auto;overflow-x:hidden}html.mmct-html-ready .mmct-sidebar-nav::-webkit-scrollbar{width:6px}html.mmct-html-ready .mmct-sidebar-nav::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
html.mmct-html-ready .mmct-nav-link{height:48px;display:flex!important;align-items:center!important;gap:12px!important;padding:0 12px!important;margin-bottom:8px!important;border-radius:16px!important;color:#475467!important;font-weight:800!important;transition:.18s ease!important}
html.mmct-html-ready .mmct-nav-link i{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#f1f5f9;color:#64748b;font-size:15px}.mmct-nav-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.mmct-html-ready .mmct-nav-link:hover,html.mmct-html-ready .mmct-nav-link.mmct-active{background:#eef3ff!important;color:var(--mmct-primary)!important;transform:translateX(-3px)}html.mmct-html-ready .mmct-nav-link:hover i,html.mmct-html-ready .mmct-nav-link.mmct-active i{color:#fff!important;background:linear-gradient(135deg,var(--mmct-primary),#7047ff)!important}
html.mmct-html-ready .mmct-sidebar-bottom{border-top:1px solid var(--mmct-border);padding-top:14px;max-height:170px;overflow-y:auto}html.mmct-html-ready .mmct-bottom-link{display:flex!important;align-items:center!important;gap:10px!important;min-height:42px!important;color:#475467!important;padding:8px 10px!important;border-radius:14px!important;font-weight:800!important}.mmct-bottom-link:hover{background:#f8fafc!important;color:var(--mmct-primary)!important}.mmct-logout,.mmct-logout i{color:#dc2626!important}

/* header */
html.mmct-html-ready .mmct-header{position:fixed!important;top:18px!important;right:var(--mmct-right)!important;left:var(--mmct-left)!important;height:78px!important;z-index:9890!important;background:rgba(255,255,255,.90)!important;backdrop-filter:blur(22px);border:1px solid rgba(226,232,240,.92)!important;border-radius:26px!important;box-shadow:0 14px 38px rgba(15,23,42,.07)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:0 18px!important}
html.mmct-html-ready .mmct-header-title span{display:block;color:var(--mmct-muted);font-size:12px;font-weight:800}.mmct-header-title strong{display:block;margin-top:5px;color:var(--mmct-dark);font-size:18px;font-weight:900}.mmct-header-actions{display:flex;align-items:center;gap:10px}.mmct-header-action,.mmct-mobile-toggle{width:46px;height:46px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid var(--mmct-border);color:#344054!important;font-size:16px;transition:.18s ease}.mmct-header-action:hover,.mmct-mobile-toggle:hover{background:var(--mmct-primary);border-color:var(--mmct-primary);color:#fff!important}.mmct-header-exit{width:auto;gap:8px;padding:0 14px;font-weight:900}.mmct-mobile-toggle{display:none;position:fixed;top:20px;right:18px;z-index:10020;box-shadow:var(--mmct-shadow)}.mmct-mobile-overlay{display:none}

/* exact inner layout: #wrapper is body child in real Perfex clients pages */
html.mmct-html-ready.mmct-inner-page body>#wrapper{position:absolute!important;top:var(--mmct-top)!important;right:var(--mmct-right)!important;left:var(--mmct-left)!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0 0 42px 0!important;box-sizing:border-box!important;overflow:visible!important;transform:none!important;float:none!important;clear:both!important}
html.mmct-html-ready.mmct-inner-page body>#wrapper>#content,html.mmct-html-ready.mmct-inner-page #wrapper #content{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;overflow:visible!important}
html.mmct-html-ready.mmct-inner-page #content>.container,html.mmct-html-ready.mmct-inner-page #content>.container-fluid{width:100%!important;max-width:none!important;min-width:0!important;margin:0 0 22px 0!important;padding:0!important;box-sizing:border-box!important;overflow:visible!important}
html.mmct-html-ready.mmct-inner-page #content>.container>.row,html.mmct-html-ready.mmct-inner-page #content>.container-fluid>.row,html.mmct-html-ready.mmct-inner-page #content>.row{width:100%!important;max-width:none!important;min-width:0!important;margin-right:0!important;margin-left:0!important;padding-right:0!important;padding-left:0!important;box-sizing:border-box!important;overflow:visible!important}
html.mmct-html-ready.mmct-inner-page #content>.container>.row>.mmct-top-full,html.mmct-html-ready.mmct-inner-page #content>.container-fluid>.row>.mmct-top-full,html.mmct-html-ready.mmct-inner-page #content>.row>.mmct-top-full{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;margin-right:0!important;margin-left:0!important;padding-right:0!important;padding-left:0!important;box-sizing:border-box!important}
html.mmct-html-ready.mmct-inner-page #content .section-heading,html.mmct-html-ready.mmct-inner-page #content .panel_s,html.mmct-html-ready.mmct-inner-page #content .panel,html.mmct-html-ready.mmct-inner-page #content .card,html.mmct-html-ready.mmct-inner-page #content .well,html.mmct-html-ready.mmct-inner-page #content .table-responsive,html.mmct-html-ready.mmct-inner-page #content .dataTables_wrapper,html.mmct-html-ready.mmct-inner-page #content table.table,html.mmct-html-ready.mmct-inner-page #content table.dataTable,html.mmct-html-ready.mmct-inner-page #content form{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html.mmct-html-ready.mmct-inner-page footer.footer,html.mmct-html-ready.mmct-inner-page .footer{display:none!important}

/* panels forms tables */
html.mmct-html-ready:not(.mmct-auth-page) .panel_s,html.mmct-html-ready:not(.mmct-auth-page) .panel,html.mmct-html-ready:not(.mmct-auth-page) .card,html.mmct-html-ready:not(.mmct-auth-page) .well{border:1px solid rgba(226,232,240,.94)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 44px rgba(15,23,42,.06)!important;overflow:visible!important}
html.mmct-html-ready:not(.mmct-auth-page) .panel_s>.panel-body,html.mmct-html-ready:not(.mmct-auth-page) .panel-body,html.mmct-html-ready:not(.mmct-auth-page) .card-body{padding:24px!important}.section-heading .panel-body{min-height:74px;display:flex;align-items:center;justify-content:center}.section-heading h4,.section-text{font-size:18px!important;font-weight:900!important;color:var(--mmct-dark)!important}
html.mmct-html-ready input.form-control,html.mmct-html-ready select.form-control,html.mmct-html-ready textarea.form-control,html.mmct-html-ready .bootstrap-select>.dropdown-toggle{min-height:46px!important;border-radius:16px!important;border:1px solid #dbe5f1!important;background:#fff!important;box-shadow:none!important;color:#101828!important;font-weight:700!important}html.mmct-html-ready textarea.form-control{min-height:160px!important}.btn{border-radius:14px!important;font-weight:900!important}.btn-info,.btn-primary{background:var(--mmct-primary)!important;border-color:var(--mmct-primary)!important;color:#fff!important}
html.mmct-html-ready .table-responsive,html.mmct-html-ready .dataTables_wrapper{overflow:visible!important;border-radius:22px!important}.dataTables_wrapper .row{margin:0!important}.dataTables_filter input{border-radius:14px!important;border:1px solid #dbe5f1!important;min-height:42px!important}.dt-table,table.table,table.dataTable{border-collapse:separate!important;border-spacing:0 12px!important;background:transparent!important}table.table thead th,table.dataTable thead th{border:0!important;color:#98a2b3!important;font-size:12px!important;font-weight:900!important}table.table tbody td,table.dataTable tbody td{background:#fff!important;border-top:1px solid #e8eef6!important;border-bottom:1px solid #e8eef6!important;padding:16px!important;vertical-align:middle!important;color:#344054!important;font-weight:700!important}table.table tbody tr td:first-child{border-radius:0 18px 18px 0!important;border-right:1px solid #e8eef6!important}table.table tbody tr td:last-child{border-radius:18px 0 0 18px!important;border-left:1px solid #e8eef6!important}
.projects-summary-heading,.tickets-summary-heading,.invoices-summary-heading{font-size:20px!important;font-weight:900!important;text-align:center!important;margin-bottom:20px!important}.list-status{width:20%!important;float:right!important;padding:0 8px!important}.list-status a{display:block!important;border:1px solid #e6edf5!important;border-radius:16px!important;background:#fbfdff!important;padding:18px 12px!important;text-align:center!important;min-height:88px!important}.list-status h3{font-size:18px!important;margin:0 0 8px!important}.list-status span{font-size:12px!important;font-weight:800!important}
.dropdown-menu,.bootstrap-select .dropdown-menu,.datepicker,.datetimepicker,.daterangepicker,.ui-datepicker{z-index:200000!important;direction:rtl!important;text-align:right!important;border-radius:18px!important;border:1px solid #dbe5f1!important;box-shadow:0 20px 50px rgba(15,23,42,.14)!important}.dropdown,.btn-group,.bootstrap-select,.form-group,.input-group,.panel_s,.panel-body,.table-responsive,.dataTables_wrapper{overflow:visible!important}

/* dashboard */
html.mmct-dashboard-page body>#wrapper{display:none!important}.mmct-dashboard-replacement{position:absolute!important;top:var(--mmct-top)!important;right:var(--mmct-right)!important;left:var(--mmct-left)!important;z-index:10!important;box-sizing:border-box!important}.mmct-dashboard-hero{position:relative;overflow:hidden;border-radius:30px;padding:30px 34px;min-height:176px;background:linear-gradient(135deg,#3158ff,#7347ff 58%,#111827);color:#fff;box-shadow:0 24px 60px rgba(49,88,255,.22);margin-bottom:18px;display:flex;align-items:center}.mmct-dashboard-hero:before,.mmct-dashboard-hero:after{content:'';position:absolute;border-radius:999px;background:rgba(255,255,255,.14)}.mmct-dashboard-hero:before{width:220px;height:220px;left:-60px;top:-80px}.mmct-dashboard-hero:after{width:130px;height:130px;right:34%;bottom:-55px}.mmct-dashboard-hero>div{position:relative;z-index:1;max-width:620px;margin-right:0;margin-left:auto;text-align:right}.mmct-dashboard-hero span{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px;font-weight:900}.mmct-dashboard-hero h1{margin:10px 0 6px!important;color:#fff!important;font-size:23px!important;line-height:1.7!important;font-weight:900!important}.mmct-dashboard-hero p{margin:0!important;color:rgba(255,255,255,.86)!important;font-size:12.5px!important;line-height:1.95!important;font-weight:700!important}.mmct-card-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}.mmct-feature-card{position:relative;overflow:hidden;min-height:158px;border-radius:24px;padding:18px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);border:1px solid rgba(226,232,240,.95);box-shadow:0 16px 34px rgba(15,23,42,.06);display:flex;flex-direction:column;align-items:flex-start;text-align:right;color:var(--mmct-dark)!important;transition:.2s ease}.mmct-feature-card:hover{transform:translateY(-4px);box-shadow:0 24px 52px rgba(15,23,42,.1)}.mmct-feature-card:before{content:'';position:absolute;width:132px;height:132px;left:-42px;bottom:-48px;border-radius:999px;opacity:.12;background:var(--tone,#3158ff)}.mmct-feature-icon{width:46px;height:46px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:18px;background:var(--tone,#3158ff);box-shadow:0 16px 32px color-mix(in srgb,var(--tone,#3158ff) 28%,transparent);margin-bottom:14px}.mmct-feature-card strong{font-size:14px;font-weight:900;color:var(--mmct-dark);line-height:1.65;margin:0 0 4px}.mmct-feature-card small{min-height:38px;color:var(--mmct-muted);line-height:1.85;font-size:11px;font-weight:700}.mmct-feature-card em{margin-top:auto;color:var(--tone,#3158ff);background:color-mix(in srgb,var(--tone,#3158ff) 10%,#fff);border-radius:999px;padding:5px 11px;font-style:normal;font-weight:900;font-size:11px}.mmct-tone-blue{--tone:#3158ff}.mmct-tone-green{--tone:#12b76a}.mmct-tone-purple{--tone:#7c3aed}.mmct-tone-orange{--tone:#f97316}.mmct-tone-slate{--tone:#475467}.mmct-tone-cyan{--tone:#06b6d4}

/* auth */
html.mmct-auth-page body{background:linear-gradient(135deg,#0f172a,#172554)!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:100vh!important;overflow:hidden!important}.mmct-auth-page #wrapper,.mmct-auth-page .authentication-form-wrapper{width:100%!important;max-width:460px!important;margin:0 auto!important}.mmct-auth-page form{background:#fff!important;border-radius:28px!important;padding:32px!important;box-shadow:0 30px 80px rgba(0,0,0,.25)!important}.mmct-auth-title{text-align:center;margin-bottom:24px}.mmct-auth-logo{width:58px;height:58px;border-radius:20px;background:linear-gradient(135deg,#3158ff,#7c3aed);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:24px;margin-bottom:14px}.mmct-auth-title h1{font-size:20px!important;font-weight:900!important;margin:0 0 8px!important}.mmct-auth-title p{color:#667085!important;font-weight:700!important;line-height:1.8!important;margin:0!important}

@media (max-width:1599px) and (min-width:1200px){.mmct-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:1199px) and (min-width:992px){:root{--mmct-right:308px;--mmct-left:18px}.mmct-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:991px){:root{--mmct-right:14px;--mmct-left:14px;--mmct-top:96px}.mmct-sidebar{transform:translateX(115%)!important;transition:.22s ease!important}.mmct-menu-open .mmct-sidebar{transform:translateX(0)!important}.mmct-mobile-toggle{display:inline-flex!important}.mmct-header{right:76px!important;left:14px!important}.mmct-dashboard-replacement{position:relative!important;top:auto!important;right:auto!important;left:auto!important;margin:96px 14px 34px!important}.mmct-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.mmct-html-ready.mmct-inner-page body>#wrapper{position:relative!important;top:auto!important;right:auto!important;left:auto!important;margin:96px 14px 34px!important}.list-status{width:50%!important;margin-bottom:10px}}
@media (max-width:640px){.mmct-card-grid{grid-template-columns:1fr!important}.mmct-header-title strong{font-size:15px}.mmct-header-exit span{display:none}.list-status{width:100%!important}}


/* MMCT 1.9.7 dashboard visibility fix: PHP renders the dashboard inside #wrapper; JS moves it to body before #wrapper is hidden. */
html.mmct-html-ready.mmct-dashboard-page body > #mmct-dashboard-replacement,
html.mmct-html-ready.mmct-dashboard-page body > .mmct-dashboard-replacement {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
}
html.mmct-html-ready.mmct-dashboard-page body > #mmct-dashboard-replacement .mmct-card-grid,
html.mmct-html-ready.mmct-dashboard-page body > .mmct-dashboard-replacement .mmct-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
@media (max-width:1599px) and (min-width:1200px){
    html.mmct-html-ready.mmct-dashboard-page body > #mmct-dashboard-replacement .mmct-card-grid,
    html.mmct-html-ready.mmct-dashboard-page body > .mmct-dashboard-replacement .mmct-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:1199px) and (min-width:992px){
    html.mmct-html-ready.mmct-dashboard-page body > #mmct-dashboard-replacement .mmct-card-grid,
    html.mmct-html-ready.mmct-dashboard-page body > .mmct-dashboard-replacement .mmct-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* MMCT 1.9.9 - IRANSansX force, line dashboard, no desktop dashboard scroll, auth rebuild */
html.mmct-html-ready body,
html.mmct-html-ready body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: "IRANSansX", Tahoma, "Segoe UI", sans-serif !important;
}

html.mmct-html-ready.mmct-dashboard-page,
html.mmct-html-ready.mmct-dashboard-page body {
    overflow: hidden !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-dashboard-replacement {
    bottom: 18px !important;
    overflow: hidden !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-dashboard-hero {
    min-height: 138px !important;
    padding: 22px 30px !important;
    margin-bottom: 14px !important;
    border-radius: 26px !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-dashboard-hero h1 {
    font-size: 22px !important;
    margin: 8px 0 4px !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-dashboard-hero p {
    font-size: 12px !important;
    line-height: 1.8 !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-feature-card {
    min-height: 128px !important;
    padding: 15px !important;
    border-radius: 22px !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-feature-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
    margin-bottom: 9px !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-feature-card strong {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-feature-card small {
    font-size: 10.5px !important;
    line-height: 1.65 !important;
    min-height: 30px !important;
}

html.mmct-html-ready.mmct-dashboard-page .mmct-feature-card em {
    font-size: 10.5px !important;
    padding: 4px 10px !important;
    min-height: auto !important;
}

.mmct-line-widget {
    position: relative;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-areas: "info chart" "stats stats";
    gap: 14px 18px;
    overflow: hidden;
    border-radius: 26px;
    padding: 18px 20px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 18px 46px rgba(15,23,42,.07);
}
.mmct-line-widget:before {content:"";position:absolute;width:220px;height:220px;left:-100px;bottom:-125px;border-radius:999px;background:rgba(49,88,255,.07)}
.mmct-line-info {grid-area:info;position:relative;z-index:1;align-self:center}
.mmct-line-info span {display:inline-flex;padding:7px 12px;border-radius:999px;background:#eef2ff;color:#3158ff;font-weight:900;font-size:12px;margin-bottom:9px}
.mmct-line-info h3 {margin:0 0 7px!important;color:#0f172a!important;font-size:18px!important;font-weight:900!important;line-height:1.6!important}
.mmct-line-info p {margin:0!important;color:#667085!important;font-size:12px!important;font-weight:700!important;line-height:1.8!important}
.mmct-line-graph {grid-area:chart;position:relative;z-index:1;height:170px;border-radius:22px;background:linear-gradient(180deg,#fbfdff,#f2f7ff);border:1px solid #e7edf5;overflow:hidden;padding:10px}
.mmct-line-graph svg{width:100%;height:100%;display:block;overflow:visible}
.mmct-grid-line{fill:none;stroke:#dbe5f1;stroke-width:1;stroke-dasharray:5 8;opacity:.85}
.mmct-line-area{fill:url(#mmctLineFill)}
.mmct-line-stroke{fill:none;stroke:url(#mmctLineStroke);stroke-width:6;stroke-linecap:round;filter:drop-shadow(0 10px 14px rgba(49,88,255,.20))}
.mmct-line-points circle{fill:#fff;stroke:#3158ff;stroke-width:5;filter:drop-shadow(0 8px 12px rgba(49,88,255,.24))}
.mmct-line-stats{grid-area:stats;position:relative;z-index:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.mmct-line-stats a{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:18px;padding:11px 12px;background:#fff;border:1px solid #e7edf5;color:#344054!important;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.mmct-line-stats strong{font-size:12px;font-weight:900;color:#101828}.mmct-line-stats small{font-size:10.5px;font-weight:800;color:#667085}

html.mmct-auth-page,
html.mmct-auth-page body {
    min-height: 100vh !important;
    overflow: hidden !important;
}
html.mmct-auth-page body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
    background: radial-gradient(circle at 20% 0%, rgba(49,88,255,.22), transparent 32%), linear-gradient(135deg,#eef4ff 0%,#f8fbff 55%,#eef2ff 100%) !important;
}
html.mmct-auth-page body > nav.navbar,
html.mmct-auth-page .navbar.header,
html.mmct-auth-page footer.footer,
html.mmct-auth-page .login-heading,
html.mmct-auth-page .forgot-password-heading {
    display: none !important;
}
html.mmct-auth-page #wrapper,
html.mmct-auth-page #content,
html.mmct-auth-page #content > .container,
html.mmct-auth-page #content > .container > .row,
html.mmct-auth-page .mtop40 {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
html.mmct-auth-page #wrapper { max-width: 460px !important; }
html.mmct-auth-page [class*="col-md-"],
html.mmct-auth-page [class*="col-sm-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
html.mmct-auth-page .panel_s {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
html.mmct-auth-page .panel-body,
html.mmct-auth-page form.login-form,
html.mmct-auth-page #forgot-password-form {
    width: 100% !important;
    max-width: 460px !important;
    margin: 0 auto !important;
    border-radius: 30px !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(226,232,240,.95) !important;
    box-shadow: 0 30px 80px rgba(15,23,42,.16) !important;
    padding: 30px !important;
    text-align: right !important;
}
html.mmct-auth-page form.login-form .panel_s,
html.mmct-auth-page form.login-form .panel-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
html.mmct-auth-page .mmct-auth-title {text-align:center;margin-bottom:22px}
html.mmct-auth-page .mmct-auth-logo{width:58px;height:58px;border-radius:20px;background:linear-gradient(135deg,#3158ff,#7c3aed);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:24px;margin-bottom:14px}
html.mmct-auth-page .mmct-auth-title h1{font-size:20px!important;font-weight:900!important;margin:0 0 8px!important;color:#101828!important;line-height:1.55!important}
html.mmct-auth-page .mmct-auth-title p{color:#667085!important;font-weight:700!important;line-height:1.85!important;margin:0!important;font-size:12.5px!important}
html.mmct-auth-page label{font-size:12px!important;font-weight:900!important;color:#344054!important;margin-bottom:8px!important}
html.mmct-auth-page .form-control{height:46px!important;border-radius:16px!important;border:1px solid #dbe5f1!important;background:#fff!important;box-shadow:none!important;font-weight:800!important;padding:10px 14px!important;text-align:right!important}
html.mmct-auth-page .btn{height:46px!important;border-radius:16px!important;font-weight:900!important}
html.mmct-auth-page a{font-weight:800!important;color:#3158ff!important}
html.mmct-auth-page .checkbox{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important}

@media (max-width: 1599px) and (min-width: 1200px){
    html.mmct-dashboard-page .mmct-card-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (max-height: 820px) and (min-width: 992px){
    html.mmct-html-ready.mmct-dashboard-page .mmct-dashboard-hero{min-height:120px!important;padding:18px 26px!important;margin-bottom:10px!important}
    html.mmct-html-ready.mmct-dashboard-page .mmct-feature-card{min-height:118px!important;padding:13px!important}
    .mmct-line-graph{height:132px!important}
    .mmct-line-widget{padding:14px 16px 12px!important;gap:10px 14px!important}
}
@media (max-width: 991px){
    html.mmct-dashboard-page, html.mmct-dashboard-page body{overflow:auto!important}
    .mmct-line-widget{grid-template-columns:1fr;grid-template-areas:"info" "chart" "stats";padding:18px}
    .mmct-line-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .mmct-line-graph{height:145px}
    html.mmct-auth-page, html.mmct-auth-page body{overflow:auto!important;min-height:100vh!important}
    html.mmct-auth-page body{padding:14px!important;align-items:flex-start!important}
    html.mmct-auth-page #wrapper{max-width:100%!important;margin-top:20px!important}
    html.mmct-auth-page .panel-body,
    html.mmct-auth-page form.login-form,
    html.mmct-auth-page #forgot-password-form{padding:22px!important;border-radius:24px!important}
}
@media (max-width:640px){
    .mmct-line-stats{grid-template-columns:1fr}
    .mmct-line-info h3{font-size:16px!important}
}


/* ===== MM Client Theme 2.0.0 - pro dashboard, auth center, mobile polish ===== */
html.mmct-html-ready,
html.mmct-html-ready body,
html.mmct-html-ready *:not(i):not(.fa):not([class*="fa-"]) {
    font-family: "IRANSansX", Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

html.mmct-dashboard-page,
html.mmct-dashboard-page body {
    overflow: hidden !important;
}

html.mmct-dashboard-page .mmct-dashboard-replacement {
    top: 116px !important;
}

html.mmct-dashboard-page .mmct-dashboard-hero {
    min-height: 138px !important;
    padding: 22px 30px !important;
    margin-bottom: 12px !important;
    border-radius: 28px !important;
}

html.mmct-dashboard-page .mmct-dashboard-hero h1 {
    font-size: 22px !important;
    margin: 8px 0 4px !important;
}

html.mmct-dashboard-page .mmct-dashboard-hero p {
    font-size: 12px !important;
    line-height: 1.8 !important;
}

html.mmct-dashboard-page .mmct-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

html.mmct-dashboard-page .mmct-feature-card {
    min-height: 132px !important;
    padding: 15px !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 14% 88%, color-mix(in srgb, var(--tone, #3158ff) 14%, transparent) 0 32%, transparent 33%),
        linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
    border: 1px solid rgba(226,232,240,.96) !important;
    box-shadow: 0 14px 32px rgba(15,23,42,.055) !important;
}

html.mmct-dashboard-page .mmct-feature-card:before {display:none !important}
html.mmct-dashboard-page .mmct-feature-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 16px 28px color-mix(in srgb,var(--tone,#3158ff) 20%,transparent) !important;
}
html.mmct-dashboard-page .mmct-feature-card strong {
    font-size: 13px !important;
    margin-bottom: 3px !important;
}
html.mmct-dashboard-page .mmct-feature-card small {
    font-size: 10.6px !important;
    line-height: 1.75 !important;
    min-height: 32px !important;
}
html.mmct-dashboard-page .mmct-feature-card em {
    font-size: 10.5px !important;
    padding: 4px 10px !important;
}

/* remove previous line chart and link strip if cached HTML exists */
.mmct-line-widget,
.mmct-line-stats {display:none !important}

.mmct-metric-widget {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 18px 20px;
    background:
        radial-gradient(circle at 8% 100%, rgba(49,88,255,.08), transparent 28%),
        linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    border: 1px solid rgba(226,232,240,.96);
    box-shadow: 0 20px 48px rgba(15,23,42,.07);
}
.mmct-metric-widget:before {
    content:"";
    position:absolute;
    left:-70px;
    top:-90px;
    width:210px;
    height:210px;
    border-radius:999px;
    background:rgba(124,58,237,.06);
}
.mmct-metric-head {
    position:relative;
    z-index:1;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.mmct-metric-head span {
    display:inline-flex;
    padding:6px 11px;
    border-radius:999px;
    background:#eef2ff;
    color:#3158ff;
    font-size:11px;
    font-weight:900;
    margin-bottom:8px;
}
.mmct-metric-head h3 {
    margin:0 0 5px!important;
    color:#101828!important;
    font-size:17px!important;
    font-weight:900!important;
    line-height:1.55!important;
}
.mmct-metric-head p {
    margin:0!important;
    color:#667085!important;
    font-size:11.5px!important;
    font-weight:700!important;
    line-height:1.75!important;
}
.mmct-metric-head > strong {
    white-space:nowrap;
    border-radius:999px;
    padding:8px 12px;
    background:#f8fafc;
    border:1px solid #e6edf5;
    color:#475467;
    font-size:11px;
    font-weight:900;
}
.mmct-pro-bar-chart {
    position:relative;
    z-index:1;
    height:220px;
    display:grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap:14px;
    align-items:end;
    padding:18px 16px 12px;
    border-radius:24px;
    background:
      repeating-linear-gradient(to top, transparent 0 42px, rgba(148,163,184,.13) 43px, transparent 44px),
      linear-gradient(180deg,#fbfdff 0%,#f2f7ff 100%);
    border:1px solid #e7edf5;
}
.mmct-pro-bar {
    height:100%;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
    --bar-color:#3158ff;
}
.mmct-pro-bar b {
    color:var(--bar-color);
    font-size:11px;
    font-weight:900;
}
.mmct-pro-bar > span {
    position:relative;
    width:42px;
    flex:1;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    border-radius:999px;
    background:rgba(226,232,240,.55);
    overflow:hidden;
    padding:5px;
}
.mmct-pro-bar > span:before {
    content:"";
    position:absolute;
    inset:5px;
    border-radius:999px;
    background:rgba(255,255,255,.42);
}
.mmct-pro-bar i {
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:var(--value);
    min-height:18px;
    border-radius:999px;
    background:linear-gradient(180deg, color-mix(in srgb,var(--bar-color) 72%,#fff), var(--bar-color));
    box-shadow:0 12px 24px color-mix(in srgb,var(--bar-color) 22%, transparent);
}
.mmct-pro-bar label {
    color:#475467;
    font-size:11px;
    font-weight:900;
    line-height:1.4;
    margin:0;
    text-align:center;
}
.mmct-bar-blue{--bar-color:#3158ff}.mmct-bar-green{--bar-color:#12b76a}.mmct-bar-purple{--bar-color:#7c3aed}.mmct-bar-orange{--bar-color:#f97316}.mmct-bar-slate{--bar-color:#475467}.mmct-bar-cyan{--bar-color:#06b6d4}

/* auth fixed center */
html.mmct-auth-page,
html.mmct-auth-page body {
    min-height:100vh !important;
    min-height:100svh !important;
    overflow:hidden !important;
}
html.mmct-auth-page body {
    display:grid !important;
    place-items:center !important;
    padding:24px !important;
    margin:0 !important;
}
html.mmct-auth-page body > nav.navbar,
html.mmct-auth-page .navbar.header,
html.mmct-auth-page footer.footer,
html.mmct-auth-page .mmct-hide-legacy {display:none!important}
html.mmct-auth-page #wrapper {
    width:100% !important;
    max-width:460px !important;
    margin:0 auto !important;
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    padding:0 !important;
}
html.mmct-auth-page #content,
html.mmct-auth-page #content > .container,
html.mmct-auth-page #content > .container > .row,
html.mmct-auth-page .mtop40,
html.mmct-auth-page [class*="col-md-"],
html.mmct-auth-page [class*="col-sm-"] {
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
}
html.mmct-auth-page .panel-body,
html.mmct-auth-page form.login-form,
html.mmct-auth-page #forgot-password-form,
html.mmct-auth-page .mmct-auth-form-ready {
    width:100% !important;
    max-width:460px !important;
    margin:0 auto !important;
    padding:30px !important;
    border-radius:30px !important;
    background:rgba(255,255,255,.97) !important;
    border:1px solid rgba(226,232,240,.95) !important;
    box-shadow:0 28px 76px rgba(15,23,42,.16) !important;
    box-sizing:border-box !important;
}

@media (max-height: 820px) and (min-width: 992px){
    html.mmct-dashboard-page .mmct-dashboard-replacement{top:106px!important}
    html.mmct-dashboard-page .mmct-dashboard-hero{min-height:112px!important;padding:16px 24px!important;margin-bottom:9px!important}
    html.mmct-dashboard-page .mmct-feature-card{min-height:112px!important;padding:12px!important}
    .mmct-metric-widget{padding:13px 16px!important}
    .mmct-pro-bar-chart{height:176px!important;padding:14px 14px 10px!important}
}

@media (max-width: 991px){
    html.mmct-dashboard-page, html.mmct-dashboard-page body{overflow:auto!important}
    html.mmct-html-ready .mmct-sidebar{
        width:min(340px, calc(100vw - 28px))!important;
        right:14px!important;
        top:14px!important;
        bottom:14px!important;
        border-radius:24px!important;
    }
    html.mmct-html-ready .mmct-header{
        min-height:68px!important;
        height:auto!important;
        right:74px!important;
        left:14px!important;
        top:14px!important;
        padding:10px 12px!important;
        border-radius:22px!important;
    }
    html.mmct-html-ready .mmct-header-title span{font-size:10.5px!important}
    html.mmct-html-ready .mmct-header-title strong{font-size:14px!important}
    html.mmct-html-ready .mmct-header-actions{gap:6px!important}
    html.mmct-html-ready .mmct-header-action{width:40px!important;height:40px!important;border-radius:14px!important}
    html.mmct-html-ready .mmct-header-exit span{display:none!important}
    html.mmct-dashboard-page .mmct-dashboard-replacement{margin:96px 12px 24px!important}
    html.mmct-dashboard-page .mmct-dashboard-hero{min-height:132px!important;padding:20px!important;border-radius:24px!important}
    html.mmct-dashboard-page .mmct-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
    html.mmct-dashboard-page .mmct-feature-card{min-height:126px!important;padding:13px!important;border-radius:20px!important}
    .mmct-metric-head{flex-direction:column!important;align-items:flex-start!important;margin-bottom:12px!important}
    .mmct-pro-bar-chart{height:auto!important;grid-template-columns:1fr!important;gap:10px!important;padding:12px!important}
    .mmct-pro-bar{display:grid!important;grid-template-columns:70px 1fr 46px!important;align-items:center!important;height:auto!important;gap:10px!important}
    .mmct-pro-bar label{order:1;text-align:right!important}.mmct-pro-bar > span{order:2;width:100%!important;height:18px!important;flex:none!important;padding:3px!important}.mmct-pro-bar i{height:100%!important;width:var(--value)!important}.mmct-pro-bar b{order:3;text-align:left!important}
    html.mmct-auth-page, html.mmct-auth-page body{overflow:auto!important;min-height:100svh!important}
    html.mmct-auth-page body{display:grid!important;place-items:center!important;padding:16px!important}
    html.mmct-auth-page #wrapper{max-width:460px!important;margin:0 auto!important}
    html.mmct-auth-page .panel-body,
    html.mmct-auth-page form.login-form,
    html.mmct-auth-page #forgot-password-form,
    html.mmct-auth-page .mmct-auth-form-ready{padding:24px!important;border-radius:26px!important}
}
@media (max-width:640px){
    html.mmct-dashboard-page .mmct-card-grid{grid-template-columns:1fr!important}
    html.mmct-dashboard-page .mmct-feature-card{min-height:118px!important}
    .mmct-metric-widget{padding:16px!important;border-radius:24px!important}
    .mmct-metric-head h3{font-size:16px!important}
    html.mmct-auth-page .panel-body,
    html.mmct-auth-page form.login-form,
    html.mmct-auth-page #forgot-password-form,
    html.mmct-auth-page .mmct-auth-form-ready{padding:22px!important}
}


/* MMCT 2.0.2 - local real bar chart, ajax loader, motion, mobile 2 columns */
html.mmct-html-ready body,
html.mmct-html-ready body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: "IRANSansX", Tahoma, "Segoe UI", sans-serif !important;
}

@keyframes mmctPageEnter { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes mmctCardUp { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mmctPulse { 0%,100%{transform:scale(1);opacity:.9} 50%{transform:scale(1.05);opacity:1} }

html.mmct-html-ready body.mmct-ui-body {
    animation: mmctPageEnter .58s cubic-bezier(.2,.8,.2,1) both;
}
html.mmct-dashboard-page .mmct-dashboard-hero,
html.mmct-dashboard-page .mmct-feature-card,
html.mmct-dashboard-page .mmct-metric-widget,
html.mmct-inner-page .panel_s,
html.mmct-inner-page .panel,
html.mmct-inner-page .card {
    animation: mmctCardUp .62s cubic-bezier(.2,.8,.2,1) both;
}
html.mmct-dashboard-page .mmct-feature-card:nth-child(1){animation-delay:.05s}html.mmct-dashboard-page .mmct-feature-card:nth-child(2){animation-delay:.10s}html.mmct-dashboard-page .mmct-feature-card:nth-child(3){animation-delay:.15s}html.mmct-dashboard-page .mmct-feature-card:nth-child(4){animation-delay:.20s}html.mmct-dashboard-page .mmct-feature-card:nth-child(5){animation-delay:.25s}

.mmct-feature-card {
    backdrop-filter: blur(12px);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease !important;
}
.mmct-feature-card:hover { transform: translateY(-7px) scale(1.012) !important; border-color: color-mix(in srgb,var(--tone,#3158ff) 28%,#e5e7eb) !important; }
.mmct-feature-icon { animation: mmctPulse 3.2s ease-in-out infinite; }

.mmct-real-chart-widget {
    min-height: 230px !important;
    padding: 18px 20px 16px !important;
    border-radius: 26px !important;
    background: radial-gradient(circle at 8% 10%, rgba(49,88,255,.08), transparent 26%), linear-gradient(180deg,#fff 0%,#f8fbff 100%) !important;
    border: 1px solid rgba(226,232,240,.96) !important;
    box-shadow: 0 20px 54px rgba(15,23,42,.08) !important;
}
.mmct-real-chart-widget .mmct-metric-head {
    display:flex !important; align-items:flex-start !important; justify-content:space-between !important; gap:18px !important; margin-bottom: 8px !important;
}
.mmct-real-chart-widget .mmct-metric-head span {
    display:inline-flex !important; padding: 6px 12px !important; border-radius:999px !important; background:#eef2ff !important; color:#3158ff !important; font-size:11.5px !important; font-weight:900 !important; margin-bottom:8px !important;
}
.mmct-real-chart-widget .mmct-metric-head h3 { margin:0 0 5px !important; font-size:18px !important; line-height:1.6 !important; font-weight:900 !important; color:#0f172a !important; }
.mmct-real-chart-widget .mmct-metric-head p { margin:0 !important; color:#667085 !important; font-size:12px !important; line-height:1.85 !important; font-weight:700 !important; }
.mmct-real-chart-widget .mmct-metric-head > strong { align-self:flex-start; display:inline-flex; border-radius:999px; padding:7px 12px; background:#f8fafc; border:1px solid #e7edf5; color:#475467; font-size:11px; font-weight:900; }
.mmct-local-chart-wrap { position:relative; z-index:1; width:100%; }
.mmct-local-bar-chart { width:100%; min-height: 270px; direction:rtl; }
.mmct-svg-chart { width:100%; height:270px; display:block; overflow:visible; }
.mmct-svg-plot { fill:url(#not-used); fill:rgba(248,251,255,.72); stroke:#e7edf5; stroke-width:1; }
.mmct-svg-grid { stroke:#dbe5f1; stroke-width:1; stroke-dasharray:6 9; opacity:.85; }
.mmct-svg-bar-shadow { fill:rgba(15,23,42,.06); filter: blur(2px); }
.mmct-svg-bar { filter:url(#mmctBarGlow); transition: height 1.05s cubic-bezier(.2,.8,.2,1), y 1.05s cubic-bezier(.2,.8,.2,1); }
.mmct-svg-value { font-family:"IRANSansX",Tahoma,sans-serif; font-size:15px; font-weight:900; fill:#0f172a; opacity:0; transform:translateY(8px); transition: .55s ease .75s; }
.mmct-svg-label { font-family:"IRANSansX",Tahoma,sans-serif; font-size:13px; font-weight:900; fill:#475467; }
.mmct-chart-live .mmct-svg-value { opacity:1; transform:translateY(0); }

.mmct-ajax-loader { position:fixed; inset:0; z-index:300000; display:flex; align-items:center; justify-content:center; background:rgba(248,251,255,.74); backdrop-filter: blur(12px); opacity:0; visibility:hidden; transition:.22s ease; }
.mmct-is-loading .mmct-ajax-loader { opacity:1; visibility:visible; }
.mmct-ajax-card { position:relative; width:260px; border-radius:26px; padding:28px 24px; background:#fff; border:1px solid #e7edf5; box-shadow:0 30px 80px rgba(15,23,42,.18); text-align:center; overflow:hidden; }
.mmct-ajax-card span { width:54px; height:54px; display:inline-flex; border-radius:18px; background:linear-gradient(135deg,#3158ff,#7c3aed); box-shadow:0 18px 38px rgba(49,88,255,.25); animation:mmctPulse 1.3s ease-in-out infinite; margin-bottom:16px; }
.mmct-ajax-card strong { display:block; color:#0f172a; font-size:16px; font-weight:900; margin-bottom:6px; }
.mmct-ajax-card em { display:block; color:#667085; font-size:12px; font-style:normal; font-weight:700; }
.mmct-ajax-card b { position:absolute; right:0; left:0; bottom:0; height:4px; background:linear-gradient(90deg,#3158ff,#7c3aed,#06b6d4); animation:mmctAjaxBar 1.15s ease-in-out infinite; }
@keyframes mmctAjaxBar { 0%{transform:translateX(100%)} 50%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

@media (max-width: 991px) {
    html.mmct-dashboard-page, html.mmct-dashboard-page body { overflow:auto !important; }
    .mmct-dashboard-replacement { margin-bottom: 28px !important; }
    .mmct-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
    .mmct-feature-card { min-height: 134px !important; padding:13px !important; border-radius:20px !important; }
    .mmct-feature-icon { width:38px !important; height:38px !important; min-width:38px !important; border-radius:14px !important; margin-bottom:8px !important; }
    .mmct-feature-card strong { font-size:12.5px !important; }
    .mmct-feature-card small { font-size:10px !important; line-height:1.55 !important; min-height:28px !important; }
    .mmct-feature-card em { font-size:10px !important; padding:4px 8px !important; }
    .mmct-real-chart-widget .mmct-metric-head { flex-direction:column !important; gap:8px !important; }
    .mmct-real-chart-widget { padding:15px !important; border-radius:22px !important; }
    .mmct-local-bar-chart { min-height: 245px; }
    .mmct-svg-chart { height:245px; }
}
@media (max-width: 640px) {
    .mmct-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .mmct-dashboard-hero { min-height:112px !important; padding:18px !important; }
    .mmct-dashboard-hero h1 { font-size:17px !important; }
    .mmct-dashboard-hero p { font-size:10.5px !important; }
    .mmct-real-chart-widget .mmct-metric-head h3 { font-size:15px !important; }
    .mmct-real-chart-widget .mmct-metric-head p { font-size:10.5px !important; }
    .mmct-local-bar-chart { min-height: 220px; }
    .mmct-svg-chart { height:220px; }
}
@media (max-width: 380px) {
    .mmct-card-grid { gap:8px !important; }
    .mmct-feature-card { min-height:126px !important; padding:10px !important; }
    .mmct-feature-card small { display:none !important; }
}


/* MMCT 2.0.3 - کلاسیک، یک‌دست، خواناتر */
:root{
  --mmct-primary:#2f5f98;
  --mmct-primary-2:#1f3f66;
  --mmct-accent:#3f6f8f;
  --mmct-dark:#111827;
  --mmct-muted:#64748b;
  --mmct-soft:#f6f8fb;
  --mmct-border:#e2e8f0;
  --mmct-card:#ffffff;
  --mmct-shadow:0 18px 42px rgba(15,23,42,.075);
}

html.mmct-html-ready body,
html.mmct-html-ready body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]){
  font-family:"IRANSansX",Tahoma,"Segoe UI",sans-serif!important;
  letter-spacing:-.015em;
}
html.mmct-html-ready body.customers{
  font-size:13px!important;
  color:var(--mmct-dark)!important;
  background:radial-gradient(circle at 12% 0%,rgba(47,95,152,.08),transparent 32%),#f5f7fb!important;
}
html.mmct-html-ready body.customers:before{
  background-image:linear-gradient(rgba(47,95,152,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(47,95,152,.035) 1px,transparent 1px)!important;
  opacity:.62!important;
}

/* یک‌دست‌سازی رنگ‌ها */
.mmct-tone-blue,.mmct-tone-green,.mmct-tone-purple,.mmct-tone-orange,.mmct-tone-cyan{--tone:#2f5f98!important}
.mmct-tone-slate{--tone:#475569!important}
html.mmct-html-ready .mmct-brand-icon,
html.mmct-html-ready .mmct-nav-link:hover i,
html.mmct-html-ready .mmct-nav-link.mmct-active i,
.mmct-auth-logo,
.mmct-ajax-card span{
  background:linear-gradient(135deg,#2f5f98,#1f3f66)!important;
  box-shadow:0 14px 28px rgba(47,95,152,.22)!important;
}
html.mmct-html-ready .mmct-nav-link:hover,
html.mmct-html-ready .mmct-nav-link.mmct-active{
  background:#eef4fb!important;
  color:#2f5f98!important;
}
html.mmct-html-ready .mmct-header-action:hover,
html.mmct-html-ready .mmct-mobile-toggle:hover,
.btn-info,.btn-primary{
  background:#2f5f98!important;
  border-color:#2f5f98!important;
  color:#fff!important;
}

/* بهینه‌سازی سایز فونت‌ها */
html.mmct-html-ready .mmct-sidebar-brand strong{font-size:14px!important;line-height:1.55!important}
html.mmct-html-ready .mmct-sidebar-brand small{font-size:11px!important;line-height:1.6!important}
html.mmct-html-ready .mmct-nav-link{font-size:12.5px!important;font-weight:800!important;height:45px!important;border-radius:15px!important}
html.mmct-html-ready .mmct-bottom-link{font-size:12.5px!important;min-height:39px!important}
html.mmct-html-ready .mmct-header-title span{font-size:11px!important}
html.mmct-html-ready .mmct-header-title strong{font-size:16px!important;line-height:1.6!important}
html.mmct-html-ready .section-heading h4,
html.mmct-html-ready .section-text{font-size:16px!important;line-height:1.7!important}
html.mmct-html-ready .projects-summary-heading,
html.mmct-html-ready .tickets-summary-heading,
html.mmct-html-ready .invoices-summary-heading{font-size:17px!important;line-height:1.8!important}
html.mmct-html-ready table.table thead th,
html.mmct-html-ready table.dataTable thead th{font-size:11.5px!important;white-space:nowrap!important}
html.mmct-html-ready table.table tbody td,
html.mmct-html-ready table.dataTable tbody td{font-size:12.5px!important;line-height:1.8!important}
html.mmct-html-ready input.form-control,
html.mmct-html-ready select.form-control,
html.mmct-html-ready textarea.form-control,
html.mmct-html-ready .bootstrap-select>.dropdown-toggle{font-size:12.5px!important;font-weight:700!important}

/* کارت‌ها حرفه‌ای‌تر و خلوت‌تر */
.mmct-dashboard-hero{
  background:linear-gradient(135deg,#2f5f98 0%,#294e7d 50%,#172235 100%)!important;
  box-shadow:0 22px 54px rgba(31,63,102,.20)!important;
}
.mmct-feature-card{
  border:1px solid rgba(226,232,240,.98)!important;
  box-shadow:0 16px 34px rgba(15,23,42,.055)!important;
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)!important;
}
.mmct-feature-card:hover{
  transform:translateY(-5px) scale(1.006)!important;
  box-shadow:0 24px 52px rgba(15,23,42,.095)!important;
  border-color:rgba(47,95,152,.26)!important;
}
.mmct-feature-icon{
  background:linear-gradient(135deg,#2f5f98,#1f3f66)!important;
  box-shadow:0 14px 28px rgba(47,95,152,.20)!important;
  animation:none!important;
}
.mmct-feature-card strong{font-size:13.5px!important;line-height:1.7!important}
.mmct-feature-card small{font-size:10.8px!important;line-height:1.75!important;color:#64748b!important}
.mmct-feature-card em{
  color:#2f5f98!important;
  background:#eef4fb!important;
  font-size:10.5px!important;
}
.mmct-feature-card:before{background:#2f5f98!important;opacity:.075!important}

/* نمودار و ویجت با پالت کلاسیک */
.mmct-real-chart-widget{
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important;
  border-color:#e2e8f0!important;
  box-shadow:0 18px 44px rgba(15,23,42,.065)!important;
}
.mmct-real-chart-widget .mmct-metric-head span{
  background:#eef4fb!important;
  color:#2f5f98!important;
}
.mmct-real-chart-widget .mmct-metric-head h3{font-size:17px!important;color:#111827!important}
.mmct-real-chart-widget .mmct-metric-head p{font-size:11.5px!important;color:#64748b!important}
.mmct-svg-grid{stroke:#dbe4ee!important;opacity:.72!important}
.mmct-svg-plot{fill:rgba(248,250,252,.8)!important;stroke:#e2e8f0!important}
.mmct-svg-label{font-size:12px!important;fill:#64748b!important}
.mmct-svg-value{font-size:13px!important;fill:#111827!important}

/* دراپ‌دان‌ها: جلوگیری از افتادن زیر پنل/کادر */
html.mmct-html-ready .panel_s,
html.mmct-html-ready .panel,
html.mmct-html-ready .panel-body,
html.mmct-html-ready .card,
html.mmct-html-ready .card-body,
html.mmct-html-ready .table-responsive,
html.mmct-html-ready .dataTables_wrapper,
html.mmct-html-ready .form-group,
html.mmct-html-ready .input-group,
html.mmct-html-ready .dropdown,
html.mmct-html-ready .btn-group,
html.mmct-html-ready .bootstrap-select,
html.mmct-html-ready .bootstrap-select.btn-group,
html.mmct-html-ready .open{
  overflow:visible!important;
  isolation:auto!important;
}
html.mmct-html-ready .bootstrap-select.btn-group .dropdown-menu,
html.mmct-html-ready .bootstrap-select .dropdown-menu,
html.mmct-html-ready .dropdown-menu,
html.mmct-html-ready .open>.dropdown-menu,
html.mmct-html-ready .select2-dropdown,
html.mmct-html-ready .select2-container--open,
html.mmct-html-ready .datepicker,
html.mmct-html-ready .datetimepicker,
html.mmct-html-ready .daterangepicker,
html.mmct-html-ready .ui-datepicker{
  z-index:999999!important;
  direction:rtl!important;
  text-align:right!important;
  border-radius:16px!important;
  border:1px solid #d7e0ea!important;
  box-shadow:0 22px 60px rgba(15,23,42,.16)!important;
}
html.mmct-html-ready .bootstrap-select.btn-group.open,
html.mmct-html-ready .btn-group.open,
html.mmct-html-ready .dropdown.open{z-index:999998!important;position:relative!important}
html.mmct-html-ready .bootstrap-select.btn-group .dropdown-menu.inner{max-height:260px!important;overflow-y:auto!important}
html.mmct-html-ready .bootstrap-select>.dropdown-toggle,
html.mmct-html-ready .btn.dropdown-toggle{position:relative!important;z-index:2!important}
html.mmct-html-ready .dropdown-backdrop{z-index:999990!important}

/* لودر اجکس کلاسیک‌تر */
.mmct-ajax-loader{background:rgba(246,248,251,.78)!important;backdrop-filter:blur(14px)!important}
.mmct-ajax-card{border-radius:24px!important;border-color:#e2e8f0!important;box-shadow:0 30px 80px rgba(15,23,42,.16)!important}
.mmct-ajax-card b{background:linear-gradient(90deg,#2f5f98,#6b7d91,#2f5f98)!important}

/* موبایل: کارت‌ها دوتایی، خواناتر و خلوت‌تر */
@media (max-width:991px){
  html.mmct-html-ready .mmct-header-title strong{font-size:14px!important}
  html.mmct-dashboard-page .mmct-card-grid,
  .mmct-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .mmct-feature-card{min-height:128px!important;padding:12px!important;border-radius:20px!important}
  .mmct-feature-card strong{font-size:12.2px!important}
  .mmct-feature-card small{font-size:9.8px!important;line-height:1.6!important;min-height:26px!important}
  .mmct-feature-card em{font-size:9.8px!important;padding:4px 8px!important}
  .mmct-real-chart-widget{padding:14px!important;border-radius:22px!important}
}
@media (max-width:640px){
  html.mmct-dashboard-page .mmct-card-grid,
  .mmct-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .mmct-feature-card{min-height:122px!important;padding:10px!important}
  .mmct-feature-icon{width:36px!important;height:36px!important;min-width:36px!important;border-radius:13px!important}
  .mmct-dashboard-hero h1{font-size:16px!important}
  .mmct-dashboard-hero p{font-size:10.2px!important}
}
@media (max-width:360px){
  html.mmct-dashboard-page .mmct-card-grid,
  .mmct-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .mmct-feature-card{padding:9px!important;min-height:112px!important}
  .mmct-feature-card small{display:none!important}
}


/* MMCT 2.0.4 - Dropdowns + premium tables */
html.mmct-html-ready .panel_s,
html.mmct-html-ready .panel,
html.mmct-html-ready .panel-body,
html.mmct-html-ready .table-responsive,
html.mmct-html-ready .dataTables_wrapper,
html.mmct-html-ready .form-group,
html.mmct-html-ready .input-group,
html.mmct-html-ready .bootstrap-select,
html.mmct-html-ready .btn-group,
html.mmct-html-ready .dropdown {
    overflow: visible !important;
}
html.mmct-html-ready .bootstrap-select.open,
html.mmct-html-ready .btn-group.open,
html.mmct-html-ready .dropdown.open {
    z-index: 260000 !important;
}
html.mmct-html-ready .dropdown-menu,
html.mmct-html-ready .bootstrap-select .dropdown-menu,
html.mmct-html-ready .bootstrap-select.open .dropdown-menu,
html.mmct-html-ready .select2-container--open,
html.mmct-html-ready .select2-dropdown,
html.mmct-html-ready .datepicker,
html.mmct-html-ready .datetimepicker,
html.mmct-html-ready .daterangepicker,
html.mmct-html-ready .ui-datepicker,
html.mmct-html-ready .xdsoft_datetimepicker {
    z-index: 260000 !important;
    direction: rtl !important;
    text-align: right !important;
    border: 1px solid #d9e2ee !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 64px rgba(15,23,42,.18) !important;
    background: #fff !important;
    overflow: visible !important;
}
html.mmct-html-ready .mmct-dropdown-floating,
html.mmct-html-ready .bootstrap-select.open > .dropdown-menu {
    position: fixed !important;
    transform: none !important;
    margin: 0 !important;
    padding: 8px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}
html.mmct-html-ready .bootstrap-select .dropdown-menu li a,
html.mmct-html-ready .dropdown-menu > li > a {
    border-radius: 12px !important;
    padding: 9px 12px !important;
    color: #1f2937 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    transition: .15s ease !important;
}
html.mmct-html-ready .bootstrap-select .dropdown-menu li.selected a,
html.mmct-html-ready .bootstrap-select .dropdown-menu li a:hover,
html.mmct-html-ready .dropdown-menu > li > a:hover,
html.mmct-html-ready .dropdown-menu > .active > a,
html.mmct-html-ready .dropdown-menu > .active > a:hover {
    background: #eef4fb !important;
    color: #2f5f98 !important;
}
html.mmct-html-ready .bootstrap-select.btn-group .no-results {
    border-radius: 12px !important;
    margin: 6px !important;
    padding: 10px 12px !important;
    color: #64748b !important;
    background: #f8fafc !important;
    font-weight: 800 !important;
}
html.mmct-html-ready .bs-searchbox { padding: 8px !important; }
html.mmct-html-ready .bs-searchbox input {
    border-radius: 13px !important;
    border: 1px solid #d9e2ee !important;
    min-height: 38px !important;
    font-weight: 800 !important;
}

/* Premium tables */
html.mmct-html-ready .dataTables_wrapper {
    padding: 2px 0 0 !important;
    border-radius: 24px !important;
}
html.mmct-html-ready .dataTables_wrapper .row:first-child,
html.mmct-html-ready .dataTables_wrapper .dataTables_length,
html.mmct-html-ready .dataTables_wrapper .dataTables_filter {
    position: relative !important;
    z-index: 30 !important;
}
html.mmct-html-ready .dataTables_wrapper .dataTables_length label,
html.mmct-html-ready .dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
html.mmct-html-ready .dataTables_wrapper .dataTables_filter .input-group,
html.mmct-html-ready .dataTables_wrapper .dataTables_filter input,
html.mmct-html-ready .dataTables_wrapper .dataTables_length select,
html.mmct-html-ready .dataTables_wrapper .dataTables_length .bootstrap-select > .dropdown-toggle {
    min-height: 42px !important;
    border-radius: 15px !important;
    border: 1px solid #dbe5f1 !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.035) !important;
}
html.mmct-html-ready .dataTables_wrapper .dataTables_filter .input-group-addon {
    border: 1px solid #dbe5f1 !important;
    border-left: 0 !important;
    border-radius: 0 15px 15px 0 !important;
    background: #fff !important;
    color: #94a3b8 !important;
}
html.mmct-html-ready .dataTables_wrapper .dataTables_filter input {
    border-radius: 15px 0 0 15px !important;
    padding: 8px 12px !important;
}
html.mmct-html-ready .table-responsive {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
html.mmct-html-ready table.table,
html.mmct-html-ready table.dataTable {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    margin-top: 12px !important;
    background: transparent !important;
}
html.mmct-html-ready table.table thead th,
html.mmct-html-ready table.dataTable thead th {
    background: transparent !important;
    color: #7c8ca1 !important;
    border: 0 !important;
    padding: 10px 14px !important;
    font-size: 11.5px !important;
    line-height: 1.7 !important;
    font-weight: 900 !important;
    text-align: right !important;
}
html.mmct-html-ready table.table tbody tr,
html.mmct-html-ready table.dataTable tbody tr {
    transition: .18s ease !important;
}
html.mmct-html-ready table.table tbody tr:hover,
html.mmct-html-ready table.dataTable tbody tr:hover {
    transform: translateY(-2px) !important;
}
html.mmct-html-ready table.table tbody td,
html.mmct-html-ready table.dataTable tbody td {
    background: linear-gradient(180deg,#fff,#fbfdff) !important;
    border-top: 1px solid #e6eef7 !important;
    border-bottom: 1px solid #e6eef7 !important;
    padding: 15px 14px !important;
    color: #334155 !important;
    font-size: 12.7px !important;
    font-weight: 750 !important;
    vertical-align: middle !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.035) !important;
}
html.mmct-html-ready table.table tbody tr td:first-child,
html.mmct-html-ready table.dataTable tbody tr td:first-child {
    border-right: 1px solid #e6eef7 !important;
    border-radius: 0 18px 18px 0 !important;
}
html.mmct-html-ready table.table tbody tr td:last-child,
html.mmct-html-ready table.dataTable tbody tr td:last-child {
    border-left: 1px solid #e6eef7 !important;
    border-radius: 18px 0 0 18px !important;
}
html.mmct-html-ready table.table tbody td a,
html.mmct-html-ready table.dataTable tbody td a {
    color: #2f5f98 !important;
    font-weight: 900 !important;
}
html.mmct-html-ready .dataTables_info {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding-top: 14px !important;
}
html.mmct-html-ready .dataTables_paginate .paginate_button,
html.mmct-html-ready .dataTables_paginate a,
html.mmct-html-ready .pagination > li > a,
html.mmct-html-ready .pagination > li > span {
    min-width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    border: 1px solid #dbe5f1 !important;
    color: #475569 !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    margin: 0 3px !important;
}
html.mmct-html-ready .dataTables_paginate .paginate_button.current,
html.mmct-html-ready .pagination > .active > a,
html.mmct-html-ready .pagination > .active > span {
    background: #2f5f98 !important;
    border-color: #2f5f98 !important;
    color: #fff !important;
}
html.mmct-html-ready .dataTables_empty {
    border-radius: 22px !important;
    min-height: 180px !important;
    color: #64748b !important;
    font-weight: 900 !important;
    background: radial-gradient(circle at 50% 30%,rgba(47,95,152,.06),transparent 34%),#fff !important;
}
html.mmct-html-ready .label,
html.mmct-html-ready .badge {
    border-radius: 999px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}
@media (max-width: 640px) {
    html.mmct-html-ready .dataTables_wrapper .row:first-child { display: block !important; }
    html.mmct-html-ready .dataTables_wrapper .dataTables_length,
    html.mmct-html-ready .dataTables_wrapper .dataTables_filter { width: 100% !important; margin-bottom: 10px !important; }
    html.mmct-html-ready table.table tbody td,
    html.mmct-html-ready table.dataTable tbody td { font-size: 11.5px !important; padding: 11px 10px !important; }
}


/* MMCT 2.0.8 - dropdown opening + z-index only fix */
html.mmct-html-ready #wrapper,
html.mmct-html-ready #content,
html.mmct-html-ready #content > .container,
html.mmct-html-ready #content > .container-fluid,
html.mmct-html-ready #content > .container > .row,
html.mmct-html-ready #content > .container-fluid > .row,
html.mmct-html-ready .panel_s,
html.mmct-html-ready .panel,
html.mmct-html-ready .panel-body,
html.mmct-html-ready .table-responsive,
html.mmct-html-ready .dataTables_wrapper,
html.mmct-html-ready .form-group,
html.mmct-html-ready .input-group,
html.mmct-html-ready .dropdown,
html.mmct-html-ready .btn-group,
html.mmct-html-ready .bootstrap-select,
html.mmct-html-ready .bootstrap-select.btn-group {
    overflow: visible !important;
}

html.mmct-html-ready .bootstrap-select,
html.mmct-html-ready .bootstrap-select.btn-group,
html.mmct-html-ready .dropdown,
html.mmct-html-ready .btn-group {
    position: relative !important;
}

html.mmct-html-ready .bootstrap-select.open,
html.mmct-html-ready .bootstrap-select.show,
html.mmct-html-ready .bootstrap-select.mmct-manual-open,
html.mmct-html-ready .btn-group.open,
html.mmct-html-ready .dropdown.open,
html.mmct-html-ready .btn-group.show,
html.mmct-html-ready .dropdown.show {
    z-index: 320000 !important;
}

html.mmct-html-ready .bootstrap-select.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.show > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.mmct-manual-open > .dropdown-menu,
html.mmct-html-ready .dropdown.open > .dropdown-menu,
html.mmct-html-ready .btn-group.open > .dropdown-menu,
html.mmct-html-ready .dropdown.show > .dropdown-menu,
html.mmct-html-ready .btn-group.show > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    min-width: 100% !important;
    width: max-content !important;
    max-width: min(420px, calc(100vw - 40px)) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 320001 !important;
    padding: 8px !important;
    margin: 0 !important;
    border: 1px solid #d9e2ee !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 64px rgba(15,23,42,.18) !important;
    direction: rtl !important;
    text-align: right !important;
}

html.mmct-html-ready .bootstrap-select.dropup.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.dropup.show > .dropdown-menu,
html.mmct-html-ready .dropup.open > .dropdown-menu,
html.mmct-html-ready .dropup.show > .dropdown-menu {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu.inner,
html.mmct-html-ready .bootstrap-select.open .dropdown-menu.inner,
html.mmct-html-ready .bootstrap-select.show .dropdown-menu.inner {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: transparent !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu li a,
html.mmct-html-ready .dropdown-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 38px !important;
    border-radius: 12px !important;
    padding: 9px 12px !important;
    color: #1f2937 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    transition: .15s ease !important;
    white-space: nowrap !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu li.selected a,
html.mmct-html-ready .bootstrap-select .dropdown-menu li a:hover,
html.mmct-html-ready .dropdown-menu > li > a:hover,
html.mmct-html-ready .dropdown-menu > .active > a,
html.mmct-html-ready .dropdown-menu > .active > a:hover {
    background: #eef4fb !important;
    color: #2f5f98 !important;
}

html.mmct-html-ready .bootstrap-select > .dropdown-toggle,
html.mmct-html-ready .btn.dropdown-toggle,
html.mmct-html-ready .dropdown-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

html.mmct-html-ready .select2-container--open,
html.mmct-html-ready .select2-dropdown,
html.mmct-html-ready .datepicker,
html.mmct-html-ready .datetimepicker,
html.mmct-html-ready .daterangepicker,
html.mmct-html-ready .ui-datepicker,
html.mmct-html-ready .xdsoft_datetimepicker {
    z-index: 330000 !important;
}



/* MMCT 2.0.8 - final dropdown layer fix: no native select fallback, no duplicated fields */
html.mmct-html-ready select.selectpicker,
html.mmct-html-ready select.bs-select-hidden,
html.mmct-html-ready select.selectpicker.form-control {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html.mmct-html-ready .bootstrap-select,
html.mmct-html-ready .bootstrap-select.btn-group {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    position: relative !important;
    overflow: visible !important;
    direction: rtl !important;
}

html.mmct-html-ready .bootstrap-select > .dropdown-toggle,
html.mmct-html-ready .bootstrap-select.btn-group > .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
    border: 1px solid #dbe5f1 !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    font-size: 12.8px !important;
    font-weight: 850 !important;
    direction: rtl !important;
    text-align: right !important;
    cursor: pointer !important;
}

html.mmct-html-ready .bootstrap-select > .dropdown-toggle:hover,
html.mmct-html-ready .bootstrap-select.open > .dropdown-toggle,
html.mmct-html-ready .bootstrap-select.show > .dropdown-toggle,
html.mmct-html-ready .bootstrap-select > .dropdown-toggle:focus {
    border-color: #2f5f98 !important;
    box-shadow: 0 0 0 4px rgba(47,95,152,.10) !important;
    outline: none !important;
}

html.mmct-html-ready .bootstrap-select .filter-option,
html.mmct-html-ready .bootstrap-select .filter-option-inner,
html.mmct-html-ready .bootstrap-select .filter-option-inner-inner {
    width: 100% !important;
    text-align: right !important;
    direction: rtl !important;
    color: #0f172a !important;
    font-weight: 850 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.mmct-html-ready #wrapper,
html.mmct-html-ready #content,
html.mmct-html-ready #content > .container,
html.mmct-html-ready #content > .container-fluid,
html.mmct-html-ready #content > .container > .row,
html.mmct-html-ready #content > .container-fluid > .row,
html.mmct-html-ready .row,
html.mmct-html-ready .panel_s,
html.mmct-html-ready .panel,
html.mmct-html-ready .panel-body,
html.mmct-html-ready .panel-footer,
html.mmct-html-ready .table-responsive,
html.mmct-html-ready .dataTables_wrapper,
html.mmct-html-ready .form-group,
html.mmct-html-ready .input-group,
html.mmct-html-ready .dropdown,
html.mmct-html-ready .btn-group,
html.mmct-html-ready .bootstrap-select,
html.mmct-html-ready .bootstrap-select.btn-group {
    overflow: visible !important;
}

html.mmct-html-ready .form-group:has(.bootstrap-select.open),
html.mmct-html-ready .form-group:has(.bootstrap-select.show),
html.mmct-html-ready .input-group:has(.bootstrap-select.open),
html.mmct-html-ready .input-group:has(.bootstrap-select.show) {
    position: relative !important;
    z-index: 449990 !important;
    overflow: visible !important;
}

html.mmct-html-ready .bootstrap-select.open,
html.mmct-html-ready .bootstrap-select.show,
html.mmct-html-ready .dropdown.open,
html.mmct-html-ready .dropdown.show,
html.mmct-html-ready .btn-group.open,
html.mmct-html-ready .btn-group.show {
    position: relative !important;
    z-index: 450000 !important;
    overflow: visible !important;
}

html.mmct-html-ready .bootstrap-select.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.show > .dropdown-menu,
html.mmct-html-ready .dropdown.open > .dropdown-menu,
html.mmct-html-ready .dropdown.show > .dropdown-menu,
html.mmct-html-ready .btn-group.open > .dropdown-menu,
html.mmct-html-ready .btn-group.show > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 260px !important;
    padding: 8px !important;
    margin: 0 !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(15,23,42,.18) !important;
    z-index: 450001 !important;
    overflow: hidden !important;
    direction: rtl !important;
    text-align: right !important;
}

html.mmct-html-ready .bootstrap-select.dropup.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.dropup.show > .dropdown-menu,
html.mmct-html-ready .dropup.open > .dropdown-menu,
html.mmct-html-ready .dropup.show > .dropdown-menu {
    top: auto !important;
    bottom: calc(100% + 6px) !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu.inner,
html.mmct-html-ready .bootstrap-select.open .dropdown-menu.inner,
html.mmct-html-ready .bootstrap-select.show .dropdown-menu.inner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 244px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: transparent !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu li,
html.mmct-html-ready .dropdown-menu > li {
    display: block !important;
    width: 100% !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu li a,
html.mmct-html-ready .dropdown-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    background: transparent !important;
    font-size: 12.6px !important;
    font-weight: 850 !important;
    line-height: 1.7 !important;
    text-align: right !important;
    direction: rtl !important;
    white-space: nowrap !important;
}

html.mmct-html-ready .bootstrap-select .dropdown-menu li.selected a,
html.mmct-html-ready .bootstrap-select .dropdown-menu li a:hover,
html.mmct-html-ready .dropdown-menu > li > a:hover,
html.mmct-html-ready .dropdown-menu > .active > a,
html.mmct-html-ready .dropdown-menu > .active > a:hover {
    background: #eef4fb !important;
    color: #2f5f98 !important;
}

html.mmct-html-ready .select2-container--open,
html.mmct-html-ready .select2-dropdown,
html.mmct-html-ready .datepicker,
html.mmct-html-ready .datetimepicker,
html.mmct-html-ready .daterangepicker,
html.mmct-html-ready .ui-datepicker,
html.mmct-html-ready .xdsoft_datetimepicker {
    z-index: 460000 !important;
    direction: rtl !important;
    text-align: right !important;
}

@media (max-width: 640px) {
    html.mmct-html-ready .bootstrap-select.open > .dropdown-menu,
    html.mmct-html-ready .bootstrap-select.show > .dropdown-menu {
        max-height: 220px !important;
        border-radius: 14px !important;
    }
    html.mmct-html-ready .bootstrap-select .dropdown-menu.inner { max-height: 204px !important; }
}


/* MMCT 2.1.0 - dropdown close/open stack fix only */
html.mmct-html-ready body.mmct-has-open-dropdown #wrapper,
html.mmct-html-ready body.mmct-has-open-dropdown #content,
html.mmct-html-ready body.mmct-has-open-dropdown #content > .container,
html.mmct-html-ready body.mmct-has-open-dropdown #content > .container-fluid,
html.mmct-html-ready body.mmct-has-open-dropdown .row,
html.mmct-html-ready body.mmct-has-open-dropdown form,
html.mmct-html-ready body.mmct-has-open-dropdown [class*="col-"],
html.mmct-html-ready body.mmct-has-open-dropdown .panel_s,
html.mmct-html-ready body.mmct-has-open-dropdown .panel,
html.mmct-html-ready body.mmct-has-open-dropdown .panel-body,
html.mmct-html-ready body.mmct-has-open-dropdown .panel-footer,
html.mmct-html-ready body.mmct-has-open-dropdown .form-group,
html.mmct-html-ready body.mmct-has-open-dropdown .input-group,
html.mmct-html-ready body.mmct-has-open-dropdown .bootstrap-select,
html.mmct-html-ready body.mmct-has-open-dropdown .dropdown,
html.mmct-html-ready body.mmct-has-open-dropdown .btn-group {
    overflow: visible !important;
}
html.mmct-html-ready .mmct-dropdown-layer {
    position: relative !important;
    overflow: visible !important;
    z-index: 949000 !important;
}
html.mmct-html-ready .mmct-dropdown-active-panel {
    position: relative !important;
    overflow: visible !important;
    z-index: 949900 !important;
}
html.mmct-html-ready .mmct-dropdown-active-control,
html.mmct-html-ready .bootstrap-select.open,
html.mmct-html-ready .bootstrap-select.show,
html.mmct-html-ready .dropdown.open,
html.mmct-html-ready .dropdown.show,
html.mmct-html-ready .btn-group.open,
html.mmct-html-ready .btn-group.show {
    position: relative !important;
    overflow: visible !important;
    z-index: 950000 !important;
}
html.mmct-html-ready .bootstrap-select.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.show > .dropdown-menu,
html.mmct-html-ready .dropdown.open > .dropdown-menu,
html.mmct-html-ready .dropdown.show > .dropdown-menu,
html.mmct-html-ready .btn-group.open > .dropdown-menu,
html.mmct-html-ready .btn-group.show > .dropdown-menu,
html.mmct-html-ready .mmct-dropdown-menu-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: 286px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid #d7e2ef !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 30px 80px rgba(15,23,42,.20) !important;
    z-index: 950200 !important;
    overflow: hidden !important;
    direction: rtl !important;
    text-align: right !important;
}
html.mmct-html-ready .bootstrap-select.dropup.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.dropup.show > .dropdown-menu,
html.mmct-html-ready .dropup.open > .dropdown-menu,
html.mmct-html-ready .dropup.show > .dropdown-menu {
    top: calc(100% + 8px) !important;
    bottom: auto !important;
}
html.mmct-html-ready .bootstrap-select .dropdown-menu.inner,
html.mmct-html-ready .bootstrap-select.open .dropdown-menu.inner,
html.mmct-html-ready .bootstrap-select.show .dropdown-menu.inner {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-height: 268px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html.mmct-html-ready .bootstrap-select .dropdown-menu li a,
html.mmct-html-ready .dropdown-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 40px !important;
    width: 100% !important;
    padding: 9px 12px !important;
    border-radius: 13px !important;
    color: #1e293b !important;
    font-size: 12.7px !important;
    font-weight: 850 !important;
    line-height: 1.7 !important;
    text-align: right !important;
    direction: rtl !important;
    white-space: nowrap !important;
}
html.mmct-html-ready .bootstrap-select .dropdown-menu li.selected a,
html.mmct-html-ready .bootstrap-select .dropdown-menu li a:hover,
html.mmct-html-ready .dropdown-menu > li > a:hover,
html.mmct-html-ready .dropdown-menu > .active > a,
html.mmct-html-ready .dropdown-menu > .active > a:hover {
    background: #eef4fb !important;
    color: #285986 !important;
}
html.mmct-html-ready .select2-container--open,
html.mmct-html-ready .select2-dropdown,
html.mmct-html-ready .datepicker,
html.mmct-html-ready .datetimepicker,
html.mmct-html-ready .daterangepicker,
html.mmct-html-ready .ui-datepicker,
html.mmct-html-ready .xdsoft_datetimepicker {
    z-index: 960000 !important;
}
@media (max-width: 640px) {
    html.mmct-html-ready .bootstrap-select.open > .dropdown-menu,
    html.mmct-html-ready .bootstrap-select.show > .dropdown-menu,
    html.mmct-html-ready .mmct-dropdown-menu-visible {
        max-height: 235px !important;
        border-radius: 16px !important;
    }
    html.mmct-html-ready .bootstrap-select .dropdown-menu.inner { max-height: 218px !important; }
}


/* MMCT 2.1.0 - close safety for bootstrap-select dropdowns */
html.mmct-html-ready .bootstrap-select:not(.open):not(.show) > .dropdown-menu:not(.mmct-dropdown-menu-visible),
html.mmct-html-ready .dropdown:not(.open):not(.show) > .dropdown-menu:not(.mmct-dropdown-menu-visible),
html.mmct-html-ready .btn-group:not(.open):not(.show) > .dropdown-menu:not(.mmct-dropdown-menu-visible) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
html.mmct-html-ready .bootstrap-select.open > .dropdown-menu,
html.mmct-html-ready .bootstrap-select.show > .dropdown-menu,
html.mmct-html-ready .dropdown.open > .dropdown-menu,
html.mmct-html-ready .dropdown.show > .dropdown-menu,
html.mmct-html-ready .btn-group.open > .dropdown-menu,
html.mmct-html-ready .btn-group.show > .dropdown-menu {
    pointer-events: auto !important;
}


/* MMCT 2.1.2 - safe invoice view polish (scoped, no nested alert styling) */
html.mmct-html-ready.mmct-invoice-page {
    --mmct-invoice-ink:#162033;
    --mmct-invoice-muted:#667085;
    --mmct-invoice-line:#e6edf5;
    --mmct-invoice-soft:#f8fbff;
    --mmct-invoice-primary:#285986;
    --mmct-invoice-danger:#d92d20;
    --mmct-invoice-danger-soft:#fff5f5;
}
html.mmct-html-ready.mmct-invoice-page #content {
    color:var(--mmct-invoice-ink) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-warning,
html.mmct-html-ready.mmct-invoice-page #content > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content .container > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content .row > .alert-danger {
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:54px !important;
    padding:13px 18px !important;
    margin:0 0 18px 0 !important;
    border-radius:18px !important;
    border:1px solid #fecaca !important;
    background:linear-gradient(135deg,#fff7f7 0%,#fff1f2 100%) !important;
    color:var(--mmct-invoice-danger) !important;
    font-size:13px !important;
    font-weight:900 !important;
    letter-spacing:.01em !important;
    box-shadow:0 14px 34px rgba(217,45,32,.07) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-card,
html.mmct-html-ready.mmct-invoice-page #content .panel_s.mmct-invoice-card,
html.mmct-html-ready.mmct-invoice-page #content .panel.mmct-invoice-card {
    position:relative !important;
    overflow:hidden !important;
    border:1px solid var(--mmct-invoice-line) !important;
    border-radius:26px !important;
    background:#fff !important;
    box-shadow:0 24px 64px rgba(15,23,42,.07) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-card:before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:5px;
    background:linear-gradient(90deg,#285986,#d8a13b);
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-card-body {
    padding:36px 42px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .invoice-html,
html.mmct-html-ready.mmct-invoice-page #content .invoice_pdf_content {
    max-width:1060px !important;
    margin:0 auto !important;
    line-height:1.9 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-number,
html.mmct-html-ready.mmct-invoice-page #content .invoice-html-number {
    color:var(--mmct-invoice-ink) !important;
    font-size:23px !important;
    font-weight:950 !important;
    line-height:1.5 !important;
    letter-spacing:.01em !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-status-danger,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-status-success {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:6px 13px !important;
    border-radius:999px !important;
    font-size:11.5px !important;
    font-weight:900 !important;
    border:1px solid transparent !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-status-danger {background:#fff1f2 !important;color:#c01024 !important;border-color:#fecdd3 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-status-success {background:#ecfdf3 !important;color:#067647 !important;border-color:#bbf7d0 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-action,
html.mmct-html-ready.mmct-invoice-page #content a.btn.mmct-invoice-action,
html.mmct-html-ready.mmct-invoice-page #content button.btn.mmct-invoice-action {
    min-height:40px !important;
    padding:9px 15px !important;
    border-radius:999px !important;
    border:1px solid #d8e3ef !important;
    background:#fff !important;
    color:var(--mmct-invoice-primary) !important;
    font-size:12.5px !important;
    font-weight:900 !important;
    box-shadow:0 10px 24px rgba(15,23,42,.06) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-action:hover {
    transform:translateY(-1px) !important;
    border-color:#b7cadc !important;
    box-shadow:0 14px 32px rgba(15,23,42,.09) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-table-wrap,
html.mmct-html-ready.mmct-invoice-page #content .table-responsive:has(.mmct-invoice-items-table) {
    border-radius:20px !important;
    overflow:visible !important;
    margin:20px auto !important;
    max-width:940px !important;
}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table {
    width:100% !important;
    border-collapse:separate !important;
    border-spacing:0 10px !important;
    background:transparent !important;
}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table thead th {
    background:#2f4156 !important;
    color:#dbe6f2 !important;
    border:0 !important;
    padding:13px 16px !important;
    font-size:12px !important;
    font-weight:900 !important;
    text-align:center !important;
}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table thead th:first-child {border-radius:0 14px 14px 0 !important;}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table thead th:last-child {border-radius:14px 0 0 14px !important;}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table tbody td {
    background:#fff !important;
    border-top:1px solid #e7eef6 !important;
    border-bottom:1px solid #e7eef6 !important;
    padding:16px !important;
    color:#243447 !important;
    font-size:13px !important;
    font-weight:800 !important;
    text-align:center !important;
    box-shadow:0 10px 24px rgba(15,23,42,.035) !important;
}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table tbody tr td:first-child {border-right:1px solid #e7eef6 !important;border-radius:0 16px 16px 0 !important;}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table tbody tr td:last-child {border-left:1px solid #e7eef6 !important;border-radius:16px 0 0 16px !important;}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-summary-table {
    width:min(100%,520px) !important;
    margin:18px 0 0 auto !important;
    border-collapse:separate !important;
    border-spacing:0 10px !important;
}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-summary-table td {
    background:#fff !important;
    border-top:1px solid #e7eef6 !important;
    border-bottom:1px solid #e7eef6 !important;
    padding:14px 16px !important;
    font-size:13px !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-summary-table td:first-child {border-right:1px solid #e7eef6 !important;border-radius:0 15px 15px 0 !important;color:var(--mmct-invoice-muted) !important;}
html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-summary-table td:last-child {border-left:1px solid #e7eef6 !important;border-radius:15px 0 0 15px !important;color:var(--mmct-invoice-ink) !important;}
html.mmct-html-ready.mmct-invoice-page #content .panel_s:not(.mmct-invoice-card),
html.mmct-html-ready.mmct-invoice-page #content .panel:not(.mmct-invoice-card) {
    border-color:#e7eef6 !important;
    border-radius:22px !important;
}
@media (max-width:991px){
    html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-card-body {padding:24px 18px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-number,
    html.mmct-html-ready.mmct-invoice-page #content .invoice-html-number {font-size:18px !important;text-align:center !important;}
    html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-summary-table {width:100% !important;margin:14px 0 0 !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-table-wrap {overflow-x:auto !important;}
    html.mmct-html-ready.mmct-invoice-page #content table.mmct-invoice-items-table {min-width:720px !important;}
}


/* MMCT 2.1.3 - Premium modern invoice view, scoped only to client invoice pages */
html.mmct-html-ready.mmct-invoice-page {
    --mmct-mi-navy:#10233d;
    --mmct-mi-navy-2:#18395f;
    --mmct-mi-ink:#172033;
    --mmct-mi-muted:#667085;
    --mmct-mi-line:#e5edf6;
    --mmct-mi-soft:#f8fbff;
    --mmct-mi-danger:#d92d20;
    --mmct-mi-danger-soft:#fff3f3;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-source-hidden,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-hidden-action,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-stray-hidden {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}
html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {
    width:min(100%, 1320px) !important;
    margin:0 auto 34px !important;
    padding:34px 36px 30px !important;
    border-radius:30px !important;
    border:1px solid rgba(226,232,240,.96) !important;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
    box-shadow:0 26px 70px rgba(15,23,42,.10) !important;
    color:var(--mmct-mi-ink) !important;
    position:relative !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice:before {
    content:'' !important;
    position:absolute !important;
    inset:0 0 auto 0 !important;
    height:5px !important;
    background:linear-gradient(90deg,var(--mmct-mi-navy),#2a5c8d,#dba94d) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice * {
    box-sizing:border-box !important;
    font-family:"IRANSansX",Tahoma,Arial,sans-serif !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice-top {
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:24px !important;
    margin:4px 0 22px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title {
    text-align:right !important;
    margin-right:auto !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title span {
    display:block !important;
    font-size:28px !important;
    line-height:1.4 !important;
    font-weight:900 !important;
    color:var(--mmct-mi-ink) !important;
    margin-bottom:6px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title strong {
    display:block !important;
    direction:ltr !important;
    text-align:right !important;
    font-size:27px !important;
    line-height:1.2 !important;
    font-weight:900 !important;
    letter-spacing:.3px !important;
    color:var(--mmct-mi-navy) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert {
    display:inline-flex !important;
    align-items:center !important;
    gap:10px !important;
    padding:13px 17px !important;
    border-radius:14px !important;
    background:var(--mmct-mi-danger-soft) !important;
    border:1px solid #ffc8c8 !important;
    color:var(--mmct-mi-danger) !important;
    font-size:14px !important;
    font-weight:900 !important;
    white-space:nowrap !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert i {font-size:18px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta {
    width:76% !important;
    margin:0 0 24px auto !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    border:1px solid var(--mmct-mi-line) !important;
    border-radius:18px !important;
    background:#fff !important;
    overflow:hidden !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div {
    min-height:78px !important;
    display:grid !important;
    grid-template-columns:38px 1fr !important;
    align-items:center !important;
    gap:8px !important;
    padding:16px 18px !important;
    border-left:1px solid var(--mmct-mi-line) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div:last-child {border-left:0 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta i {
    grid-row:1 / span 2 !important;
    width:34px !important;
    height:34px !important;
    border-radius:12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f2f6fb !important;
    color:var(--mmct-mi-navy-2) !important;
    font-size:16px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta .fa-circle {
    color:var(--mmct-mi-danger) !important;
    font-size:9px !important;
    background:#fff1f2 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue span {
    color:var(--mmct-mi-muted) !important;
    font-size:12px !important;
    line-height:1.7 !important;
    font-weight:800 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta strong {
    color:var(--mmct-mi-ink) !important;
    font-size:14px !important;
    line-height:1.4 !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-danger {
    display:inline-flex !important;
    justify-self:start !important;
    padding:5px 11px !important;
    border-radius:999px !important;
    background:#fff1f2 !important;
    border:1px solid #fecdd3 !important;
    color:#c01024 !important;
    font-size:12px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px !important;
    margin:0 0 20px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article {
    border:1px solid var(--mmct-mi-line) !important;
    border-radius:18px !important;
    background:#fff !important;
    padding:22px 22px 18px !important;
    min-height:220px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties header {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    margin:0 0 16px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties header i {
    width:34px !important;
    height:34px !important;
    border-radius:12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f2f6fb !important;
    color:var(--mmct-mi-navy-2) !important;
    font-size:17px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties h3 {
    margin:0 !important;
    color:var(--mmct-mi-ink) !important;
    font-size:16px !important;
    line-height:1.5 !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {
    display:grid !important;
    grid-template-columns:112px 1fr !important;
    gap:12px !important;
    align-items:start !important;
    margin:0 0 10px !important;
    color:var(--mmct-mi-ink) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div strong {
    color:#2f3b52 !important;
    font-size:13px !important;
    line-height:1.9 !important;
    font-weight:800 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items {
    border:1px solid var(--mmct-mi-line) !important;
    border-radius:18px !important;
    background:#fff !important;
    overflow:hidden !important;
    margin:6px 0 22px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items table {
    width:100% !important;
    margin:0 !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
    table-layout:fixed !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items thead th {
    background:linear-gradient(135deg,var(--mmct-mi-navy),#18385e) !important;
    color:#fff !important;
    padding:16px 14px !important;
    text-align:center !important;
    border:0 !important;
    font-size:13px !important;
    line-height:1.7 !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items tbody td {
    background:#fff !important;
    padding:18px 14px !important;
    text-align:center !important;
    border-top:1px solid var(--mmct-mi-line) !important;
    color:var(--mmct-mi-ink) !important;
    font-size:14px !important;
    line-height:1.7 !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer {
    display:grid !important;
    grid-template-columns:1.1fr .9fr !important;
    gap:18px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue {
    min-height:132px !important;
    border:1px solid var(--mmct-mi-line) !important;
    border-radius:18px !important;
    background:#fff !important;
    padding:20px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total {
    display:grid !important;
    grid-template-columns:70px 1fr !important;
    gap:18px !important;
    align-items:center !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-icon,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue > i {
    width:58px !important;
    height:58px !important;
    border-radius:18px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#edf3fa !important;
    color:var(--mmct-mi-navy) !important;
    font-size:24px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines p {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    margin:0 0 10px !important;
    padding:0 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines strong {
    color:var(--mmct-mi-ink) !important;
    font-size:14px !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand {
    margin-top:12px !important;
    padding-top:14px !important;
    border-top:1px solid var(--mmct-mi-line) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand strong {
    color:var(--mmct-mi-ink) !important;
    font-size:17px !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:18px !important;
    background:linear-gradient(135deg,#fff 0%,#fff7f7 100%) !important;
    border-color:#ffd6d6 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue strong {
    display:block !important;
    margin-top:8px !important;
    color:var(--mmct-mi-danger) !important;
    font-size:26px !important;
    line-height:1.35 !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue > i {
    background:#ffe5e5 !important;
    color:var(--mmct-mi-danger) !important;
}
@media (max-width:1199px) {
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta {width:100% !important;}
}
@media (max-width:991px) {
    html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {padding:22px 16px !important;border-radius:24px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice-top,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer {grid-template-columns:1fr !important;display:grid !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title {margin:0 !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties {grid-template-columns:1fr !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items {overflow-x:auto !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items table {min-width:760px !important;}
}
@media (max-width:640px) {
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title span {font-size:22px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title strong {font-size:21px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert {width:100% !important;justify-content:center !important;white-space:normal !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {grid-template-columns:92px 1fr !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total {grid-template-columns:1fr !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue strong {font-size:22px !important;}
}

/* MMCT 2.1.4 - refined modern invoice view */
html.mmct-html-ready.mmct-invoice-page #content > .alert,
html.mmct-html-ready.mmct-invoice-page #content > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content .container > .alert,
html.mmct-html-ready.mmct-invoice-page #content .container > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content .row > .alert,
html.mmct-html-ready.mmct-invoice-page #content .row > .alert-danger {
    display:none !important;
}
html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {
    width:min(100%,1320px) !important;
    margin:0 auto 34px !important;
    padding:30px 34px 28px !important;
    border-radius:32px !important;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;
    border:1px solid #e6edf6 !important;
    box-shadow:0 24px 60px rgba(16,35,61,.08) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice:before {
    height:4px !important;
    background:linear-gradient(90deg,#17375c 0%,#275b8f 45%,#cfa247 100%) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice * {font-family:"IRANSansX",Tahoma,Arial,sans-serif !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice-top {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:start !important;
    gap:18px !important;
    margin:4px 0 22px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title {margin:0 !important;text-align:right !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title span {
    display:block !important;
    margin:0 0 6px !important;
    font-size:15px !important;
    color:#52627a !important;
    font-weight:800 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title strong {
    display:block !important;
    margin:0 0 6px !important;
    font-size:21px !important;
    line-height:1.25 !important;
    font-weight:900 !important;
    color:#10233d !important;
    direction:ltr !important;
    text-align:right !important;
    letter-spacing:.2px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title small {
    display:block !important;
    font-size:12px !important;
    color:#7b8798 !important;
    line-height:1.9 !important;
    font-weight:700 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-top-side {
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    align-items:flex-end !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding:10px 14px !important;
    border-radius:14px !important;
    background:#fff4f2 !important;
    border:1px solid #ffd7d2 !important;
    color:#d63d2e !important;
    font-size:13px !important;
    font-weight:900 !important;
    white-space:nowrap !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-svg {
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    border-radius:12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#eef4fb !important;
    color:#204467 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-svg svg {
    width:18px !important;
    height:18px !important;
    display:block !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert .mmct-modern-svg {
    background:#ffe5e2 !important;
    color:#d63d2e !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-download {
    display:inline-flex !important;
    align-items:center !important;
    gap:10px !important;
    padding:12px 16px !important;
    border-radius:14px !important;
    border:1px solid #d9e4f1 !important;
    background:#fff !important;
    color:#17375c !important;
    font-size:13px !important;
    font-weight:900 !important;
    cursor:pointer !important;
    box-shadow:0 10px 24px rgba(16,35,61,.06) !important;
    transition:all .2s ease !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-download:hover {
    transform:translateY(-1px) !important;
    border-color:#b9cfe6 !important;
    background:#f8fbff !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-download.is-loading {opacity:.8 !important;pointer-events:none !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta {
    width:100% !important;
    margin:0 0 22px !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:14px !important;
    border:0 !important;
    background:transparent !important;
    overflow:visible !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div {
    min-height:92px !important;
    padding:16px 18px !important;
    border:1px solid #e6edf6 !important;
    border-radius:18px !important;
    background:#ffffff !important;
    display:grid !important;
    grid-template-columns:42px 1fr !important;
    gap:10px !important;
    align-items:center !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div:last-child {border-left:1px solid #e6edf6 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta .mmct-modern-svg {grid-row:1 / span 2 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue span {
    color:#708196 !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1.75 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta strong {
    color:#16263e !important;
    font-size:14px !important;
    font-weight:900 !important;
    line-height:1.55 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-danger {
    display:inline-flex !important;
    justify-self:start !important;
    align-items:center !important;
    padding:6px 12px !important;
    border-radius:999px !important;
    background:#fff1f2 !important;
    color:#c9193c !important;
    border:1px solid #ffd0d7 !important;
    font-size:12px !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px !important;
    margin:0 0 22px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article {
    padding:20px 22px 16px !important;
    border-radius:22px !important;
    border:1px solid #e6edf6 !important;
    background:linear-gradient(180deg,#fff 0%,#fcfdff 100%) !important;
    min-height:236px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties header {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    margin:0 0 18px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties h3 {
    margin:0 !important;
    font-size:15px !important;
    font-weight:900 !important;
    color:#16263e !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {grid-template-columns:108px 1fr !important;gap:12px !important;margin:0 0 10px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div strong {
    color:#243650 !important;
    font-size:13px !important;
    line-height:1.9 !important;
    font-weight:800 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items {
    margin:4px 0 22px !important;
    border:1px solid #e6edf6 !important;
    border-radius:20px !important;
    overflow:hidden !important;
    background:#fff !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items thead th {
    padding:15px 14px !important;
    background:linear-gradient(135deg,#17375c 0%,#244a72 100%) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items tbody td {
    padding:17px 14px !important;
    background:#fff !important;
    color:#1e2e47 !important;
    font-size:13px !important;
    font-weight:800 !important;
    border-top:1px solid #edf2f7 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer {
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:18px !important;
    align-items:stretch !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue {
    min-height:150px !important;
    padding:22px !important;
    border:1px solid #e6edf6 !important;
    border-radius:22px !important;
    background:#fff !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total {
    display:grid !important;
    grid-template-columns:62px 1fr !important;
    gap:16px !important;
    align-items:start !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-icon,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue-icon {
    width:54px !important;
    height:54px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-icon .mmct-modern-svg,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue-icon .mmct-modern-svg {
    width:54px !important;height:54px !important;border-radius:16px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines p {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    margin:0 0 10px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines strong {
    color:#16263e !important;
    font-size:14px !important;
    font-weight:900 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand {
    margin-top:12px !important;
    padding-top:14px !important;
    border-top:1px dashed #dbe5ef !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand strong {
    font-size:16px !important;
    color:#10233d !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue {
    display:grid !important;
    grid-template-columns:58px 1fr !important;
    gap:16px !important;
    align-items:start !important;
    background:linear-gradient(180deg,#fff9f9 0%,#fff 100%) !important;
    border-color:#ffdfe0 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue-icon .mmct-modern-svg {background:#ffe7e8 !important;color:#d92d20 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue strong {
    display:block !important;
    margin-top:8px !important;
    color:#d92d20 !important;
    font-size:24px !important;
    font-weight:900 !important;
    line-height:1.35 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue small {
    display:block !important;
    margin-top:10px !important;
    color:#8b97a7 !important;
    font-size:11px !important;
    line-height:1.8 !important;
    font-weight:700 !important;
}
@media (max-width:991px) {
    html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {padding:22px 16px 20px !important;border-radius:24px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice-top,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta {grid-template-columns:1fr !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-top-side {align-items:stretch !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-download,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert {width:100% !important;justify-content:center !important;}
}
@media (max-width:640px) {
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title span {font-size:14px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title strong {font-size:18px !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {grid-template-columns:92px 1fr !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items {overflow-x:auto !important;}
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items table {min-width:690px !important;}
}


/* MMCT 2.1.5 - compact invoice refinements */
html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {
    width:min(100%,1280px) !important;
    margin:0 auto 24px !important;
    padding:24px 26px 22px !important;
    border-radius:28px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice:before {height:3px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice-top {gap:14px !important;margin:0 0 16px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title span {font-size:13px !important;margin-bottom:4px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title strong {font-size:18px !important;margin-bottom:4px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title small {font-size:11px !important;line-height:1.7 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-top-side {gap:8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert {padding:8px 12px !important;border-radius:12px !important;font-size:12px !important;gap:8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-svg {width:30px !important;height:30px !important;min-width:30px !important;border-radius:10px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-svg svg {width:15px !important;height:15px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-download {padding:10px 14px !important;border-radius:12px !important;font-size:12px !important;gap:8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta {margin:0 0 16px !important;gap:10px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div {min-height:78px !important;padding:12px 14px !important;border-radius:16px !important;grid-template-columns:34px 1fr !important;gap:8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue span {font-size:10px !important;line-height:1.6 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta strong {font-size:13px !important;line-height:1.45 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-danger {padding:5px 10px !important;font-size:11px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties {gap:14px !important;margin:0 0 16px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article {padding:16px 18px 12px !important;border-radius:18px !important;min-height:auto !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties header {margin:0 0 12px !important;gap:8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties h3 {font-size:14px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {grid-template-columns:88px 1fr !important;gap:10px !important;margin:0 0 8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div strong {font-size:12.5px !important;line-height:1.75 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items {margin:0 0 16px !important;border-radius:18px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items thead th {padding:12px 12px !important;font-size:11px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items tbody td {padding:13px 12px !important;font-size:12.5px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer {gap:14px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue {min-height:126px !important;padding:16px 18px !important;border-radius:18px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total {grid-template-columns:46px 1fr !important;gap:12px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-icon,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue-icon {width:42px !important;height:42px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-icon .mmct-modern-svg,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue-icon .mmct-modern-svg {width:42px !important;height:42px !important;border-radius:12px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines p {margin:0 0 8px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-total-lines strong {font-size:13px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand {margin-top:8px !important;padding-top:10px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-grand strong {font-size:14px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue {grid-template-columns:46px 1fr !important;gap:12px !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue strong {margin-top:6px !important;font-size:18px !important;line-height:1.3 !important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-overdue small {margin-top:8px !important;font-size:10px !important;line-height:1.65 !important;}
@media (max-width:991px) {
  html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
  html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {padding:18px 14px 16px !important;border-radius:22px !important;}
}
@media (max-width:640px) {
  html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-title strong {font-size:16px !important;}
  html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {grid-template-columns:78px 1fr !important;}
}


/* MMCT 2.1.6 - invoice alignment and overdue cleanup */
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article * {
    text-align:right !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div {
    display:grid !important;
    align-items:start !important;
    justify-items:start !important;
    direction:rtl !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div span,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div strong {
    display:block !important;
    width:100% !important;
    text-align:right !important;
    justify-self:stretch !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div strong {
    line-height:2 !important;
    font-weight:700 !important;
}
html.mmct-html-ready.mmct-invoice-page #content > .alert,
html.mmct-html-ready.mmct-invoice-page #content > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content > .alert-warning,
html.mmct-html-ready.mmct-invoice-page #content .container > .alert,
html.mmct-html-ready.mmct-invoice-page #content .container > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content .container > .alert-warning,
html.mmct-html-ready.mmct-invoice-page #content .row > .alert,
html.mmct-html-ready.mmct-invoice-page #content .row > .alert-danger,
html.mmct-html-ready.mmct-invoice-page #content .row > .alert-warning,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-source-hidden,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-stray-hidden {
    display:none !important;
}


/* MMCT 2.1.7 - invoice cleanup */
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article strong,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article span {
    text-align:right !important;
}
html.mmct-html-ready.mmct-invoice-page #content > .mmct-invoice-source-hidden,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-source-hidden {
    display:none !important;
}

/* MMCT 2.2.1 - payment button action fix */
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-pay {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding:12px 16px !important;
    border-radius:14px !important;
    border:1px solid #bfe6cf !important;
    background:linear-gradient(135deg,#16a34a 0%,#22c55e 100%) !important;
    color:#fff !important;
    font-size:13px !important;
    font-weight:900 !important;
    text-decoration:none !important;
    box-shadow:0 14px 28px rgba(22,163,74,.16) !important;
    transition:all .2s ease !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-pay:hover {
    transform:translateY(-1px) !important;
    color:#fff !important;
    box-shadow:0 18px 34px rgba(22,163,74,.22) !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-pay .mmct-modern-svg {
    background:rgba(255,255,255,.18) !important;
    color:#fff !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert-soft {
    background:#f6f9fd !important;
    border-color:#dbe8f5 !important;
    color:#285986 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-alert-soft .mmct-modern-svg {
    background:#eaf2fb !important;
    color:#285986 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-danger.mmct-status-paid {
    background:#ecfdf3 !important;
    color:#067647 !important;
    border-color:#bbf7d0 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-danger.mmct-status-unpaid {
    background:#fff7ed !important;
    color:#c2410c !important;
    border-color:#fed7aa !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-danger.mmct-status-overdue {
    background:#fff1f2 !important;
    color:#c9193c !important;
    border-color:#ffd0d7 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer .mmct-modern-overdue:not(:has(.mmct-status-overdue)) {
    border-color:#e6edf6 !important;
}
@media (max-width:991px){
  html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-pay {width:100% !important;}
}

/* MMCT 2.2.1 - pay button as real button */

html.mmct-html-ready.mmct-invoice-page #content button.mmct-modern-pay {
    cursor:pointer !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    outline:none !important;
}
html.mmct-html-ready.mmct-invoice-page #content button.mmct-modern-pay:focus {
    box-shadow:0 0 0 4px rgba(34,197,94,.18),0 14px 28px rgba(22,163,74,.16) !important;
}


/* MMCT 2.2.2 - payment and local font safety */
html.mmct-html-ready body.mmct-is-loading .mmct-modern-pay,
html.mmct-html-ready .mmct-modern-pay { pointer-events:auto !important; }
html.mmct-html-ready .mmct-modern-pay.mmct-pay-working { opacity:.92 !important; }
html.mmct-html-ready .mmct-modern-pay.mmct-pay-working:after { content:'در حال انتقال...'; margin-right:8px; font-size:11px; font-weight:800; }


/* MMCT 2.2.3 - invoice payment method and buttons */
html.mmct-html-ready .mmct-modern-pay.mmct-pay-working:after{content:none!important;display:none!important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-top-side{align-items:stretch!important;min-width:245px!important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions .mmct-modern-pay,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions .mmct-modern-download{margin:0!important;min-height:44px!important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-payment-methods{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 13px!important;border-radius:14px!important;border:1px solid #dbe7f3!important;background:#f8fbff!important;color:#17375c!important;box-shadow:0 10px 22px rgba(16,35,61,.04)!important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-payment-methods span{font-size:11px!important;font-weight:800!important;color:#6f7f93!important;white-space:nowrap!important;}
html.mmct-html-ready.mmct-invoice-page #content .mmct-payment-methods strong{font-size:12px!important;font-weight:900!important;color:#10233d!important;text-align:left!important;line-height:1.7!important;}
@media(max-width:991px){html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions{justify-content:stretch!important}html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions .mmct-modern-pay,html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions .mmct-modern-download{width:100%!important;justify-content:center!important}.mmct-payment-methods{width:100%!important}}


/* MMCT 2.2.4 - local IRANSansX final force, without breaking icons */
@font-face{
    font-family:'IRANSansX';
    src:url('../fonts/iransans/IRANSansX-Regular.woff') format('woff');
    font-weight:400;
    font-style:normal;
    font-display:swap;
}
html.mmct-html-ready,
html.mmct-html-ready body,
html.mmct-html-ready body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.glyphicon):not([class^="glyphicon-"]):not([class*=" glyphicon-"]):not(i),
html.mmct-html-ready input,
html.mmct-html-ready textarea,
html.mmct-html-ready select,
html.mmct-html-ready button,
html.mmct-html-ready table,
html.mmct-html-ready .btn,
html.mmct-html-ready .dropdown-menu{
    font-family:'IRANSansX',Tahoma,Arial,sans-serif !important;
}
html.mmct-html-ready .fa,
html.mmct-html-ready [class^="fa-"],
html.mmct-html-ready [class*=" fa-"]{
    font-family:FontAwesome !important;
    font-style:normal !important;
    font-weight:normal !important;
}
html.mmct-html-ready .glyphicon,
html.mmct-html-ready [class^="glyphicon-"],
html.mmct-html-ready [class*=" glyphicon-"]{
    font-family:'Glyphicons Halflings' !important;
    font-style:normal !important;
    font-weight:normal !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-top-side{
    align-items:flex-start !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:10px !important;
    justify-content:flex-start !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-pay,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-download{
    min-height:44px !important;
}
html.mmct-html-ready .mmct-modern-pay.mmct-pay-working:after{content:none!important;display:none!important;}


/* MMCT 2.2.5 - invoice status cleanup, one-line status and Persian digits polish */
html.mmct-html-ready.mmct-invoice-page #content .invoice-html-status,
html.mmct-html-ready.mmct-invoice-page #content .s-status,
html.mmct-html-ready.mmct-invoice-page #content [class*="invoice-status-"] {
    display:none !important;
}
html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice .mmct-modern-danger,
html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice .mmct-modern-status,
html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice [class*="mmct-status-"] {
    display:inline-flex !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div:nth-child(3) {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    grid-template-columns:none !important;
    min-height:62px !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div:nth-child(3) .mmct-modern-svg {
    order:3 !important;
    margin:0 !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div:nth-child(3) > span {
    order:2 !important;
    margin:0 !important;
    white-space:nowrap !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta > div:nth-child(3) > strong {
    order:1 !important;
    margin:0 !important;
    white-space:nowrap !important;
}
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div strong:empty,
html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties article div:has(strong:empty){
    display:none !important;
}


/* MMCT 2.2.7 - stable scroll for absolute inner layout */
html.mmct-html-ready.mmct-inner-page,
html.mmct-html-ready.mmct-inner-page body {
    overflow-x:hidden !important;
    overflow-y:auto !important;
    min-height:100vh !important;
    height:auto !important;
    scroll-behavior:auto !important;
}
html.mmct-html-ready.mmct-inner-page #mmct-scroll-spacer {
    display:block !important;
    width:1px !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    clear:both !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}
html.mmct-html-ready.mmct-inner-page footer.footer {
    position:relative !important;
    z-index:1 !important;
}
@media (max-width:991px){
    html.mmct-html-ready.mmct-inner-page #mmct-scroll-spacer{display:none!important;height:0!important;min-height:0!important;}
}

/* MMCT 2.2.8 - safe right gap and bottom scroll space */
html.mmct-html-ready.mmct-inner-page body>#wrapper{
    right:calc(var(--mmct-right) + 18px) !important;
    left:calc(var(--mmct-left) + 4px) !important;
    padding-bottom:140px !important;
}
html.mmct-html-ready.mmct-inner-page .mmct-header{
    right:calc(var(--mmct-right) + 18px) !important;
}
html.mmct-html-ready.mmct-inner-page #content{
    padding-bottom:90px !important;
}
html.mmct-html-ready.mmct-inner-page #content > .container:last-child,
html.mmct-html-ready.mmct-inner-page #content > .container-fluid:last-child{
    margin-bottom:80px !important;
}
@media (max-width:991px){
    html.mmct-html-ready.mmct-inner-page body>#wrapper{right:auto!important;left:auto!important;padding-bottom:70px!important;}
    html.mmct-html-ready.mmct-inner-page .mmct-header{right:76px!important;}
}

/* MMCT 2.2.9 - stable desktop safe gap near sidebar */
@media (min-width: 992px) {
    html.mmct-html-ready.mmct-inner-page {
        --mmct-safe-right: calc(var(--mmct-sidebar-w) + 96px);
        --mmct-safe-left: 32px;
    }
    html.mmct-html-ready.mmct-inner-page,
    html.mmct-html-ready.mmct-inner-page body {
        overflow-x: hidden !important;
    }
    html.mmct-html-ready.mmct-inner-page body>#wrapper {
        right: var(--mmct-safe-right) !important;
        left: var(--mmct-safe-left) !important;
        width: auto !important;
        max-width: calc(100vw - var(--mmct-safe-right) - var(--mmct-safe-left)) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-bottom: 220px !important;
        overflow: visible !important;
    }
    html.mmct-html-ready.mmct-inner-page .mmct-header {
        right: var(--mmct-safe-right) !important;
        left: var(--mmct-safe-left) !important;
        width: auto !important;
        max-width: calc(100vw - var(--mmct-safe-right) - var(--mmct-safe-left)) !important;
        box-sizing: border-box !important;
    }
    html.mmct-html-ready.mmct-inner-page body>#wrapper>#content,
    html.mmct-html-ready.mmct-inner-page #wrapper #content,
    html.mmct-html-ready.mmct-inner-page #content > .container,
    html.mmct-html-ready.mmct-inner-page #content > .container-fluid,
    html.mmct-html-ready.mmct-inner-page #content > .container > .row,
    html.mmct-html-ready.mmct-inner-page #content > .container-fluid > .row {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    html.mmct-html-ready.mmct-inner-page #content:after {
        content: '' !important;
        display: block !important;
        height: 120px !important;
        clear: both !important;
    }
}
@media (min-width: 992px) and (max-width: 1280px) {
    html.mmct-html-ready.mmct-inner-page {
        --mmct-safe-right: calc(var(--mmct-sidebar-w) + 72px);
        --mmct-safe-left: 22px;
    }
}


/* MMCT 2.3.0 - invoice safe viewport, no outside invoice text, notifications z-index */
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-source-hidden,
html.mmct-html-ready.mmct-invoice-page #content .mmct-invoice-stray-hidden,
html.mmct-html-ready.mmct-invoice-page.mmct-modern-invoice-rendered #content > .invoice-html-status,
html.mmct-html-ready.mmct-invoice-page.mmct-modern-invoice-rendered #content > .s-status {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}
@media (min-width: 992px) {
    html.mmct-html-ready.mmct-inner-page {
        --mmct-safe-right: calc(var(--mmct-sidebar-w) + 150px);
        --mmct-safe-left: 48px;
    }
    html.mmct-html-ready.mmct-inner-page body {
        padding-right:0 !important;
        overflow-x:hidden !important;
    }
    html.mmct-html-ready.mmct-inner-page body>#wrapper {
        right:var(--mmct-safe-right) !important;
        left:var(--mmct-safe-left) !important;
        max-width:calc(100vw - var(--mmct-safe-right) - var(--mmct-safe-left)) !important;
        padding-bottom:260px !important;
        overflow:visible !important;
    }
    html.mmct-html-ready.mmct-inner-page .mmct-header {
        right:var(--mmct-safe-right) !important;
        left:var(--mmct-safe-left) !important;
        max-width:calc(100vw - var(--mmct-safe-right) - var(--mmct-safe-left)) !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content #mmct-modern-invoice,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-invoice {
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        margin-right:0 !important;
        margin-left:0 !important;
        box-sizing:border-box !important;
        transform:none !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items table,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-footer,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-parties,
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-meta {
        max-width:100% !important;
        min-width:0 !important;
        box-sizing:border-box !important;
    }
    html.mmct-html-ready.mmct-invoice-page #content .mmct-modern-items { overflow-x:auto !important; }
}
@media (min-width: 992px) and (max-width: 1400px) {
    html.mmct-html-ready.mmct-inner-page {
        --mmct-safe-right: calc(var(--mmct-sidebar-w) + 130px);
        --mmct-safe-left: 34px;
    }
}
/* Perfex/Bootstrap notification layers must always appear above module cards/header/sidebar */
#pnotify,
.ui-pnotify,
.ui-pnotify-container,
.ui-pnotify-closer,
.ui-pnotify-sticker,
.pnotify,
.pnotify-container,
.toast,
.toast-container,
.toast-top-right,
.toast-top-left,
#toast-container,
.alertify,
.alertify-notifier,
.alertify-notifier .ajs-message,
.notifyjs-corner,
.notifyjs-wrapper,
.bootstrap-growl,
.notifications,
.notification-wrapper,
.notification-box,
.jGrowl,
#jGrowl,
.noty_bar,
.noty_body,
.noty_layout,
.noty_layout_mixin,
.noty_close_button {
    z-index: 2147483000 !important;
}
.ui-pnotify,
.pnotify,
.toast-container,
#toast-container,
.alertify-notifier,
.notifyjs-corner,
.bootstrap-growl,
.jGrowl,
#jGrowl,
.noty_layout,
.noty_layout_mixin {
    position: fixed !important;
}
html.mmct-html-ready .modal,
html.mmct-html-ready .modal-backdrop {
    z-index: 2147482000 !important;
}
html.mmct-html-ready .popover,
html.mmct-html-ready .tooltip {
    z-index: 2147481000 !important;
}
