/* ShortCoded display layer: native layout, form names and table rails are retained. */
:root { --shortcoded-navy: #0b2033; --shortcoded-teal: #087f83; --shortcoded-hover: #06696d; --shortcoded-border: #d8e5eb; }
body { color: #102a43; background: #f5f8fa; }
html[lang="ar"] body { font-family: Tahoma, Arial, sans-serif; }
.side-bar { background: var(--shortcoded-navy); width: 300px; padding: 0 16px; }
.side-bar-logo { padding: 18px 0; }
.side-bar-logo a { display: block; background: #fff; padding: 12px; border-radius: 8px; }
.side-bar-logo img { display: block; max-width: 100%; max-height: 90px; margin: auto; object-fit: contain; }
.shortcoded-login-logo { display: block; max-width: 215px; max-height: 84px; margin: 0 auto 16px; object-fit: contain; }
.theme-btn, .search-btn, .mybazar-login-section .login-btn,
.side-bar-manu li:hover > a, .side-bar-manu li.active > a,
.side-bar-manu .dropdown.active .active,
.side-bar-manu .dropdown.active > .dropdown-menu .dropdown.active > a,
.nav-pills .nav-link.active { background-color: var(--shortcoded-teal); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: min(210px, 100%); max-width: 100%; min-height: 42px; color: #fff; line-height: 1.5; vertical-align: middle; }
.theme-btn:not(:disabled):not([aria-disabled="true"]):hover { background-color: var(--shortcoded-hover); color: #fff; }
/* Cancel is an enabled secondary action; it must not inherit the primary fill. */
.theme-btn.border-btn { background: #fff; color: var(--shortcoded-navy); border: 1px solid #607a8b; }
.theme-btn.border-btn:not(:disabled):not([aria-disabled="true"]):hover { background: #edf6f6; color: #075c67; border-color: var(--shortcoded-teal); }
.theme-btn:focus-visible, .search-btn:focus-visible, .sidebar-opner:focus-visible, .close-btn:focus-visible { outline: 3px solid var(--shortcoded-teal) !important; outline-offset: 3px; }
.theme-btn:disabled, .theme-btn[aria-disabled="true"] { background: #e7edf0; color: #536777; border: 1px solid #b5c4cd; cursor: not-allowed; }
.nav-link, .text-primary, .custom-warning-color { color: var(--shortcoded-teal) !important; }
.table-header .button-group { border-color: var(--shortcoded-teal); }
.table-header .button-group a.active { background: var(--shortcoded-teal) !important; color: #fff !important; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff !important; }
.sidebar-opner { border: 0; background: transparent; padding: 6px; margin: 0; }
.header-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.shortcoded-language { display: inline-flex; flex-shrink: 0; border: 1px solid #b6ccd2; border-radius: 7px; overflow: hidden; }
.shortcoded-language form { margin: 0; }
.shortcoded-language button { background: #fff; color: var(--shortcoded-navy); border: 0; padding: 7px 10px; line-height: 1.4; font-size: 14px; }
.shortcoded-language .is-current { background: var(--shortcoded-teal); color: #fff; }
.shortcoded-language button:focus-visible, .shortcoded-menu-button:focus-visible { outline: 2px solid var(--shortcoded-teal); outline-offset: -3px; }
.shortcoded-guest-language { display: flex; justify-content: flex-end; padding: 18px 22px 0; }
.shortcoded-login-as-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #e8f4f4; padding: 10px 24px; border-bottom: 1px solid #b6d4d8; }
.shortcoded-login-as-banner form { margin: 0; }
.shortcoded-menu-button { border: 0; background: none; color: inherit; font: inherit; padding: 6px 15px; text-align: start; width: 100%; display: flex; align-items: center; gap: 6px; }
.shortcoded-menu-button:hover { background: #edf6f6; }
.side-bar-manu li a { gap: 12px; padding: 10px 12px; min-height: 44px; white-space: normal; overflow-wrap: anywhere; font-size: 15px; text-align: start; }
.side-bar-manu .dropdown > a { padding-inline-end: 30px; }
.side-bar-manu .shortcoded-sidebar-label { flex: 1 1 auto; min-width: 0; line-height: 1.55; }
.side-bar .side-bar-manu li a .sidebar-icon,
html[dir="rtl"] .side-bar .side-bar-manu li a .sidebar-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; position: static; }
.side-bar .sidebar-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.side-bar-manu li a > i { margin: 0; flex-shrink: 0; }
.side-bar-manu li a:focus-visible, .side-bar-logo a:focus-visible { outline: 2px solid #fff !important; outline-offset: -3px; }
.main-header-section .profile-info .dropdown-menu li a { display: flex; align-items: center; gap: 10px; }
.main-header-section .profile-info .dropdown-menu li a > i { margin: 0; flex: 0 0 18px; text-align: center; }
.main-header-section .dropdown-menu { text-align: start; }
.table-header, .table-top-form, .button-group { min-width: 0; }
.button-group { flex-wrap: wrap; gap: 6px; }
.button-group a, .button-group button { white-space: normal; }
.button-group .add-report-btn { display: inline-flex; align-items: center; gap: 8px; }
.button-group .add-report-btn > i { margin: 0 !important; flex-shrink: 0; }
.button-group .add-report-btn:focus-visible { outline: 2px solid var(--shortcoded-teal) !important; outline-offset: -3px; }
.table-top-btn-group ul a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.table-top-btn-group ul a > i { margin: 0; flex-shrink: 0; }
.table-top-btn-group ul a:focus-visible, .main-header-section .dropdown-menu a:focus-visible { outline: 2px solid var(--shortcoded-teal) !important; outline-offset: -3px; }
.input-wrapper { min-width: 0; }
.input-wrapper .form-control { max-width: 100%; }
.input-wrapper .position-absolute { pointer-events: none; }
.responsive-table { max-width: 100%; }
.responsive-table .shortcoded-empty-row td { text-align: start; white-space: normal; }
.responsive-table .shortcoded-empty-row td span { display: block; max-width: min(60vw, 420px); }
.order-form-section label { white-space: normal; line-height: 1.6; }
.order-form-section .form-control { min-width: 0; }
.nice-select { text-align: start !important; }
.nice-select .list { min-width: 100%; max-width: min(90vw, 420px); text-align: start; }
.nice-select .option { white-space: normal; line-height: 1.5; padding-top: 8px; padding-bottom: 8px; }
.select2-container .select2-selection--single { text-align: start; }
.mybazar-login-section { padding: 24px 18px; min-height: calc(100vh - 72px); }
.mybazar-login-section .login-wrapper h2 { font-size: 25px; line-height: 1.65; }
.mybazar-login-section .login-wrapper .input-group .hide-pass { cursor: pointer; }
.mybazar-login-section .login-wrapper .input-group input { padding-inline-end: 40px; }
.mybazar-login-section .forget-password { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.system-settings .nav { max-width: 100%; }
/* Fit cards to their actual content rail, including the space occupied by navigation. */
.erp-overview-grid-6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.erp-overview-item { gap: 12px; min-width: 0; }
.erp-overview-item .overview-icon { flex: 0 0 45px; width: 45px; height: 45px; margin: 0; }
.erp-overview-item .overview-icon img { display: block; height: 100%; object-fit: contain; }
.erp-overview-item > :not(.overview-icon) { flex: 1 1 auto; min-width: 0; }
.erp-overview-item h6 { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.erp-overview-item p { overflow-wrap: anywhere; font-size: 14px !important; line-height: 1.6 !important; }
/* Dashboard panels must fit their own column, including beside the desktop rail. */
.dashboard-card, .dashboard-card-body, .erp-graph-box { min-width: 0; }
.dashboard-card .dashboard-card-header { flex-wrap: wrap; background: #f0f7f8; border-bottom: 1px solid #dce8ec; border-radius: 12px 12px 0 0; }
.dashboard-card .dashboard-card-header h4 { line-height: 1.6; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.dashboard-card .dashboard-card-header form { margin: 0; max-width: 100%; }
.dashboard-card .dashboard-card-header .nice-select { max-width: 100%; }
.dashboard-order-customer .top-customer-table { max-width: 100%; max-height: 270px; overflow-y: auto; }
.dashboard-order-customer #dashboard-order-data { width: 100%; min-width: 0; }
.dashboard-order-customer #dashboard-order-data tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 0; }
.dashboard-order-customer #dashboard-order-data tr + tr { border-top: 1px solid #dce8ec; }
.dashboard-order-customer #dashboard-order-data td { padding: 4px 0; border: 0; min-width: 0; white-space: normal; text-align: start; overflow-wrap: anywhere; }
.dashboard-order-customer #dashboard-order-data td:first-child { grid-column: 1 / -1; }
.dashboard-order-customer #dashboard-order-data td:last-child { align-self: end; }
.dashboard-order-customer #dashboard-order-data a:focus-visible { outline: 2px solid var(--shortcoded-teal); outline-offset: 3px; }
@media screen {
    .erp-new-invice { max-width: 100%; overflow-wrap: anywhere; }
    .erp-new-invice .container { min-width: 0; max-width: 100%; }
    .erp-new-invice .erp-table-section { padding: 12px; }
    .erp-new-invice .print-btn { position: static; float: none !important; margin-bottom: 16px; }
    .erp-new-invice .table-header img { max-width: 100%; height: auto; object-fit: contain; }
    .erp-new-invice .invoice-text { padding: 8px 12px; text-align: start; background: #f0f7f8; }
    .erp-new-invice .invoice-text h2 { padding: 0; background: transparent; font-size: 28px; overflow-wrap: normal; }
    .shortcoded-invoice-rail { width: 100%; max-width: 100%; overflow-x: auto; }
    .shortcoded-invoice-rail .table { min-width: 680px; overflow-wrap: normal; }
    .shortcoded-invoice-rail:focus-visible { outline: 2px solid var(--shortcoded-teal); outline-offset: 2px; }
}
html[dir="rtl"] .side-bar { left: auto; right: 0; }
html[dir="rtl"] .section-container { padding-left: 0; padding-right: 300px; }
html[dir="rtl"] .section-container.active { padding-right: 80px; }
html[dir="rtl"] .side-bar-manu .dropdown::before { right: auto; left: 8px; content: "\f104"; }
html[dir="rtl"] .side-bar-manu li a i { margin: 0; }
html[dir="rtl"] .side-bar-manu li .dropdown-menu { margin-left: 0; margin-right: 20px; border-left: 0; border-right: 1px solid #819aab; }
html[dir="rtl"] .side-bar-manu li .dropdown-menu li { padding-left: 0; padding-right: 10px; }
html[dir="rtl"] .close-btn { right: auto; left: 15px; }
html[dir="rtl"] .order-form-section label { left: auto; right: 10px; }
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }
html[dir="rtl"] .float-end { float: left !important; }
html[dir="rtl"] .float-start { float: right !important; }
html[dir="rtl"] .form-check { padding-left: 0; padding-right: 1.5em; }
html[dir="rtl"] .form-check .form-check-input { float: right; margin-left: 0; margin-right: -1.5em; }
html[dir="rtl"] .nice-select { padding-left: 30px; padding-right: 18px; }
html[dir="rtl"] .nice-select:after { right: auto; left: 12px; }
html[dir="rtl"] .nice-select .list { left: auto; right: 0; }
html[dir="rtl"] .input-wrapper .position-absolute { right: auto; left: 12px; }
html[dir="rtl"] .input-wrapper input[name="search"] { padding-left: 36px; padding-right: 12px; }
html[dir="rtl"] .production-wrap { padding-right: 0; padding-left: 60px; }
html[dir="rtl"] .mybazar-login-section .login-wrapper .input-group span { left: auto; right: 15px; }
html[dir="rtl"] .mybazar-login-section .login-wrapper .input-group .hide-pass { right: auto; left: 15px; }
html[dir="rtl"] .mybazar-login-section .login-wrapper .input-group input { margin-left: 0 !important; margin-right: 50px !important; border-left: 0 !important; border-right: 1px solid #98a2b3 !important; }
html[dir="rtl"] .modal-header .btn-close { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .pagination { padding-right: 0; }
html[dir="rtl"] .pagination .page-item:first-child .page-link { border-radius: 0 6px 6px 0; }
html[dir="rtl"] .pagination .page-item:last-child .page-link { border-radius: 6px 0 0 6px; }
@media (min-width: 1151px) {
    .side-bar.active { width: 80px; padding: 0 10px; }
    .side-bar.active:is(:hover, :focus-within) { width: 300px; padding: 0 16px; }
    .side-bar.active:is(:hover, :focus-within) .side-bar-manu .dropdown::before { opacity: 1; }
    .side-bar.active:not(:hover):not(:focus-within) .side-bar-logo a { width: 44px; height: 44px; padding: 0; margin-inline: auto; background: #fff url('../brand/favicon.ico') center / 32px 32px no-repeat; }
    .side-bar.active:not(:hover):not(:focus-within) .side-bar-logo img,
    .side-bar.active:not(:hover):not(:focus-within) .shortcoded-sidebar-label,
    .side-bar.active:not(:hover):not(:focus-within) .side-bar-manu li > ul { display: none !important; }
    .side-bar.active:not(:hover):not(:focus-within) .side-bar-manu > ul > li > a { justify-content: center; padding: 11px 0; gap: 0; }
    .side-bar.active:not(:hover):not(:focus-within) .side-bar-manu .dropdown::before { opacity: 0; }
    .side-bar.active .side-bar-manu li a .sidebar-icon,
    .side-bar.active:is(:hover, :focus-within) .side-bar-manu li a .sidebar-icon,
    html[dir="rtl"] .side-bar.active .side-bar-manu li a .sidebar-icon,
    html[dir="rtl"] .side-bar.active:is(:hover, :focus-within) .side-bar-manu li a .sidebar-icon { position: static; margin: 0; }
    .side-bar.active .sidebar-icon img,
    .side-bar.active:is(:hover, :focus-within) .sidebar-icon img { width: 22px; }
}
@media (max-width: 1150px) {
    body.shortcoded-navigation-open { overflow: hidden; }
    .side-bar, .side-bar.active { width: min(300px, 100vw) !important; padding: 0 16px; }
    .side-bar-logo { padding-inline-end: 28px; }
    html[dir="rtl"] .side-bar { right: -100%; }
    html[dir="rtl"] .side-bar.active { right: 0; }
    html[dir="rtl"] .section-container, html[dir="rtl"] .section-container.active { padding-right: 0 !important; }
    .side-bar .side-bar-manu li a .sidebar-icon,
    html[dir="rtl"] .side-bar .side-bar-manu li a .sidebar-icon { position: static !important; margin: 0 !important; }
    .side-bar .sidebar-icon img { width: 22px !important; }
}
@media (max-width: 600px) {
    .erp-new-invice .invice-detaisl { flex-direction: column; gap: 12px; }
    .erp-new-invice .invice-detaisl .bill-left-side,
    .erp-new-invice .invice-detaisl .bill-right-side { width: 100%; }
    .main-header-section { padding: 10px 14px; }
    .header-right { gap: 8px; }
    .main-header-section .profile-info img { width: 36px; height: 36px; min-width: 36px; }
    .shortcoded-language button { padding: 6px 8px; font-size: 13px; }
    .shortcoded-guest-language { padding: 12px 18px 0; }
    .container-fluid { padding: 0 12px; }
    .mybazar-login-section .login-wrapper { padding: 24px 18px; border-radius: 18px; }
    .mybazar-login-section .login-wrapper h2 { font-size: 21px; }
    .table-header h3, .table-header h4 { line-height: 1.65; overflow-wrap: anywhere; }
    .table-top-btn-group ul { flex-wrap: wrap; gap: 8px; }
    .order-form-section .grid-3, .order-form-section .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .shortcoded-login-as-banner { padding: 10px 14px; }
    .erp-overview-grid-6 { gap: 14px; }
    .erp-overview-item h6 { font-size: 20px; line-height: 1.5; }
}
/* Guest forms share one viewport; language selection belongs to the form card. */
body.shortcoded-auth-page { margin: 0; background: #edf4f7; }
.shortcoded-auth-page .mybazar-login-section { width: 100%; height: auto; min-height: 100vh; min-height: 100svh; padding: 24px 16px; background: radial-gradient(ellipse at 12% 15%, #d4eceb 0, transparent 50%), radial-gradient(ellipse at 90% 85%, #dce8f1 0, transparent 50%), #edf4f7; }
.shortcoded-auth-page .mybazar-login-wrapper { max-width: 460px; min-width: 0; }
.shortcoded-auth-page .login-wrapper { padding: 28px 32px 32px; border: 1px solid #dbe6ec; border-radius: 24px; box-shadow: 0 18px 64px #15364d14; }
.shortcoded-auth-toolbar { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.shortcoded-auth-toolbar .shortcoded-language { border-color: #d4e1e7; border-radius: 10px; background: #f3f7f9; padding: 3px; gap: 3px; }
.shortcoded-auth-toolbar .shortcoded-language button { min-height: 36px; padding: 6px 12px; border-radius: 7px; background: transparent; }
.shortcoded-auth-toolbar .shortcoded-language .is-current { background: var(--shortcoded-teal); }
.shortcoded-auth-page .shortcoded-login-logo { width: 196px; max-width: 100%; height: auto; margin-bottom: 24px; }
.shortcoded-auth-page .login-wrapper h2 { color: var(--shortcoded-navy); font-size: 23px; line-height: 1.6; margin: 0; }
.shortcoded-auth-page .login-wrapper h2 span { color: var(--shortcoded-teal); }
.shortcoded-auth-page .login-wrapper h6 { color: #5c7080; font-size: 14px; line-height: 1.8; margin: 8px 0 24px; }
.shortcoded-auth-label { display: block; color: var(--shortcoded-navy); font-size: 14px; font-weight: 600; margin: 16px 0 8px; text-align: start; }
.shortcoded-auth-page .login-wrapper .input-group { min-width: 0; margin: 0; border: 1px solid #bacdd8; border-radius: 11px; background: #fff; }
.shortcoded-auth-page .login-wrapper .input-group:focus-within { border-color: var(--shortcoded-teal); box-shadow: 0 0 0 3px #087f8c1f; }
.shortcoded-auth-page .mybazar-login-section .login-wrapper .input-group input { width: 100%; min-width: 0; height: 48px; margin: 0 !important; border: 0 !important; border-radius: 11px !important; background: transparent; padding: 12px 14px !important; padding-inline-start: 44px !important; font-size: 14px; text-align: start; }
.shortcoded-auth-page .mybazar-login-section .login-wrapper .input-group input[type="password"],
.shortcoded-auth-page .mybazar-login-section .login-wrapper .input-group input.password,
.shortcoded-auth-page .mybazar-login-section .login-wrapper .input-group input[autocomplete="new-password"] { padding-inline-end: 48px !important; }
.shortcoded-auth-page .mybazar-login-section .login-wrapper .input-group > span { inset: auto; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); }
.shortcoded-auth-page .login-wrapper .input-group > span img { width: 18px; height: 18px; object-fit: contain; }
.shortcoded-auth-page .mybazar-login-section .login-wrapper .input-group > .hide-pass { inset-inline-start: auto; inset-inline-end: 4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
.shortcoded-auth-page .login-wrapper .input-group > .hide-pass img:last-child { display: none; }
.shortcoded-auth-page .login-wrapper .input-group > .hide-pass.show-pass img:first-child { display: none; }
.shortcoded-auth-page .login-wrapper .input-group > .hide-pass.show-pass img:last-child { display: block; }
.shortcoded-auth-page .forget-password { margin-top: 16px !important; gap: 6px 12px; }
.shortcoded-auth-page .forget-password label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font-size: 14px; }
.shortcoded-auth-page .forget-password input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--shortcoded-teal); }
.shortcoded-auth-page .forget-password a, .shortcoded-auth-page .back-to-login a { margin: 0; color: #087180; font-size: 14px; line-height: 1.7; }
.shortcoded-auth-page .login-wrapper .login-btn { height: 48px; margin-top: 20px; border-radius: 11px; font-weight: 600; }
.shortcoded-auth-page .login-wrapper .login-btn:hover, .shortcoded-auth-page .login-wrapper .login-btn:focus { background: var(--shortcoded-hover) !important; border-color: #066673; color: #fff !important; }
.shortcoded-auth-page .login-wrapper :is(button, a, .hide-pass):focus-visible { outline: 3px solid var(--shortcoded-teal); outline-offset: 3px; }
.shortcoded-auth-page .back-to-login { margin-top: 18px; gap: 8px; min-height: 40px; }
@media (max-width: 480px) {
    .shortcoded-auth-page .mybazar-login-section { padding: 16px 12px; }
    .shortcoded-auth-page .login-wrapper { padding: 20px; border-radius: 20px; }
    .shortcoded-auth-page .login-wrapper h2 { font-size: 21px; }
    .shortcoded-auth-page .shortcoded-login-logo { width: 176px; margin-bottom: 20px; }
    .shortcoded-auth-toolbar { margin-bottom: 20px; }
}
@media print {
    .shortcoded-language, .shortcoded-guest-language, .shortcoded-login-as-banner { display: none !important; }
    html[dir="rtl"] .section-container { padding-right: 0; }
}
/* Native configurable manufacturing, including bounded historical report tables. */
.manufacturing-form,.manufacturing-settings{max-width:1080px;margin-inline:auto}
.manufacturing-intro,.manufacturing-note{background:rgba(16,145,139,.07);border-inline-start:3px solid #10918b;border-radius:10px;padding:16px;margin-block:12px 20px}
.manufacturing-intro p{margin-block:8px;line-height:1.7}
.manufacturing-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.manufacturing-stage{padding:18px;border:1px solid #d9e3ec;border-radius:12px;background:#fff;min-width:0}
.manufacturing-stage label,.manufacturing-stage-editor label{display:block;font-weight:600;margin-block-end:8px;line-height:1.6;overflow-wrap:anywhere}
.manufacturing-stage small{display:block;line-height:1.8;margin-block-start:8px}
.manufacturing-settings .form-control,.manufacturing-form .form-control{min-height:46px;width:100%;min-width:0}
.manufacturing-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.manufacturing-editor{display:grid;gap:12px}
.manufacturing-stage-editor{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid #d9e3ec;border-radius:12px;background:#fff}
.manufacturing-stage-number{color:#10918b;text-align:center}
.manufacturing-stage-controls{display:flex;gap:6px;align-items:center}
.manufacturing-icon-button{width:40px;height:40px;border:1px solid #d2dce5;border-radius:8px;background:#f3f7fa;color:#162b45;font-size:20px}
.manufacturing-icon-button:disabled{opacity:.35;cursor:default}
.manufacturing-icon-button:focus-visible,.manufacturing-table-rail:focus-visible{outline:3px solid #10918b;outline-offset:2px}
.manufacturing-status{line-height:1.8;overflow-wrap:anywhere;color:#35546b}
.manufacturing-summary{min-width:190px;margin-block:4px 8px;font-size:13px}
.manufacturing-summary>div{display:flex;justify-content:space-between;gap:16px;padding-block:4px;border-bottom:1px solid #e8edf2;white-space:normal}
.manufacturing-summary dt{font-weight:500;overflow-wrap:anywhere}
.manufacturing-summary dd{margin:0;white-space:normal;overflow-wrap:anywhere;text-align:end}
.manufacturing-legacy{display:inline-block;padding:4px 8px;background:#f0f3f7;border-radius:5px;font-size:12px}
.manufacturing-export-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:#fff;border:1px solid #d9e3ec;border-radius:8px}
.manufacturing-export-button:focus-visible{outline:3px solid #10918b;outline-offset:2px}
.manufacturing-table-rail{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
.manufacturing-report{width:100%;min-width:760px}
.manufacturing-report details summary{cursor:pointer;padding:10px;font-weight:600;white-space:normal}
@media(max-width:767px){.manufacturing-stage-editor{grid-template-columns:26px minmax(0,1fr);padding:12px;gap:10px}.manufacturing-stage-editor>div:nth-of-type(2){grid-column:2}.manufacturing-stage-controls{grid-column:2;justify-content:flex-end}.manufacturing-settings{padding:14px}.manufacturing-actions>*{flex:1;text-align:center}.manufacturing-intro{padding:12px}}
@media print{.manufacturing-table-rail{overflow:visible}.manufacturing-summary{min-width:0;font-size:10px}.manufacturing-report{min-width:0}.manufacturing-report details{display:block}.manufacturing-report .theme-btn{display:none}}

/* Workspace hierarchy: title/actions, then filter/export tools, then native table rail. */
@media screen {
.add-order-btn, .search-btn, .btn-primary { background: var(--shortcoded-teal) !important; border-color: var(--shortcoded-teal); color: #fff !important; }
.add-order-btn:hover, .search-btn:hover, .btn-primary:hover { background: var(--shortcoded-hover) !important; border-color: var(--shortcoded-hover); }
.table-header > .add-order-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 9px; }
.main-header-section .profile-info .dropdown-menu li a:hover, .pagination .page-item.active .page-link, .pagination .page-link.active, .pagination .page-link:hover { color: var(--shortcoded-teal); }
.pagination .page-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.pagination .page-item.active .page-link { background: #e9f4f4; font-weight: 700; }
.side-bar-manu li .dropdown-menu li li:hover > a, .side-bar-manu li .dropdown-menu li li.active > a, .side-bar-manu .dropdown.active > .dropdown-menu .dropdown.active .active { background: var(--shortcoded-teal); }
.add-color-btn, .btn-outline-primary { color: var(--shortcoded-teal); border-color: var(--shortcoded-border); min-height: 40px; padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.theme-border, .add-profile-photo-wrapper .image-wrapper, .erp-dashboard-profile .profile-img { border-color: var(--shortcoded-teal); }
.form-switch .form-check-input:checked { background-color: var(--shortcoded-teal); border-color: var(--shortcoded-teal); }

.main-header-section { background: #fff; border-bottom: 1px solid var(--shortcoded-border); box-shadow: 0 1px 4px #0b203304; }
.cards { border: 1px solid var(--shortcoded-border); border-radius: 14px; box-shadow: 0 2px 10px #0b203304; }
.table-header { flex-wrap: wrap; gap: 16px; padding-block: 6px 20px; margin-bottom: 20px; border-color: var(--shortcoded-border); }
.table-header :is(h3, h4) { margin: 0; color: var(--shortcoded-navy); font-size: 22px; line-height: 1.5; font-family: inherit; letter-spacing: -.02em; }
.table-header .button-group { gap: 8px; border: 0; }
.table-header .button-group a, .table-header .button-group button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--shortcoded-border); border-radius: 9px; background: #fff !important; color: #365365 !important; }
.table-header .button-group a:hover, .table-header .button-group button:hover { background: #e9f4f4 !important; color: var(--shortcoded-hover) !important; border-color: var(--shortcoded-teal); }
.table-header .button-group a.active, .table-header .button-group .add-order-btn, .table-header .button-group .add-report-btn:not([data-bs-toggle]) { background: var(--shortcoded-teal) !important; border-color: var(--shortcoded-teal); color: #fff !important; }
.table-top-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 16px; margin-block: 0 20px; background: #f5f8fa; border: 1px solid var(--shortcoded-border); border-radius: 12px; }
.table-top-form > form { flex: 1 1 460px; min-width: 0; margin: 0; }
.table-top-form :is(.grid-5, .grid-4, .grid-3) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.table-top-form .input-wrapper { flex: 1 1 150px; width: auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch !important; gap: 6px; }
.table-top-form .input-wrapper label { color: #365365; font-size: 13px; line-height: 1.5; margin: 0; }
.table-top-form .input-wrapper .form-control, .table-top-form .table-select { width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--shortcoded-border) !important; border-radius: 9px; background: #fff; color: #102a43; }
/* Column filter groups must not grow their controls along the vertical flex axis. */
.table-top-form .input-wrapper > .form-control { flex: 0 0 auto; }
.table-top-form .input-wrapper input[name="search"] { padding-inline-end: 42px; }
.table-top-form .input-wrapper .position-absolute { top: auto; bottom: 7px; inset-inline-end: 7px; transform: none !important; }
.table-top-btn-group { flex: 0 1 auto; max-width: 100%; }
.table-top-btn-group ul { flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.table-top-btn-group ul li a { width: auto; height: auto; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--shortcoded-border); border-radius: 9px; background: #fff; color: #365365; font-size: 13px; line-height: 1.4; }
.table-top-btn-group ul li a:hover { background: #e9f4f4; border-color: var(--shortcoded-teal); color: var(--shortcoded-hover); }
.table-top-btn-group ul a svg { flex-shrink: 0; width: 18px; height: 18px; }
.shortcoded-control-label { font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.table-action > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 40px; padding: 9px 12px; color: #365365; border: 1px solid var(--shortcoded-border); border-radius: 8px; background: #fff; }
.table-action > button:hover, .table-action > button[aria-expanded="true"] { background: #e9f4f4; color: var(--shortcoded-hover); border-color: var(--shortcoded-teal); }
.table-action > button i[hidden] { display: none; }
.table-action .dropdown-menu { border: 1px solid var(--shortcoded-border); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px #0b203314; }
.table-action .dropdown-menu a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px; border-radius: 7px; font-size: 14px; line-height: 1.5; color: #365365; }
.table-action .dropdown-menu a:hover { background: #e9f4f4; color: var(--shortcoded-hover); }
.table-action button:focus-visible, .table-action a:focus-visible { outline: 3px solid var(--shortcoded-teal); outline-offset: 2px; }
.responsive-table thead th { background: #f0f5f8; color: #365365; font-size: 13px; font-weight: 600; padding-block: 14px; border-color: var(--shortcoded-border); }
.responsive-table tbody td { padding-block: 14px; border-color: #e5edf1; vertical-align: middle; }
.responsive-table tbody tr:hover { background: #f5fafa; }
.theme-btn { min-width: 0; min-height: 44px; padding: 10px 20px; border-radius: 9px; }
.side-bar-manu li a { border-radius: 9px; margin-block: 3px; }
.side-bar-manu li:hover > a { background: #153b50; }
.side-bar-manu li.active > a, .side-bar-manu .dropdown.active > a { background: var(--shortcoded-teal); }
.side-bar-manu .dropdown-menu li a:hover { background: #153b50; }
.order-form-section :is(input.form-control, select.form-control, .form-select), .modal-body :is(input.form-control, select.form-control) { min-height: 44px; border-color: var(--shortcoded-border); border-radius: 9px; }
.order-form-section .row { row-gap: 8px; }
.order-form-section .form-control:focus, .table-top-form .form-control:focus { border-color: var(--shortcoded-teal) !important; box-shadow: 0 0 0 3px #087f831a; }
@media(max-width: 767px) {
  .table-header { align-items: flex-start; margin-bottom: 16px; gap: 12px; }
  .table-header .button-group { width: 100%; }
  .table-header .button-group a { flex: 1 1 auto; }
  .table-top-form { padding: 12px; gap: 12px; }
  .table-top-btn-group { width: 100%; }
  .table-top-form .input-wrapper { flex-basis: 140px; }
  .table-top-form input[name="search"] { width: 100%; }
}

.table-top-form .nice-select { height: 44px; line-height: 42px; width: 100%; border-color: var(--shortcoded-border); border-radius: 9px; }
}
/* Industrial order/editor controls keep native detail arrays and calculations intact. */
.industrial-order-form label:not(.upload-img) { display: block; position: static; padding: 0; margin: 0 0 8px; line-height: 1.6; text-align: start; background: transparent; font-weight: 600; white-space: normal; }
.industrial-order-form .input-group { align-items: stretch; }
.industrial-order-form .input-group > .form-control { min-width: 0; }
.industrial-related-link { min-width: 44px; min-height: 44px; border-radius: 0 8px 8px 0; background: var(--shortcoded-teal) !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; }
html[dir="rtl"] .industrial-related-link { border-radius: 8px 0 0 8px; }
.industrial-related-link:hover { background: var(--shortcoded-hover) !important; }
.industrial-order-fields { padding: 20px; border: 1px solid var(--shortcoded-border); border-radius: 12px; background: #f5f8fa; }
.industrial-order-fields h5, .industrial-read-summary h5 { color: var(--shortcoded-navy); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.industrial-order-fields p, .industrial-editor-help { line-height: 1.8; }
.industrial-optional { border: 1px solid var(--shortcoded-border); border-radius: 12px; padding: 16px; }
.industrial-optional > summary { color: #365365; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.8; }
.industrial-line-controls { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 8px; }
.industrial-order-form .industrial-line-control { position: static !important; width: auto; height: auto; min-height: 42px; padding: 9px 14px; color: #365365; border: 1px solid var(--shortcoded-border); border-radius: 8px; background: #fff; font-size: 13px; line-height: 1.6; cursor: pointer; }
.industrial-line-control svg { vertical-align: middle; margin-inline-end: 6px; }
[data-industrial-editor] { max-width: 1180px; margin-inline: auto; }
.industrial-editor-field { border: 1px solid var(--shortcoded-border); border-radius: 12px; padding: 20px; margin-bottom: 18px; background: #fff; }
.industrial-editor-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.industrial-editor-header h5 { margin: 0; color: var(--shortcoded-navy); font-size: 17px; }
.industrial-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.industrial-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.industrial-editor-input { min-width: 0; }
.industrial-editor-input label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; line-height: 1.6; }
.industrial-editor-input .form-control { width: 100%; min-width: 0; min-height: 44px; border-color: var(--shortcoded-border); border-radius: 8px; }
.industrial-editor-input .form-check-input { position: static; margin: 10px 0; width: 20px; height: 20px; accent-color: var(--shortcoded-teal); }
.industrial-editor-action { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.industrial-editor-options { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--shortcoded-border); }
.industrial-editor-option { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 12px; margin-bottom: 14px; }
.industrial-status, .industrial-empty-note { line-height: 1.8; overflow-wrap: anywhere; margin-block: 14px; }
.industrial-status:focus { outline: 2px solid var(--shortcoded-teal); outline-offset: 4px; }
.industrial-read-summary { padding: 16px; border: 1px solid var(--shortcoded-border); border-radius: 10px; margin-block: 16px; }
.industrial-attributes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 8px 20px; margin: 0; }
.industrial-attributes > div { min-width: 0; }
.industrial-attributes dt { color: #5c7080; font-size: 13px; line-height: 1.7; font-weight: 500; }
.industrial-attributes dd { margin-bottom: 8px; color: #102a43; line-height: 1.7; overflow-wrap: anywhere; white-space: normal; }
.industrial-attributes-compact { display: block; min-width: 200px; max-width: 360px; }
.industrial-attributes-compact > div { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.industrial-attributes-compact dt, .industrial-attributes-compact dd { font-size: 12px; margin-bottom: 3px; }
@media(max-width: 767px) { .industrial-editor-grid { grid-template-columns: minmax(0,1fr); } .industrial-editor-option { grid-template-columns: minmax(0,1fr); padding-bottom: 16px; border-bottom: 1px solid var(--shortcoded-border); } .industrial-editor-field, .industrial-order-fields { padding: 14px; } }
.industrial-planning-form { padding: 20px; border: 1px solid var(--shortcoded-border); border-radius: 12px; background: #f8fbfc; }
.industrial-planning-form label { position: static; display: block; margin-bottom: 8px; padding: 0; line-height: 1.6; text-align: start; font-weight: 600; background: transparent; }
.industrial-planning-form .form-control { width: 100%; min-width: 0; min-height: 44px; border-radius: 8px; border-color: var(--shortcoded-border); }
.industrial-planning-line { border: 1px solid var(--shortcoded-border); padding: 16px; border-radius: 10px; margin-block: 12px; background: #fff; }
.industrial-planning-context { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px; border: 1px solid var(--shortcoded-border); border-radius: 10px; margin-block: 16px; line-height: 1.8; }
.industrial-planning-context:empty { display: none; }
.industrial-planning-total { display: flex; justify-content: space-between; gap: 16px; padding: 16px; margin-block: 16px; border-radius: 10px; background: #e9f4f4; color: var(--shortcoded-navy); font-size: 17px; }
.industrial-plan-summary { min-width: 0; }
.industrial-plan-summary table { min-width: 720px; }
@media(max-width:767px) { .industrial-planning-form { padding: 14px; } }

@media screen {
  .roles-permissions .permission-choice { display:flex; align-items:center; gap:.5rem; min-height:40px; max-width:100%; margin:0; }
  .roles-permissions .permission-choice label { white-space:normal; margin:0; line-height:1.6; cursor:pointer; }
  .roles-permissions .permission-choice input { flex:0 0 auto; }
  .roles-permissions .table td { vertical-align:top; }
  .roles-permissions .table td:first-child { white-space:normal!important; min-width:145px; }
  .roles-permissions form > .col-12:last-child > .text-center { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; padding-block:1rem; }
}

/* Current industrial forms share bounded controls and logical native addon joins. */
@media screen {
  .theme-btn { border: 1px solid transparent; border-radius: 8px; }
  .industrial-order-form .industrial-line-control { min-height: 44px; }
  :is(.order-form-section, .industrial-planning-form, .manufacturing-settings, .manufacturing-form, .industrial-editor-field) :is(input.form-control, select.form-control, div.nice-select.form-control) {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--shortcoded-border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
  }
  .industrial-order-form .input-group > .form-control {
    flex: 1 1 0;
    width: 1%;
    margin: 0;
    border-radius: 0 !important;
    border-start-start-radius: 8px !important;
    border-end-start-radius: 8px !important;
  }
  .industrial-order-form .input-group > .input-group-append {
    display: flex;
    align-items: stretch;
    margin-inline-start: -1px !important;
    margin-inline-end: 0 !important;
  }
  .industrial-order-form .industrial-related-link {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    border-radius: 0 !important;
    border-start-end-radius: 8px !important;
    border-end-end-radius: 8px !important;
  }
  .industrial-order-form div.nice-select.form-control {
    padding-inline-start: 12px;
    padding-inline-end: 38px;
  }
  .industrial-order-form div.nice-select.form-control .current {
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .industrial-order-form div.nice-select.form-control::after {
    left: auto;
    right: auto;
    inset-inline-end: 16px;
    top: 50%;
    margin-top: -4px;
  }
}


/* Center only page-size values, reserving equal space for the caret in either direction. */
body .table-top-form .input-wrapper select[name="per_page"], body .table-top-form select.table-select[name="per_page"], body .dataTables_length select[name="per_page"] {
  min-inline-size: 4.5rem; padding-inline: 1.25rem; text-align: center; text-align-last: center;
  -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .375rem center; background-size: .75rem .75rem;
}
:is(body .table-top-form .input-wrapper select[name="per_page"], body .table-top-form select.table-select[name="per_page"], body .dataTables_length select[name="per_page"]):dir(rtl) { background-position: left .375rem center; }

@media (forced-colors: active) {
  body .table-top-form .input-wrapper select[name="per_page"], body .table-top-form select.table-select[name="per_page"], body .dataTables_length select[name="per_page"] { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
/* Output allocation uses the existing native form rails in both writing directions. */
.mfg-output-fieldset { border: 1px solid var(--shortcoded-border); border-radius: 8px; padding: 16px; margin-block: 16px; min-width: 0; }
.mfg-output-fieldset legend { float: none; width: auto; padding-inline: 6px; margin: 0; font: inherit; font-weight: 600; color: var(--shortcoded-navy); }
.mfg-output-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(150px, .8fr); align-items: center; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--shortcoded-border); }
.mfg-output-row > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767px) { .mfg-output-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } .mfg-output-fieldset { padding: 12px; } }

.mfg-output-summary { min-height: 0; margin-block: 12px 24px; }
