/* JHZ 3D Container Loading Calculator Styles (loadcalc.css) */
:root {
  --lc-brand: #1a4d8f;
  --lc-brand-d: #123a6b;
  --lc-accent: #0b5cad;
  --lc-ink: #12263a;
  --lc-mut: #5b7085;
  --lc-line: #dce4ee;
  --lc-bg: #f6f9fc;
  --lc-card: #ffffff;
}

.lc-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--lc-ink); }
.lc-card { background: var(--lc-card); border: 1px solid var(--lc-line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(16, 48, 79, .04); }
.lc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.lc-presets, .lc-actions-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.lc-chip { background: #eef4fc; color: var(--lc-brand); border: 1px solid #cfe0f5; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lc-chip:hover { background: var(--lc-brand); color: #fff; border-color: var(--lc-brand); }

.lc-unit { font-size: 13px; color: var(--lc-mut); display: inline-flex; align-items: center; gap: 6px; }
.lc-unit select, .lc-opt-group select { border: 1px solid var(--lc-line); border-radius: 7px; padding: 4px 8px; font-size: 13px; color: var(--lc-ink); background: #fff; }

.lc-btn-ghost { background: #fff; color: var(--lc-ink); border: 1px solid var(--lc-line); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lc-btn-ghost:hover { border-color: var(--lc-brand); color: var(--lc-brand); background: #f8fbff; }

.lc-btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--lc-brand); color: #fff !important; border: none; border-radius: 9px; padding: 11px 24px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .1s; }
.lc-btn-primary:hover { background: var(--lc-brand-d); }
.lc-btn-primary:active { transform: translateY(1px); }

.lc-table-wrap { width: 100%; overflow-x: auto; }
.lc-sku-table, .lc-alloc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lc-sku-table th, .lc-alloc-table th { background: var(--lc-bg); color: var(--lc-mut); font-weight: 600; text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--lc-line); white-space: nowrap; font-size: 12.5px; }
.lc-sku-table td, .lc-alloc-table td { padding: 7px 6px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.lc-in { width: 100%; border: 1px solid #d5dfe9; border-radius: 6px; padding: 5px 7px; font-size: 13px; color: var(--lc-ink); background: #fff; box-sizing: border-box; }
.lc-in:focus { outline: none; border-color: var(--lc-brand); box-shadow: 0 0 0 2px rgba(26, 77, 143, .12); }
.lc-in.num { text-align: right; font-variant-numeric: tabular-nums; }
.lc-color { width: 24px; height: 24px; border: none; padding: 0; background: none; cursor: pointer; border-radius: 4px; }
.lc-del { background: none; border: none; color: #94a3b8; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.lc-del:hover { color: #dc2626; background: #fee2e2; }

.lc-sku-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--lc-line); }
.lc-total-bar { font-size: 13.5px; color: var(--lc-mut); }
.lc-total-bar b { color: var(--lc-brand); }

.lc-opts-grid { display: grid; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--lc-bg); border-radius: 10px; border: 1px solid #e6edf6; }
.lc-opt-group { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13.5px; }
.lc-opt-label { font-weight: 600; color: var(--lc-mut); }
.lc-radio, .lc-chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

.lc-run-row { margin-top: 16px; display: flex; justify-content: flex-end; }

.lc-alert { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.65; }
.lc-alert.warn { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.lc-alert.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }

.lc-sec-head { margin: 22px 0 10px; }
.lc-sec-head h2 { margin: 0; font-size: 18px; padding-left: 11px; border-left: 4px solid var(--lc-brand); color: var(--lc-ink); }

.lc-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 12px; margin-bottom: 18px; }
.lc-plan-card { text-align: left; background: #fff; border: 2px solid var(--lc-line); border-radius: 12px; padding: 13px 15px; cursor: pointer; transition: all .15s; font-family: inherit; }
.lc-plan-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.lc-plan-card.active { border-color: var(--lc-brand); background: #f5f9ff; box-shadow: 0 6px 18px rgba(26, 77, 143, .1); }
.lc-plan-badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--lc-brand); }
.lc-plan-badge.is-best { background: var(--lc-brand); color: #fff; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; }
.lc-plan-badge.is-warn { background: #dc2626; color: #fff; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; }
.lc-plan-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; font-size: 13px; color: var(--lc-ink); }
.lc-plan-kpis b { font-size: 15px; color: var(--lc-brand-d); }
.lc-plan-sub { margin-top: 5px; font-size: 12px; color: var(--lc-mut); }

.lc-viewer-panel { background: #fff; border: 1px solid var(--lc-line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(16, 48, 79, .05); }
.lc-ctabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--lc-line); }
.lc-ctab { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border: 1px solid var(--lc-line); border-radius: 9px; background: #fff; cursor: pointer; font-family: inherit; transition: all .15s; }
.lc-ctab b { font-size: 13.5px; color: var(--lc-ink); }
.lc-ctab span { font-size: 12px; color: var(--lc-mut); margin-top: 2px; }
.lc-ctab.active { background: var(--lc-brand); border-color: var(--lc-brand); }
.lc-ctab.active b, .lc-ctab.active span { color: #fff; }

.lc-vbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef2f7; background: #fff; }
.lc-vbtns, .lc-export-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-vbtn { background: #f4f7fb; color: var(--lc-ink); border: 1px solid #dce4ee; border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lc-vbtn:hover { border-color: var(--lc-brand); color: var(--lc-brand); }
.lc-vbtn.active { background: var(--lc-brand); color: #fff; border-color: var(--lc-brand); }

.lc-canvas-wrap { position: relative; width: 100%; height: 470px; background: #eef3f8; }
.lc-canvas { width: 100%; height: 100%; }
.lc-tooltip { position: absolute; z-index: 20; pointer-events: none; background: rgba(15, 23, 42, .92); color: #fff; padding: 8px 11px; border-radius: 8px; font-size: 12.5px; line-height: 1.55; max-width: 260px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

.lc-step-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: #f8fafc; border-top: 1px solid #eef2f7; }
.lc-step-lbl { font-size: 13px; font-weight: 600; color: var(--lc-mut); }
.lc-step-bar input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--lc-brand); cursor: pointer; }
.lc-step-num { font-size: 13px; font-weight: 700; color: var(--lc-brand); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

.lc-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: #fff; border-top: 1px solid var(--lc-line); }
.lc-metric { background: var(--lc-bg); border: 1px solid #e6edf6; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.lc-metric span { font-size: 12px; color: var(--lc-mut); }
.lc-metric b { font-size: 18px; color: var(--lc-brand-d); margin: 3px 0; font-variant-numeric: tabular-nums; }
.lc-metric small { font-size: 11.5px; color: var(--lc-mut); }
.lc-metric.warn { background: #fff7ed; border-color: #fed7aa; }
.lc-metric.warn b { color: #c2410c; }

.lc-alloc-row { cursor: pointer; transition: background .12s; }
.lc-alloc-row:hover { background: #f5f9ff; }
.lc-alloc-row.is-hl { background: #dbeafe !important; }
.lc-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lc-subname { color: var(--lc-mut); font-size: 12.5px; }
.lc-alloc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-alloc-chip { display: inline-block; padding: 4px 10px; border-radius: 7px; background: #eef4fc; border: 1px solid #cfe0f5; color: #0f2f4d; font-size: 12.5px; cursor: pointer; }
.lc-alloc-chip:hover { background: var(--lc-brand); color: #fff; border-color: var(--lc-brand); }
.lc-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lc-st.ok { background: #dcfce7; color: #166534; }
.lc-st.split { background: #e0f2fe; color: #075985; }
.lc-st.warn { background: #fee2e2; color: #991b1b; }

.lc-cta-card { margin-top: 20px; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg, #0f2f4d, #1a4d8f); color: #fff; }
.lc-cta-head h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.lc-cta-head p { margin: 0 0 14px; font-size: 13.5px; color: #dbeafe; }
.lc-cta-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lc-cta-form input { flex: 1; min-width: 170px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .96); color: var(--lc-ink); font-size: 14px; }
.lc-cta-form .lc-btn-primary { background: #f59e0b; color: #111827 !important; }
.lc-cta-form .lc-btn-primary:hover { background: #d97706; color: #fff !important; }
.lc-cta-hots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lc-cta-hots .lc-chip { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
.lc-cta-hots .lc-chip:hover { background: #fff; color: var(--lc-brand); }

.lc-modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lc-modal { background: #fff; border-radius: 14px; padding: 20px 22px; max-width: 560px; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.lc-modal h3 { margin: 0 0 8px; font-size: 17px; }
.lc-modal-desc { margin: 0 0 12px; font-size: 13px; color: var(--lc-mut); line-height: 1.6; }
.lc-modal textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--lc-line); border-radius: 8px; padding: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.lc-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

@media (max-width: 900px) {
  .lc-metrics { grid-template-columns: repeat(2, 1fr); }
  .lc-canvas-wrap { height: 360px; }
}
@media print {
  header, footer, .lc-toolbar, .lc-opts-grid, .lc-run-row, .lc-vbar, .lc-step-bar, .lc-cta-card { display: none !important; }
  .lc-canvas-wrap { height: 340px; }
}
