/* Slope stability (LEM) tool: app_slope/templates/app_slope/slope.html, static/js/slope.js */
.sl-wide { max-width: 1680px; }
.sl-off { display: none !important; }
.sl-hint { font-size: .75rem; color: #6c757d; margin: .2rem 0 .1rem; }
.sl-u { font-weight: 400; color: #888; font-size: .7rem; }
.sl-t { font-size: .8rem; }
.sl-t th { font-weight: 600; color: #555; padding: .1rem .15rem; white-space: nowrap; font-size: .76rem; }
.sl-t td { padding: .08rem .12rem; vertical-align: middle; }
.sl-t input, .sl-t select { width: 100%; font-size: .78rem; padding: .08rem .2rem; border: 1px solid #dee2e6; border-radius: 3px; background: #fff; }
.sl-t input { text-align: center; }
.sl-t input.sl-name { text-align: left; min-width: 4rem; }
.sl-t .sl-del, .sl-t .sl-more { color: #888; cursor: pointer; border: 0; background: none; padding: 0 .15rem; }
.sl-t .sl-del:hover { color: #c62828; }
.sl-t tr.sl-sel td { background: #eef4fd; }
.sl-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; border: 1px solid #555; vertical-align: -1px; }
.sl-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.2rem, 1fr)); gap: 0 .5rem; font-size: .8rem; }
.sl-methods label { white-space: nowrap; }
.sl-methods .form-check { margin: 0; min-height: 0; padding-left: 1.4rem; }
.sl-grid2 { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: .2rem 0; }
.sl-grid2 .input-group-text { width: 2rem; justify-content: center; }
.sl-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; font-size: .82rem; }
.sl-toolbar .btn.active { background: #212529; color: #fff; border-color: #212529; }
.sl-snap { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; color: #444; }
.sl-snap input[type=number] { width: 4.2rem; padding: .05rem .3rem; }
.sl-new-mat { white-space: nowrap; color: #444; }
.sl-new-mat select { width: auto; max-width: 10rem; padding-top: .1rem; padding-bottom: .1rem; }
.sl-xy { font-family: Consolas, monospace; font-size: .78rem; color: #555; min-width: 11rem; text-align: right; }
.sl-report { background: #fff; padding: 10px 12px 8px; }
.sl-head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; margin-bottom: 4px; }
.sl-title { font-size: 1.05rem; font-weight: 600; cursor: text; border-radius: 4px; padding: 0 4px; margin-left: -4px; }
.sl-title:hover, .sl-title:focus-visible { background: var(--bs-tertiary-bg, #f1f3f5); outline: none; }
.sl-title-input { font-size: 1.05rem; font-weight: 600; width: min(32rem, 80vw); }
.sl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-chip { border: 1px solid #e3e6ea; border-radius: 6px; padding: 2px 8px; font-size: .8rem; background: #fbfbfc; cursor: pointer; white-space: nowrap; }
.sl-chip b { font-size: .92rem; }
.sl-chip.on { outline: 2px solid #212529; background: #fff; }
.sl-chip.low { border-color: #e8b4b4; background: #fdf3f3; color: #a51d1d; }
.sl-chip.none { color: #999; }
.sl-chips.outdated .sl-chip { opacity: .45; }
.sl-canvas-wrap { position: relative; }
.sl-svg { width: 100%; height: 560px; display: block; background: #fff; border: 1px solid #e3e6ea; border-radius: 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.sl-svg text { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.sl-svg.mode-select { cursor: default; }
.sl-svg.mode-pan { cursor: grabbing; }
.sl-svg.mode-draw { cursor: crosshair; }
.sl-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.55); z-index: 20; }
.sl-busy .sl-loading, .sl-dxf-busy .sl-loading { display: flex; }
.sl-mode-hint { position: absolute; left: 10px; top: 8px; font-size: .78rem; background: rgba(255,255,255,.92); border: 1px solid #e3e6ea; border-radius: 5px; padding: 2px 8px; color: #333; pointer-events: none; }
.sl-mode-hint:empty { display: none; }
.sl-foot { font-size: .75rem; color: #6c757d; margin-top: 4px; min-height: 1em; }
.sl-hatch-note { min-height: 0; }
.sl-hatch-note:empty { display: none; }
.sl-card { padding: 8px 12px; font-size: .82rem; }
.sl-card .kp-card-head { margin-bottom: .3rem; }
.sl-coords { max-height: 260px; overflow: auto; }
.sl-coords table { font-size: .78rem; }
.sl-coords td { padding: 0 .15rem; }
.sl-coords input { width: 6.5rem; font-size: .78rem; padding: .02rem .25rem; text-align: right; border: 1px solid #dee2e6; border-radius: 3px; }
.sl-coords textarea { width: 100%; font-family: Consolas, monospace; font-size: .76rem; height: 140px; }
.sl-coords tr.sl-vsel td { background: #fff3cd; }
.sl-kv { width: 100%; }
.sl-kv td { padding: 1px 0; vertical-align: top; }
.sl-kv td:last-child { text-align: right; padding-left: .6rem; white-space: nowrap; }
.sl-warn { color: #8a5a00; }
.sl-flag { color: #8a5a00; font-size: .78rem; }
.sl-pub { font-size: .78rem; color: #444; border-top: 1px solid #eef0f2; margin-top: .4rem; padding-top: .3rem; }
.sl-slice-table { max-height: 320px; overflow: auto; margin-top: .4rem; }
.sl-slice-table table { font-size: .74rem; width: 100%; }
.sl-slice-table th, .sl-slice-table td { padding: 1px 5px; text-align: right; white-space: nowrap; }
.sl-slice-table th { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e3e6ea; }
.sl-backdrop { position: fixed; inset: 0; background: rgba(20,24,28,.45); z-index: 1050; }
.sl-modal { position: fixed; left: 3vw; right: 3vw; top: 4vh; bottom: 4vh; background: #fff; border-radius: 10px; z-index: 1060; box-shadow: 0 1rem 3rem rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.sl-modal-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #e3e6ea; }
.sl-modal-title { font-weight: 600; font-size: 1.05rem; }
.sl-modal-body { flex: 1; overflow: auto; padding: 12px 14px; position: relative; }
.sl-dxf-svg { height: 420px; }
.sl-layers { font-size: .8rem; width: 100%; margin-top: .5rem; }
.sl-layers th { font-weight: 600; color: #555; border-bottom: 1px solid #e3e6ea; padding: 2px 4px; }
.sl-layers td { padding: 2px 4px; }
.sl-layers select, .sl-layers input { font-size: .78rem; padding: .05rem .25rem; width: 100%; }
#sl-errors .alert, #sl-dxf-errors .alert { font-size: .85rem; padding: .4rem .6rem; margin-bottom: .4rem; }
.sl-examples { width: 34rem; max-width: calc(100vw - 3rem); max-height: calc(100vh - 8rem); overflow-y: auto; }
.sl-examples .dropdown-item b { display: block; }
.sl-examples .dropdown-item { white-space: normal; font-size: .85rem; }
@media (max-width: 991px) { .sl-svg { height: 420px; } }

/* materials: a list on the left, the parameters in a dialog */
.sl-matlist { display: flex; flex-direction: column; gap: 3px; }
.sl-mat { display: flex; align-items: center; gap: .45rem; padding: .28rem .4rem; border: 1px solid #e3e6ea; border-radius: 5px; background: #fff; cursor: pointer; }
.sl-mat:hover { border-color: #9ec5fe; background: #f5f9ff; }
.sl-mat.sl-mat-ph { border-color: #f0ad4e; background: #fffaf0; }
.sl-mat .sl-sw { width: 16px; height: 16px; flex: none; }
.sl-mat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sl-mat-name { font-weight: 600; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-mat-sum { font-size: .72rem; color: #6c757d; }
.sl-mat .sl-more, .sl-mat .sl-del { color: #888; border: 0; background: none; padding: 0 .15rem; flex: none; }
.sl-mat .sl-del:hover:not(:disabled) { color: #c62828; }
.sl-mat .sl-del:disabled { opacity: .3; cursor: default; }
.sl-dlg { left: 50%; right: auto; top: 7vh; bottom: auto; width: min(500px, 94vw); max-height: 86vh; transform: translateX(-50%); }
.sl-dlg .sl-modal-body { padding: 10px 14px 4px; }
.sl-dlg .kp-group { margin-bottom: .6rem; }
.sl-dlg .input-group { margin-bottom: 3px; }
.sl-dlg-sub { font-size: .76rem; color: #555; margin: .4rem 0 .15rem; }
.sl-modal-foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid #e3e6ea; }
.sl-sw-lg { width: 18px; height: 18px; }
.sl-exc-key { display: inline-block; width: 18px; height: 0; border-top: 2px dashed #5c3a1a; vertical-align: middle; margin-right: 2px; }
.sl-sup-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid #1864ab; vertical-align: middle; margin-right: 2px; }
.sl-sup-key-lg { width: 22px; border-top-width: 4px; margin-right: 6px; }
.sl-ftab { width: 100%; font-size: .74rem; border-collapse: collapse; margin: 4px 0; }
.sl-ftab th, .sl-ftab td { padding: 1px 3px; text-align: center; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.sl-ftab td:first-child, .sl-ftab th:first-child { text-align: left; }
.sl-ftab th.on, .sl-ftab td.on { background: #e7f1ff; }
.sl-ftab td.changed input { color: #c92a2a; font-weight: 600; }
.sl-ftab input { width: 3.2em; border: 1px solid #ced4da; border-radius: 3px; text-align: center; font-size: .74rem; padding: 0 1px; background: #fff; }
.sl-ftab td.gov { font-weight: 700; }
.sl-ftab td.low div { color: #c92a2a; }
.sl-dres td div { font-size: .7rem; }
.sl-stab td { text-align: right; }
.sl-xs { overflow-x: auto; max-width: 100%; }
.sl-ok { color: #2b8a3e; font-size: .85rem; }
.sl-pile-res { font-size: .8rem; background: #f8f9fa; border: 1px solid #e3e6ea; border-radius: 6px; padding: 5px 8px; margin-top: 4px; }
.sl-dlg textarea { font-family: var(--bs-font-monospace); font-size: .8rem; }
#sl-svg.sl-on-lim, #sl-svg .sl-lim { cursor: ew-resize; }
.sl-prog { width: min(360px, 80%); background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sl-prog .progress { width: 100%; height: 8px; }
.sl-prog-text { font-size: .8rem; text-align: center; min-height: 1.2em; }
.sl-jset { border-top: 1px dashed #dee2e6; margin-top: .4rem; }
.sl-j-app { font-size: .74rem; }
