Files
ManagerAccount/public/css/robot-bom.css
2026-11-02 15:09:59 +07:00

230 lines
20 KiB
CSS

.bom-page { height:100%; overflow-y:auto; padding:24px; color:#2a3439; background:#f7f9fb; font-size:14px; }
.bom-page h1,.bom-page h2,.bom-page h3,.bom-dialog h2,.bom-dialog h3 { font-family:Manrope,Inter,sans-serif; margin:0; font-weight:800; }
.bom-page h1 { font-size:28px; line-height:1.25; margin-bottom:6px; }
.bom-page h2,.bom-dialog h3 { font-size:17px; }
.bom-page-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; flex-wrap:wrap; }
.bom-eyebrow { font-size:10px; letter-spacing:.1em; font-weight:700; color:#64748b; margin:0 0 5px; }
.bom-muted { color:#64748b; font-size:13px; }
.bom-toolbar,.bom-identity-actions { display:flex; flex-wrap:wrap; gap:8px; }
.bom-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid #d5deea; border-radius:7px; background:white; color:#334155; padding:9px 12px; font-size:12px; font-weight:700; line-height:1.4; white-space:nowrap; cursor:pointer; }
.bom-btn:hover:not(:disabled) { background:#edf2ff; border-color:#a9b8e9; color:#3755c3; }
.bom-btn:disabled { opacity:.45; cursor:default; }
.bom-btn-primary { color:white; background:#3755c3; border-color:#3755c3; }
.bom-btn-primary:hover:not(:disabled) { color:white; background:#2848b7; }
.bom-btn .material-symbols-outlined { font-size:18px; }
.bom-identity { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:18px; background:white; border:1px solid #e2e8f0; border-radius:10px; }
.bom-robot-icon { display:flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:12px; background:#edf2ff; color:#3755c3; font-size:36px; flex-shrink:0; }
.bom-model-field { flex:1; min-width:180px; }
.bom-model-field label,.bom-version-field label { display:block; color:#64748b; font-size:11px; font-weight:600; margin-bottom:5px; }
.bom-model-field select { width:100%; max-width:360px; font-weight:700; }
.bom-model-field small { display:block; margin-top:5px; color:#64748b; font-size:11px; }
.bom-version-field { min-width:170px; }
.bom-page select,.bom-page input:not([type=file]),.bom-dialog select,.bom-dialog input:not([type=radio]),.bom-dialog textarea { border:1px solid #d7e0eb; border-radius:6px; background:white; font-size:13px; color:#334155; padding:9px 11px; min-height:38px; }
.bom-page input:focus,.bom-page select:focus,.bom-dialog input:focus,.bom-dialog textarea:focus { outline:2px solid #b9c7ff; outline-offset:1px; border-color:#3755c3; }
.bom-badge { display:inline-flex; align-items:center; white-space:nowrap; color:#b45309; background:#fffbeb; border:1px solid #fde68a; border-radius:5px; padding:5px 8px; font-size:11px; font-weight:700; }
.bom-badge-green { color:#15803d; background:#f0fdf4; border-color:#bbf7d0; }
.bom-tabs { display:flex; gap:16px; margin:15px 0 18px; border-bottom:1px solid #e2e8f0; overflow-x:auto; }
.bom-tabs button { padding:13px 8px; color:#64748b; font-size:13px; font-weight:600; white-space:nowrap; border-bottom:2px solid transparent; }
.bom-tabs button[aria-current=page] { color:#3755c3; border-bottom-color:#3755c3; }
.bom-workspace { display:grid; grid-template-columns:minmax(0,1fr) 335px; gap:16px; align-items:start; }
.bom-card { background:white; border:1px solid #e2e8f0; border-radius:9px; min-width:0; overflow:hidden; }
.bom-main-card { padding:18px; }
.bom-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; }
.bom-main-card>.bom-card-heading { padding:0 0 14px; }
.bom-count { display:inline-block; font-size:11px; font-weight:500; color:#64748b; background:#f1f5f9; padding:3px 6px; border-radius:5px; vertical-align:middle; }
.bom-filters { display:flex; gap:10px; margin-bottom:14px; }
.bom-search { display:flex; align-items:center; position:relative; flex:1; min-width:100px; }
.bom-search>.material-symbols-outlined { position:absolute; left:11px; color:#94a3b8; font-size:19px; pointer-events:none; }
.bom-search input { width:100%; padding-left:36px!important; }
.bom-filters select { max-width:190px; }
.bom-table-scroll { overflow-x:auto; width:100%; }
.bom-lines-table,.bom-stock-table,.bom-picker-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.bom-lines-table th,.bom-stock-table th,.bom-picker-table th { font-weight:600; background:#f1f5f9; color:#475569; padding:11px 10px; white-space:nowrap; border:1px solid #e2e8f0; }
.bom-lines-table td,.bom-stock-table td,.bom-picker-table td { padding:12px 10px; border:1px solid #e2e8f0; vertical-align:middle; }
.bom-lines-table strong,.bom-stock-table strong,.bom-picker-table strong { display:block; font-weight:600; }
.bom-lines-table small,.bom-stock-table small,.bom-picker-table small,.bom-selected-summary small { display:block; color:#64748b; font-size:10px; margin-top:3px; line-height:1.45; }
.bom-lines-table td:first-child { min-width:155px; }
.bom-lines-table td:nth-child(2) { min-width:95px; }
.bom-lines-table td:nth-child(5) { min-width:140px; max-width:230px; overflow-wrap:anywhere; }
.bom-group th { background:#eef3f8; font-size:11px; text-transform:uppercase; color:#334155; padding:10px; }
.bom-group .material-symbols-outlined { font-size:17px; margin-right:7px; vertical-align:middle; }
.bom-group small { display:inline; margin-left:10px; font-weight:400; font-size:10px; text-transform:none; color:#64748b; }
.bom-page input.bom-quantity { width:76px; min-height:32px; padding:5px 6px; }
.bom-row-actions { white-space:nowrap; }
.bom-row-actions button { padding:4px; color:#64748b; }
.bom-row-actions button:hover { color:#3755c3; background:#eff6ff; border-radius:4px; }
.bom-row-actions button[data-bom-delete]:hover { color:#dc2626; background:#fef2f2; }
.bom-row-actions .material-symbols-outlined { font-size:17px; }
.bom-stock-card { padding:18px; }
.bom-stock-card>.bom-card-heading { padding:0 0 18px; }
.bom-count-field { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; }
.bom-count-field input { width:100px; }
.bom-footnote { color:#64748b; font-size:11px; margin:14px 0; line-height:1.6; }
.bom-stock-card>.bom-btn { margin-bottom:14px; }
.bom-stock-table { font-size:11px; }
.bom-stock-table th,.bom-stock-table td { padding:9px 7px; }
.bom-stock-table td:not(:first-child),.bom-stock-table th:not(:first-child) { text-align:right; }
.bom-stock-table td:first-child { max-width:180px; overflow-wrap:anywhere; }
.bom-shortage td { background:#fff7ed; }
.bom-danger { color:#c2410c!important; }
.bom-success { color:#15803d; font-weight:600; }
.bom-stock-result { display:flex; align-items:center; gap:9px; padding:12px; border-radius:7px; margin-top:16px; font-size:12px; }
.bom-stock-result small { display:block; margin-top:3px; font-size:11px; }
.bom-stock-warning { background:#fff7ed; border:1px solid #fed7aa; color:#c2410c; }
.bom-stock-ok { background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d; }
.bom-stock-message { padding:20px 0; }
.bom-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:52px 20px; gap:12px; color:#64748b; }
.bom-empty>.material-symbols-outlined { font-size:36px; color:#94a3b8; }
.bom-empty>strong { color:#334155; font-size:16px; }
.bom-empty p { font-size:13px; margin:0; }
.bom-empty a { color:#3755c3; }
.bom-identity+.bom-empty { margin-top:18px; }
.bom-alert { border:1px solid #fecaca; color:#b91c1c; background:#fef2f2; border-radius:7px; padding:12px; font-size:13px; margin-bottom:16px; }
.bom-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.bom-dialog { margin:auto; width:min(1120px,95vw); max-width:none; max-height:92dvh; overflow-y:auto; border:0; border-radius:10px; padding:0; background:white; color:#2a3439; box-shadow:0 24px 80px #0f172a33; }
.bom-dialog::backdrop { background:#0f172a66; }
.bom-dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:20px; border-bottom:1px solid #e2e8f0; }
.bom-dialog-header h2 { font-size:20px; }
.bom-dialog-header p { font-size:12px; color:#64748b; margin:5px 0 0; }
.bom-dialog-header>button { padding:3px; color:#64748b; }
.bom-picker-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr); }
.bom-picker-catalog { padding:20px; min-width:0; }
.bom-picker-tools { display:flex; gap:14px; flex-wrap:wrap; }
.bom-source-tabs { display:flex; gap:5px; }
.bom-source-tabs button { padding:9px 12px; border:1px solid #e2e8f0; border-radius:6px; background:white; font-size:12px; font-weight:600; }
.bom-source-tabs button[aria-pressed=true] { background:#3755c3; border-color:#3755c3; color:white; }
.bom-picker-table-wrap { max-height:410px; overflow:auto; }
.bom-picker-table th { position:sticky; top:0; z-index:1; }
.bom-picker-table td { padding:12px 8px; }
.bom-picker-table td:first-child { width:35px; }
.bom-picker-table td:nth-child(2) { min-width:130px; }
.bom-picker-table label { cursor:pointer; }
.bom-picked-row td { background:#edf3ff; }
.bom-picker-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#64748b; font-size:11px; margin-top:16px; }
.bom-picker-pagination>div { display:flex; gap:5px; }
.bom-picker-settings { border-left:1px solid #e2e8f0; padding:20px; }
.bom-picker-settings>label { display:block; font-size:12px; font-weight:600; margin-top:15px; }
.bom-picker-settings label>input,.bom-picker-settings label>textarea { display:block; width:100%; margin-top:6px; font-weight:400; }
.bom-selected-summary { padding:12px; background:#f1f5f9; border-radius:7px; font-size:13px; margin-top:12px; }
.bom-quantity-unit { display:flex; margin-top:6px; }
.bom-quantity-unit input { width:100%; min-width:0; border-radius:6px 0 0 6px!important; font-weight:400; }
.bom-quantity-unit>span { display:flex; align-items:center; padding:0 12px; background:#f1f5f9; border:1px solid #d7e0eb; border-left:0; border-radius:0 6px 6px 0; font-size:12px; }
.bom-info { display:flex; gap:9px; background:#eff6ff; border-radius:7px; padding:12px; margin-top:20px; font-size:11px; color:#3755c3; }
.bom-info p { color:#64748b; margin:4px 0 0; font-size:11px; }
.bom-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; border-top:1px solid #e2e8f0; background:#fdfefe; }
.bom-dialog-footer>div { display:flex; flex-wrap:wrap; gap:8px; }
@media(min-width:1700px) { .bom-workspace { grid-template-columns:minmax(0,1fr) 390px; } }
@media(max-width:1250px) { .bom-workspace { grid-template-columns:minmax(0,1fr); } .bom-stock-card { max-width:none; } .bom-identity-actions { width:100%; } }
@media(max-width:760px) { .bom-page { padding:16px; } .bom-page h1 { font-size:24px; } .bom-identity { gap:12px; padding:14px; } .bom-robot-icon { width:45px; height:45px; font-size:28px; } .bom-version-field { min-width:150px; flex:1; } .bom-filters { flex-wrap:wrap; } .bom-filters select { width:100%; max-width:none; } .bom-main-card,.bom-stock-card { padding:14px; } .bom-card-heading h2 { font-size:15px; } .bom-picker-layout { grid-template-columns:minmax(0,1fr); } .bom-picker-settings { border-left:0; border-top:1px solid #e2e8f0; } .bom-picker-table-wrap { max-height:260px; } .bom-picker-pagination { flex-wrap:wrap; } .bom-dialog-footer { flex-wrap:wrap; } .bom-dialog-footer>div { width:100%; justify-content:flex-end; } .bom-tabs { gap:8px; } .bom-tabs button { font-size:12px; } .bom-picker-tools>.bom-search { min-width:100%; } }
.bom-lines-table td:first-child { min-width:0; width:48px; color:#64748b; }
.bom-lines-table td:nth-child(2) { min-width:180px; }
.bom-lines-table td:nth-child(3) { min-width:110px; }
.bom-lines-table td:nth-child(5) { min-width:180px; max-width:300px; }
.bom-lines-table .bom-quantity-unit { margin:0; align-items:center; gap:7px; }
.bom-lines-table .bom-quantity-unit input { width:76px; border-radius:6px!important; }
.bom-lines-table .bom-quantity-unit small { margin:0; white-space:nowrap; }
.bom-notes,.bom-source-cell { overflow-wrap:anywhere; white-space:pre-wrap; }
.bom-source-link { color:#3755c3; text-decoration:underline; text-underline-offset:3px; }
.bom-source-link:hover { color:#2848b7; }
.bom-history-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.bom-history-table th,.bom-history-table td { border:1px solid #e2e8f0; padding:12px 10px; white-space:nowrap; }
.bom-history-table th { background:#f1f5f9; color:#475569; font-weight:600; }
.bom-dialog { width:min(620px,95vw); }
.bom-entry-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:16px 20px; border-bottom:1px solid #e2e8f0; }
.bom-entry-tabs button { border:1px solid #e2e8f0; padding:9px 12px; border-radius:6px; font-size:12px; font-weight:600; }
.bom-entry-tabs button[aria-pressed=true] { background:#3755c3; color:white; border-color:#3755c3; }
.bom-material-layout { display:grid; grid-template-columns:minmax(0,1fr); }
.bom-asset-picker { padding:20px; border-right:1px solid #e2e8f0; min-width:0; }
.bom-asset-picker[hidden] { display:none; }
.bom-asset-table-wrap { max-height:410px; overflow:auto; }
.bom-asset-table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.bom-asset-table th,.bom-asset-table td { border:1px solid #e2e8f0; padding:11px 9px; }
.bom-asset-table th { background:#f1f5f9; position:sticky; top:0; color:#475569; font-weight:600; }
.bom-asset-table tbody tr { cursor:pointer; }
.bom-asset-table tbody tr:hover { background:#f7f9fb; }
.bom-asset-table strong,.bom-asset-table small { display:block; }
.bom-asset-table small { font-size:10px; color:#64748b; margin-top:4px; }
.bom-material-fields { padding:20px; min-width:0; }
.bom-material-fields label { display:block; font-size:12px; font-weight:600; margin-bottom:16px; }
.bom-material-fields label:last-child { margin-bottom:0; }
.bom-material-fields label>input,.bom-material-fields label>textarea { display:block; width:100%; margin-top:6px; font-weight:400; }
.bom-form-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
.bom-optional { font-size:11px; color:#94a3b8; font-weight:400; }
.bom-dialog-footer { justify-content:flex-end; }
/* Both entry modes share one fixed frame and the same form column. */
.bom-entry-dialog { width:min(1100px,95vw); height:min(790px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); overflow:hidden; }
.bom-entry-dialog[open] { display:flex; }
.bom-entry-dialog>form { display:flex; flex-direction:column; width:100%; height:100%; min-height:0; }
.bom-entry-dialog .bom-dialog-header,.bom-entry-dialog .bom-entry-tabs,.bom-entry-dialog .bom-dialog-footer { flex-shrink:0; }
.bom-entry-dialog .bom-material-layout { flex:1; min-height:0; grid-template-columns:minmax(0,1fr) minmax(360px,1.1fr); overflow:hidden; }
.bom-entry-context { min-width:0; min-height:0; display:grid; grid-template-columns:minmax(0,1fr); border-right:1px solid #e2e8f0; background:#f8fafc; }
.bom-entry-dialog .bom-asset-picker { display:flex; flex-direction:column; min-height:0; border:0; }
.bom-entry-dialog .bom-asset-picker[hidden],.bom-external-guide[hidden] { display:none; }
.bom-entry-dialog .bom-asset-picker>.bom-search { flex:0 0 auto; }
.bom-entry-dialog #bomAssetResults { display:flex; flex:1; flex-direction:column; min-height:0; }
.bom-entry-dialog #bomAssetResults>.bom-footnote { flex-shrink:0; margin-bottom:0; }
.bom-entry-dialog .bom-asset-table-wrap { flex:1; min-height:0; max-height:none; scrollbar-gutter:stable; }
.bom-entry-dialog .bom-material-fields { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:22px 24px; }
.bom-entry-dialog .bom-material-fields textarea { min-height:66px; max-height:150px; }
.bom-entry-dialog .bom-dialog-footer { justify-content:space-between; }
.bom-entry-save-hint { max-width:360px; font-size:11px; line-height:1.6; color:#64748b; margin:0; }
.bom-external-guide { padding:28px; overflow-y:auto; scrollbar-gutter:stable; }
.bom-external-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:12px; color:#3755c3; background:#e8edff; font-size:28px; margin-bottom:18px; }
.bom-external-guide h3 { font-size:19px; margin-bottom:9px; }
.bom-external-guide>p { font-size:13px; line-height:1.7; color:#64748b; margin:0; }
.bom-external-guide ul { display:flex; flex-direction:column; gap:22px; list-style:none; padding:0; margin:28px 0; }
.bom-external-guide li { display:flex; gap:12px; font-size:13px; }
.bom-external-guide li>.material-symbols-outlined { color:#3755c3; font-size:20px; margin-top:1px; }
.bom-external-guide li strong { font-weight:600; }
.bom-external-guide li small { display:block; color:#64748b; margin-top:5px; font-size:12px; line-height:1.6; }
.bom-external-guide p.bom-external-note { border-top:1px solid #e2e8f0; padding-top:18px; font-size:11px; }
.bom-confirm-dialog { width:min(520px,95vw); }
.bom-confirm-heading { display:flex; align-items:center; gap:13px; }
.bom-confirm-heading .bom-eyebrow { margin-bottom:4px; }
.bom-confirm-icon { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; border-radius:12px; background:#e8edff; color:#3755c3; font-size:25px; }
.bom-confirm-body { padding:20px 24px 24px; }
.bom-confirm-body>p { font-size:13px; line-height:1.7; color:#64748b; margin:0 0 18px; }
.bom-publish-summary { display:grid; grid-template-columns:2fr 1fr 1.3fr; gap:16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:16px; margin:0 0 18px; }
.bom-publish-summary div { min-width:0; }
.bom-publish-summary dt { color:#64748b; font-size:11px; margin-bottom:6px; }
.bom-publish-summary dd { margin:0; font-size:13px; font-weight:700; overflow-wrap:anywhere; }
.bom-publish-note { display:flex; gap:9px; color:#3755c3; border-radius:7px; background:#eff3ff; padding:12px; }
.bom-publish-note>.material-symbols-outlined { font-size:18px; flex-shrink:0; margin-top:1px; }
.bom-publish-note p { font-size:12px; line-height:1.7; margin:0; }
.bom-confirm-body>p.bom-footnote { margin:14px 0 0; font-size:11px; }
.bom-btn:focus-visible { outline:2px solid #3755c3; outline-offset:3px; }
.robot-delete-dialog .bom-confirm-icon,.bom-delete-dialog .bom-confirm-icon { color:#dc2626; background:#fef2f2; }
.bom-btn.bom-btn-delete { color:#dc2626; border-color:#fecaca; }
.bom-btn.bom-btn-delete:hover:not(:disabled) { color:#b91c1c; background:#fef2f2; border-color:#fca5a5; }
.robot-delete-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:16px; margin:0 0 18px; }
.robot-delete-name { display:block; font-size:16px; font-weight:700; overflow-wrap:anywhere; }
.robot-delete-details { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin:16px 0 0; }
.robot-delete-details dt { color:#64748b; font-size:11px; margin-bottom:5px; }
.robot-delete-details dd { margin:0; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.bom-btn.bom-btn-danger { color:white; background:#dc2626; border-color:#dc2626; }
.bom-btn.bom-btn-danger:hover:not(:disabled) { color:white; background:#b91c1c; border-color:#b91c1c; }
.bom-btn.bom-btn-danger:focus-visible { outline-color:#dc2626; }
@media(max-width:760px) {
.bom-entry-dialog { width:calc(100vw - 24px); height:calc(100dvh - 32px); max-height:calc(100dvh - 32px); }
.bom-entry-dialog .bom-material-layout { display:flex; flex-direction:column; overflow-y:auto; overscroll-behavior:contain; }
.bom-entry-context { flex:0 0 200px; height:200px; border-right:0; border-bottom:1px solid #e2e8f0; }
.bom-entry-dialog .bom-material-fields { flex-shrink:0; overflow:visible; padding:16px; }
.bom-entry-dialog .bom-asset-picker { padding:14px 16px; overflow:hidden; }
.bom-entry-dialog .bom-asset-picker>.bom-footnote { margin:8px 0; font-size:10px; }
.bom-entry-tabs { padding:12px 16px; }
.bom-entry-tabs button { padding:9px 10px; font-size:11px; }
.bom-external-guide { padding:18px; }
.bom-external-icon { width:36px; height:36px; font-size:22px; margin-bottom:12px; }
.bom-external-guide h3 { font-size:17px; }
.bom-external-guide>p { font-size:12px; }
.bom-external-guide ul,.bom-external-guide .bom-external-note { display:none; }
.bom-entry-save-hint { max-width:none; font-size:10px; }
.bom-entry-dialog .bom-dialog-footer { gap:10px; padding:12px 16px; }
.bom-entry-dialog .bom-dialog-footer>div { width:100%; justify-content:flex-end; gap:6px; }
.bom-entry-dialog .bom-dialog-footer .bom-btn { padding:8px 10px; font-size:11px; }
.bom-confirm-body { padding:18px; }
.bom-publish-summary { gap:10px; padding:12px; }
.bom-confirm-dialog .bom-dialog-header { padding:18px; }
.bom-confirm-dialog .bom-dialog-header h2 { font-size:17px; }
}