/* МЕБЕЛЬНЫЙ ЦЕХ — asosiy style.css ustiga qo'shimcha */
.login-body { background-color: #2B3643; }
.login-brand { text-align: center; font-weight: 700; letter-spacing: 1px; color: #2B3643; font-size: 18px; margin: 4px 0 6px; }
.app-flash { margin: 8px 0 0; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.app-table { background: #fff; }
.app-table td, .app-table th { padding: 6px 8px !important; vertical-align: middle !important; font-size: 13px; }
.app-table thead th { background: whitesmoke; font-weight: 600; }
.app-table tr.app-total td { font-weight: 700; background: #ebf0ff; }
.app-table tr.muted td { color: #9aa2ab; }
.app-sum { background-color: #ebf0ff; border-left: 4px solid #7396ff; padding: 10px 14px; margin: 8px 0; font-weight: 600; }
.app-hint { color: #7a8794; font-size: 12px; margin: 6px 0; }
.app-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.app-neg { color: #c62828; font-weight: 600; }
.app-pos { color: #2e7d32; }
.app-muted { color: #9aa2ab; }
.app-h { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.app-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: #eef2f7; color: #55606b; white-space: nowrap; }
.app-badge.b-new { background: #e3ecff; color: #3056c9; }
.app-badge.b-work { background: #fff4e0; color: #a86400; }
.app-badge.b-ready { background: #e8f5e9; color: #2e7d32; }
.app-badge.b-done { background: #eef2f7; color: #55606b; }
.app-badge.b-cancel, .app-badge.b-minus { background: #fdecea; color: #c62828; }
.app-badge.b-plus { background: #e8f5e9; color: #2e7d32; }
.app-form .row { margin-bottom: 8px; }
.app-form label { font-weight: 400; margin-bottom: 2px; color: #55606b; }
.app-card { background: #fff; border: 1px solid #dde3ea; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.app-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.app-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.app-kpi { background: #fff; border: 1px solid #dde3ea; border-radius: 6px; padding: 10px 14px; display: block; color: #333; }
.app-kpi:hover { border-color: #7396ff; color: #333; }
.app-kpi b { display: block; font-size: 22px; color: #2B3643; }
.app-kpi small { color: #7a8794; font-size: 12px; }
.app-kpi.warn b { color: #c62828; }

/* progress */
.app-prog { position: relative; height: 18px; background: #eef2f7; border-radius: 3px; min-width: 90px; overflow: hidden; }
.app-prog-bar { height: 100%; background: #9fc0ff; }
.app-prog-bar.full { background: #8fd18f; }
.app-prog span { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 11px; line-height: 18px; color: #2B3643; }

/* kromka belgisi */
.edge-ico { vertical-align: middle; }

/* detal jadvali (tahrir) */
.dt-input { width: 70px !important; display: inline-block !important; padding: 2px 4px !important; height: 28px !important; font-size: 13px !important; }
.dt-edge { width: 100% !important; min-width: 90px; height: 28px !important; padding: 2px !important; font-size: 12px !important; }
.dt-row td { padding: 3px 4px !important; }

/* raskroy chizmasi */
.sheet-box { background: #fff; border: 1px solid #dde3ea; border-radius: 6px; padding: 10px; margin-bottom: 14px; page-break-inside: avoid; }
.sheet-box.done { border-color: #8fd18f; background: #f6fff6; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sheet-head b { font-size: 15px; }
.sheet-svg { width: 100%; height: auto; display: block; background: #f3efe6; }
.sheet-legend td { font-size: 13px; padding: 4px 6px !important; }
.sheet-legend .n { display: inline-block; min-width: 24px; height: 24px; border-radius: 12px; background: #2B3643; color: #fff; text-align: center; line-height: 24px; font-weight: 700; font-size: 12px; padding: 0 4px; }

/* ishchi ekrani (planshet) */
body.worker { font-size: 14px; }
body.worker .navbar-inverse .navbar-nav > li > a { font-size: 17px; padding-top: 16px; padding-bottom: 16px; }
body.worker .navbar-brand { font-size: 15px; padding-top: 16px; }
.w-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 12px 0; }
.w-card { background: #fff; border: 1px solid #dde3ea; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.w-card.hot { border-left: 5px solid #e8a33a; }
.w-card .w-title { font-size: 17px; font-weight: 700; color: #2B3643; }
.w-card .w-size { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.w-card .w-meta { color: #7a8794; font-size: 13px; }
.w-card .w-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.w-qty { display: flex; align-items: center; gap: 6px; }
.w-qty button { width: 48px; height: 52px; font-size: 24px; font-weight: 700; border-radius: 8px; border: 1px solid #c2cad8; background: #fafafb; }
.w-qty input { width: 64px; height: 52px; font-size: 24px; font-weight: 700; text-align: center; border: 2px solid #5db85c; border-radius: 8px; background: #f4fff4; }
.w-btn { font-size: 18px !important; font-weight: 700; padding: 12px 18px !important; border-radius: 8px !important; }
.w-big { font-size: 20px !important; padding: 16px 26px !important; border-radius: 8px !important; font-weight: 700; }
.w-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.w-tabs a { padding: 10px 16px; border: 1px solid #dde3ea; border-radius: 20px; background: #fff; color: #2B3643; font-size: 15px; }
.w-tabs a.active { background: #2B3643; color: #fff; border-color: #2B3643; }
.w-empty { text-align: center; color: #9aa2ab; font-size: 18px; padding: 60px 10px; }
.w-empty .fa { font-size: 48px; display: block; margin-bottom: 10px; color: #c2cad8; }

@media (max-width: 767px) {
    .toolbar { height: auto !important; }
    .app-hide-xs { display: none !important; }
    .table-responsive-x { overflow-x: auto; }
}
@media print {
    body * { visibility: visible !important; }
    .navbar, .toolbar, .page_name, .no-print, .app-flash { display: none !important; }
    .sheet-box { border: 1px solid #999; }
    body { background: #fff; }
}
.login-form .mb-3 { margin-bottom: 1rem; }

/* 3D ko'rinish */
.m3d { background: #fff; border: 1px solid #dde3ea; border-radius: 6px; overflow: hidden; }
.m3d-stage { position: relative; height: 100%; min-height: 260px; background: #eef2f6; }
.m3d-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.m3d-tag { position: absolute; left: 10px; top: 10px; background: #2B3643; color: #fff; border-radius: 4px; padding: 3px 9px; font-size: 13px; pointer-events: none; }
.m3d-note { position: absolute; left: 10px; bottom: 8px; color: #7a8794; font-size: 12px; pointer-events: none; }
.m3d-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 6px 10px; border-top: 1px solid #dde3ea; font-size: 13px; }
.m3d-bar label { font-weight: 400; margin: 0; display: flex; align-items: center; gap: 6px; }
.m3d-bar input[type=range] { width: 140px; }
.m3d-box { display: flex; flex-direction: column; height: 440px; }
.m3d-box .m3d-stage { flex: 1; }
@media (max-width: 767px) { .m3d-box { height: 360px; } }
.dt-row td.dt-3d { background: #f7f9ff; }
