/* ScanView — Draw / Drawing Layers */
.acn-draw-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 0; }
.acn-tool-btn {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: #2a3035; border: 1px solid #3b4247; border-radius: 4px;
    color: #cfd4d6; font-size: 11px; padding: 5px 2px; cursor: pointer;
}
.acn-tool-btn img { width: 24px; height: 24px; }
.acn-tool-btn:hover { background: #343b40; }
.acn-tool-btn.active { border-color: #FFC107; background: #3d3a2a; color: #fff; }
.acn-draw-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12px; color: #cfd4d6; }
.acn-draw-row .acn-select { flex: 1; min-width: 0; }
.acn-input {
    flex: 1; min-width: 0; background: #1f2427; border: 1px solid #3b4247; border-radius: 3px;
    color: #e3e6e8; font-size: 12px; padding: 3px 6px;
}
.acn-hint { font-size: 11px; color: #FFC107; padding: 4px 0 6px; line-height: 1.35; }
.acn-seg { display: flex; flex: 1; border: 1px solid #3b4247; border-radius: 4px; overflow: hidden; }
.acn-seg-btn {
    flex: 1; background: #2a3035; border: none; border-left: 1px solid #3b4247;
    color: #cfd4d6; font-size: 11px; padding: 4px 2px; cursor: pointer; white-space: nowrap;
}
.acn-seg-btn:first-child { border-left: none; }
.acn-seg-btn:hover { background: #343b40; }
.acn-seg-btn.active { background: #3d3a2a; color: #FFC107; }
.acn-icon-btn {
    background: transparent; border: 1px solid #3b4247; border-radius: 3px;
    color: #cfd4d6; cursor: pointer; font-size: 12px; line-height: 1; padding: 3px 6px;
}
.acn-icon-btn:hover { background: #343b40; color: #fff; }
.acn-layers-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; }
.acn-status { font-size: 11px; color: #8BC34A; }
.acn-status.dirty { color: #FFC107; }
.acn-status.dirty::before { content: '● '; }
.acn-save-btn {
    background: #1976D2; border: none; border-radius: 3px; color: #fff;
    cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 14px;
}
.acn-save-btn:disabled { background: #3b4247; color: #8a9296; cursor: default; }
.acn-group { margin: 4px 0; }
.acn-group-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #e3e6e8; font-weight: 600; }
.acn-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.acn-count { color: #9AA1A4; font-weight: 400; }
.acn-group-items { padding-left: 18px; }
.acn-folder { margin: 2px 0; }
.acn-folder-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cfd4d6; cursor: pointer; user-select: none; }
.acn-folder-head:hover { color: #fff; }
.acn-folder-name { font-weight: 600; }
.acn-folder-items { padding-left: 18px; }
.acn-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cfd4d6; padding: 1px 0; }
.acn-glyph { width: 12px; text-align: center; color: #9AA1A4; flex: none; }
.acn-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acn-value { color: #9AA1A4; font-size: 11px; white-space: nowrap; }
.acn-del { padding: 1px 5px; font-size: 10px; }
.acn-empty { font-size: 11px; color: #7d8589; font-style: italic; padding: 2px 0; }
.acn-local { padding: 6px 0; font-size: 11px; color: #9AA1A4; }
.acn-link-btn { background: none; border: none; color: #64B5F6; cursor: pointer; font-size: 11px; padding: 2px 0; }
.acn-link-btn:hover { text-decoration: underline; }

.acn-layers-toolbar { display: flex; gap: 6px; align-items: center; padding: 2px 0 6px; }
.acn-layers-toolbar .acn-select { flex: 1; min-width: 0; }
.acn-crs { font-size: 11px; color: #9AA1A4; padding: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acn-caret { width: 10px; cursor: pointer; color: #9AA1A4; flex: none; user-select: none; }
.acn-vis { margin: 0; }
.acn-group-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acn-head-actions { margin-left: auto; display: flex; gap: 2px; }
.acn-head-actions .acn-icon-btn { padding: 1px 4px; font-size: 10px; border-color: transparent; }
.acn-head-actions .acn-icon-btn:hover { border-color: #3b4247; }
.acn-off { opacity: 0.55; }
.acn-color-input { width: 18px; height: 16px; padding: 0; border: none; background: none; cursor: pointer; flex: none; }
.acn-rename { flex: 1; font-weight: 400; }
.acn-item { cursor: pointer; border-radius: 3px; padding: 1px 2px; }
.acn-item:hover { background: #2a3035; }
.acn-item.selected { background: #37404a; outline: 1px solid #5a6570; }
.acn-item .acn-zoom, .acn-item .acn-del { visibility: hidden; padding: 1px 4px; font-size: 10px; }
.acn-item:hover .acn-zoom, .acn-item:hover .acn-del, .acn-item.selected .acn-zoom, .acn-item.selected .acn-del { visibility: visible; }

.acn-props { padding: 2px 0 8px; font-size: 12px; color: #cfd4d6; }
.acn-props-table { width: 100%; border-collapse: collapse; }
.acn-props-table th { text-align: left; font-weight: 400; color: #9AA1A4; padding: 2px 6px 2px 0; white-space: nowrap; vertical-align: middle; width: 1%; }
.acn-props-table td { padding: 2px 0; word-break: break-word; }
.acn-props-table .acn-input, .acn-props-table .acn-select { width: 100%; box-sizing: border-box; }
.acn-color-row { display: inline-flex; align-items: center; gap: 6px; }
.acn-props-actions { display: flex; gap: 6px; padding-top: 6px; }
.acn-danger:hover { border-color: #e57373; color: #ffcdd2; }
.acn-warn { color: #FFC107; font-size: 11px; }

/* Tanks & Cylinders */
.acn-tanks { padding: 2px 0 8px; }
.acn-tank-step { font-size: 12px; font-weight: 600; color: #e3e6e8; margin: 8px 0 4px; }
.acn-tank-buttons { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 0; }
.acn-tank-param { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cfd4d6; padding: 2px 0; }
.acn-tank-param label { flex: 1; }
.acn-tank-param .acn-input { flex: none; width: 70px; }
.acn-tank-help { font-size: 10.5px; color: #8a9296; line-height: 1.3; padding: 0 0 4px; }
.acn-tank-status { font-size: 11px; color: #9AA1A4; min-height: 14px; padding: 4px 0; }
.acn-tank-param select.acn-tank-select { width: 118px; }
.acn-tank-list .acn-input { flex: 1; width: auto; }
.acn-tank-param .acn-tank-pickz { flex: none; width: 26px; padding: 1px 0; text-align: center; font-size: 14px; line-height: 18px; }
.acn-tank-param .acn-tank-pickz.acn-active { background: #1976D2; border-color: #1976D2; color: #fff; }
.acn-tank-pickz-gap { flex: none; width: 26px; }
.acn-tank-rings-wrap { max-height: 220px; overflow-y: auto; margin: 6px 0; }
.acn-tank-rings { width: 100%; border-collapse: collapse; font-size: 10.5px; color: #cfd4d6; font-variant-numeric: tabular-nums; }
.acn-tank-rings th { position: sticky; top: 0; background: #2a3033; color: #9AA1A4; font-weight: 600; text-align: right; padding: 2px 4px; }
.acn-tank-rings td { text-align: right; padding: 1px 4px; border-top: 1px solid rgba(255,255,255,0.06); }
#acn_tank_result .acn-warn { padding: 2px 0; }

.acn-modal {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.55); align-items: center; justify-content: center;
}
.acn-modal-box {
    background: #1f2427; border: 1px solid #3b4247; border-radius: 6px; color: #e3e6e8;
    width: min(760px, 92vw); max-height: 80vh; display: flex; flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.acn-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #3b4247; }
.acn-modal-head h3 { margin: 0; font-size: 15px; }
.acn-modal-body { overflow: auto; padding: 8px 14px 14px; }
.acn-points-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.acn-points-table th, .acn-points-table td { padding: 4px 8px; border-bottom: 1px solid #2f363a; text-align: left; white-space: nowrap; }
.acn-points-table th { color: #9AA1A4; font-weight: 600; position: sticky; top: 0; background: #1f2427; }
.acn-points-table tbody tr { cursor: pointer; }
.acn-points-table tbody tr:hover { background: #2a3035; }

.acn-export-box { width: min(440px, 92vw); }
.acn-export-form { font-size: 13px; }
.acn-export-form fieldset { border: 1px solid #3b4247; border-radius: 4px; margin: 0 0 10px; padding: 6px 10px 8px; }
.acn-export-form legend { color: #9AA1A4; font-size: 12px; padding: 0 4px; }
.acn-export-form label { display: block; padding: 2px 0; cursor: pointer; }
.acn-export-form .acn-inline { display: flex; align-items: center; gap: 8px; }
.acn-export-form .acn-inline .acn-input { width: 70px; flex: none; }
.acn-export-form .acn-disabled { opacity: 0.45; }
.acn-export-note { font-size: 11px; color: #9AA1A4; min-height: 0; }
.acn-export-status { font-size: 12px; color: #ffb74d; min-height: 16px; padding: 2px 0; }

/* Tank inspection view (tankview.js) */
.acn-input-bad { border-color: #E53935 !important; }
.acn-tank-spec { margin-top: 6px; }
.acn-insp { margin: 8px 0 4px; padding: 6px 8px; border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; background: rgba(255,255,255,0.03); font-size: 12px; color: #cfd4d6; }
.acn-insp-toggle { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #e3e6e8; cursor: pointer; }
.acn-insp-hint { font-size: 10.5px; color: #8a9296; line-height: 1.3; padding-top: 4px; }
.acn-insp-check { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.acn-insp-check b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.acn-insp-chip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.acn-insp-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.acn-insp-row > span:first-child { flex: 1; color: #9AA1A4; }
.acn-insp-row .acn-select { width: 118px; flex: none; }
.acn-insp-range { display: flex; align-items: center; gap: 6px; flex: none; width: 150px; }
.acn-insp-range input[type=range] { flex: 1; min-width: 0; }
.acn-insp-val { width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.acn-insp-show { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.acn-insp-show label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.acn-insp-labels { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; }
.acn-insp-label { position: absolute; left: 0; top: 0; margin: -9px 0 0 6px; padding: 1px 6px; font: 11px/16px sans-serif; color: #fff; white-space: nowrap; background: rgba(20,24,26,0.82); border-left: 3px solid #9AA1A4; border-radius: 2px; font-variant-numeric: tabular-nums; }
.acn-insp-label-lean { font-weight: 600; }
.acn-insp-label-n { margin: -9px 0 0 -6px; border-left: none; background: transparent; font-weight: 700; text-shadow: 0 0 3px #000; }
.acn-insp-legend { position: absolute; left: 12px; bottom: 12px; z-index: 4; width: 280px; padding: 8px 10px; background: rgba(20,24,26,0.88); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #e3e6e8; font: 11px/1.35 sans-serif; pointer-events: none; }
.acn-insp-title { font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.acn-insp-bar { height: 10px; border-radius: 2px; }
.acn-insp-ticks { position: relative; height: 14px; margin: 2px 8px 0; color: #cfd4d6; }
.acn-insp-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.acn-insp-sub { text-align: center; color: #9AA1A4; font-size: 10px; margin-top: 2px; }
.acn-insp-line { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.acn-insp-note { color: #8a9296; font-size: 10px; margin-top: 4px; }
@media (max-width: 600px) {
    .acn-insp-legend { width: 190px; left: 6px; bottom: 6px; padding: 6px 8px; font-size: 10px; }
    .acn-insp-note { display: none; }
    .acn-insp-label { font-size: 10px; line-height: 14px; }
}
#menu_tanks { position: relative; }
.acn-help-link { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 1px solid #9AA1A4; color: #cfd4d6 !important; font: 700 11px/16px sans-serif; text-align: center; text-decoration: none; }
.acn-help-link:hover { background: #1976D2; border-color: #1976D2; color: #fff !important; }
.acn-tank-insp-btn { display: block; margin-top: 6px; }
