/**
 * 布局配置面板样式
 * Layout Configuration Panel Styles
 * 
 * @version 1.0.0
 */

/* 面板容器 */
.layout-config-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 头部 */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #667eea;
    color: white;
}

.config-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.config-actions {
    display: flex;
    gap: 8px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #fff;
    color: #667eea;
    font-weight: 600;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-danger {
    background: #ff4d4f;
    color: white;
    font-weight: 600;
}

.btn-danger:hover {
    background: #ff7875;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-add {
    background: #52c41a;
    color: white;
}

.btn-add:hover {
    background: #73d13d;
}

.btn-remove {
    background: #ff4d4f;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
}

.btn-remove:hover {
    background: #ff7875;
}

/* 布局操作按钮区域 */
.layout-actions-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.layout-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.btn-layout-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 0;
}

.btn-layout-action:hover {
    background: #f0f0f0;
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-layout-action .btn-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.btn-layout-action .btn-text {
    font-size: 12px;
    color: #666;
}

/* 布局方案选择器 */
.layout-selector {
    width: 100%;
}

.layout-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.layout-select:hover {
    border-color: #667eea;
}

.layout-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 配置主体 */
.config-body {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.config-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.config-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* 表单样式 */
.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

/* 楼层标签 */
.floor-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.floor-tab {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s;
}

.floor-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.floor-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 排配置 */
.row-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.row-section-title #current-floor-title {
    flex-shrink: 0;
}

.row-title-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-title-actions .btn {
    white-space: nowrap;
}

.btn-collapse-all,
.btn-expand-all {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-collapse-all:hover,
.btn-expand-all:hover {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #1890ff;
}

.rows-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.row-config {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.row-config.row-highlight {
    background: #fffbe6;
    border-color: #faad14;
    box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2), 0 4px 12px rgba(250, 173, 20, 0.15);
    transform: scale(1.01);
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.row-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-order-controls {
    display: flex;
    gap: 4px;
}

.btn-order {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

.btn-order:hover:not(:disabled) {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.btn-order:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.row-title {
    font-weight: 600;
    color: #333;
}

.row-params {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.row-params .form-group {
    flex: 1;
}

/* 列配置 */
.columns-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d9d9d9;
}

.column-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    margin-bottom: 8px;
}

.column-config .col-header {
    width: 100%;
}

.column-config .col-header .col-name {
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 6px 10px;
}

.column-config .col-header .col-name:focus {
    border-color: #40a9ff;
    outline: none;
}

.column-config .col-params {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.column-config .col-params .form-control {
    flex: 1;
    min-width: 50px;
}

.column-config .col-params .col-width,
.column-config .col-params .col-length,
.column-config .col-params .col-height {
    flex: 0.7;
}

.column-config .col-params select.form-control {
    flex: 1.2;
}

/* 货架类型选择器 */
.column-config .col-params select.col-rack-type {
    flex: 1;
    min-width: 80px;
    font-weight: 500;
}

/* 无货架 - 灰色 */
.column-config .col-params select.col-rack-type[value="none"],
.column-config .col-params select.col-rack-type:has(option[value="none"]:checked) {
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    color: #666;
}

/* 托盘货架 - 蓝色 */
.column-config .col-params select.col-rack-type[value="pallet"],
.column-config .col-params select.col-rack-type:has(option[value="pallet"]:checked) {
    background-color: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

/* 隔板货架 - 绿色 */
.column-config .col-params select.col-rack-type[value="partition"],
.column-config .col-params select.col-rack-type:has(option[value="partition"]:checked) {
    background-color: #f6ffed;
    border-color: #b7eb8f;
    color: #52c41a;
}

/* 地堆托盘 - 橙色 */
.column-config .col-params select.col-rack-type[value="floor"],
.column-config .col-params select.col-rack-type:has(option[value="floor"]:checked) {
    background-color: #fff7e6;
    border-color: #ffd591;
    color: #fa8c16;
}

.column-config .col-params select.col-rack-type option {
    background-color: #fff;
    color: #333;
}

/* 第二排选择器行 */
.column-config .col-selectors {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}

.column-config .col-selectors .form-control {
    flex: 1;
    min-width: 80px;
}

.column-config .col-selectors select.col-function {
    flex: 1.2;
}

/* 货架类型选择器样式 */
.column-config .col-selectors select.col-rack-type {
    flex: 1;
    min-width: 80px;
    font-weight: 500;
}

/* 无货架 - 灰色 */
.column-config .col-selectors select.col-rack-type[value="none"],
.column-config .col-selectors select.col-rack-type:has(option[value="none"]:checked) {
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    color: #666;
}

/* 托盘货架 - 蓝色 */
.column-config .col-selectors select.col-rack-type[value="pallet"],
.column-config .col-selectors select.col-rack-type:has(option[value="pallet"]:checked) {
    background-color: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

/* 隔板货架 - 绿色 */
.column-config .col-selectors select.col-rack-type[value="partition"],
.column-config .col-selectors select.col-rack-type:has(option[value="partition"]:checked) {
    background-color: #f6ffed;
    border-color: #b7eb8f;
    color: #52c41a;
}

/* 地堆托盘 - 橙色 */
.column-config .col-selectors select.col-rack-type[value="floor"],
.column-config .col-selectors select.col-rack-type:has(option[value="floor"]:checked) {
    background-color: #fff7e6;
    border-color: #ffd591;
    color: #fa8c16;
}

.column-config .col-selectors select.col-rack-type option {
    background-color: #fff;
    color: #333;
}

/* 通道方向选择器 */
.column-config .col-selectors select.col-aisle-direction {
    flex: 0.8;
    min-width: 70px;
    font-size: 12px;
    background-color: #f0f5ff;
    border-color: #adc6ff;
    color: #2f54eb;
}

.column-config .col-selectors select.col-aisle-direction option {
    background-color: #fff;
    color: #333;
}

.btn-add-col {
    background: #1890ff;
    color: white;
    margin-top: 8px;
    width: 100%;
}

.btn-add-col:hover {
    background: #40a9ff;
}

/* 统计信息 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 功能区占比 */
.zone-ratios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ratio-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ratio-bar-container {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.ratio-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.ratio-label {
    font-size: 12px;
    color: #666;
    min-width: 80px;
}

.ratio-value {
    font-size: 12px;
    color: #333;
    min-width: 50px;
    text-align: right;
}

/* 选中区域信息 */
.selected-zone-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.zone-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

/* 空楼层提示 */
.empty-floor-hint {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #fafafa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.empty-floor-hint .hint-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-floor-hint .hint-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-floor-hint .hint-desc {
    font-size: 14px;
}

/* 列标题容器 */
.column-config .col-header .col-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 列位置调换按钮容器 */
.column-config .col-header .col-order-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* 列位置调换按钮样式 - 复用 btn-order 样式 */
.column-config .col-header .col-order-controls .btn-order {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* 列名称输入框 - 占据剩余空间 */
.column-config .col-header .col-title-container .col-name {
    flex: 1;
}

/* ==================== 场景索引面板 ==================== */
#scene-index-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    max-width: 260px;
    max-height: 60vh;
    font-size: 13px;
}

.scene-index-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.scene-index-panel.collapsed {
    transform: translateX(calc(100% - 28px));
}

.scene-index-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #667eea;
    color: white;
}

/* 列内可折叠配置面板 */
.config-collapsible-panel .config-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

.config-collapsible-panel .config-panel-header:hover {
    background: rgba(0, 0, 0, 0.06);
}

.config-collapsible-panel .config-panel-toggle {
    font-size: 11px;
    color: #666;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.config-collapsible-panel .config-panel-body {
    display: none;
}

/* 全局可折叠 section */
.collapsible-section .collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px 12px;
    margin: -12px -16px 0;
    background: #f5f7fa;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    transition: background 0.2s, border-color 0.2s;
}

.collapsible-section .collapsible-header:hover {
    background: #eef1f6;
    border-color: #c0c4cc;
}

.collapsible-section .collapsible-header span:first-child {
    font-weight: 600;
    color: #303133;
}

.collapsible-section .section-toggle {
    font-size: 12px;
    color: #606266;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s, background 0.2s;
}

.collapsible-section .collapsible-header:hover .section-toggle {
    background: rgba(255, 255, 255, 0.95);
}

.collapsible-section .collapsible-body {
    display: none;
    padding: 16px 12px 4px;
    margin: 0 -12px;
    background: #fafbfc;
    border-radius: 0 0 6px 6px;
}

.collapsible-section .collapsible-header {
    margin-bottom: 0;
}

.collapsible-section:has(.collapsible-body[style*="display: block"]) .collapsible-header,
.collapsible-section:has(.collapsible-body:not([style*="display: none"])) .collapsible-header {
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
    border-bottom-color: transparent;
}

/* 排的可折叠头部 */
.collapsible-row-header {
    cursor: pointer;
    padding: 10px 14px;
    margin: -16px -16px 12px;
    background: #f5f7fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e4e7ed;
    transition: background 0.15s;
}

.collapsible-row-header:hover {
    background: #eef1f6;
}

.collapsible-row-header .row-toggle {
    font-size: 11px;
    color: #606266;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.8);
    margin-right: 4px;
}

.collapsible-row-body {
    display: block;
}

/* 按功能区类型区分的列背景色 */
.column-config {
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.column-config.function-unloading   { background: rgba(231, 76, 60, 0.06);  border-left-color: #e74c3c; }
.column-config.function-inspection  { background: rgba(243, 156, 18, 0.06);  border-left-color: #f39c12; }
.column-config.function-receivingStaging { background: rgba(241, 196, 15, 0.06);  border-left-color: #f1c40f; }
.column-config.function-storage     { background: rgba(52, 152, 219, 0.06);  border-left-color: #3498db; }
.column-config.function-sorting     { background: rgba(155, 89, 182, 0.06);  border-left-color: #9b59b6; }
.column-config.function-packing     { background: rgba(26, 188, 156, 0.06);  border-left-color: #1abc9c; }
.column-config.function-shippingStaging { background: rgba(46, 204, 113, 0.06);  border-left-color: #2ecc71; }
.column-config.function-loading     { background: rgba(39, 174, 96, 0.06);  border-left-color: #27ae60; }
.column-config.function-returns     { background: rgba(230, 126, 34, 0.06);  border-left-color: #e67e22; }
.column-config.function-office      { background: rgba(149, 165, 166, 0.06);  border-left-color: #95a5a6; }
.column-config.function-staging     { background: rgba(108, 92, 231, 0.06);  border-left-color: #6c5ce7; }
.column-config.function-aisle       { background: rgba(223, 230, 233, 0.4);  border-left-color: #b2bec3; }

/* 子区块按功能区类型区分的背景色 */
.sub-zone-item {
    transition: background 0.2s, border-color 0.2s;
}

.sub-zone-item.function-unloading   { background: rgba(231, 76, 60, 0.08);  border-color: #e74c3c; }
.sub-zone-item.function-inspection  { background: rgba(243, 156, 18, 0.08);  border-color: #f39c12; }
.sub-zone-item.function-receivingStaging { background: rgba(241, 196, 15, 0.08);  border-color: #f1c40f; }
.sub-zone-item.function-storage     { background: rgba(52, 152, 219, 0.08);  border-color: #3498db; }
.sub-zone-item.function-sorting     { background: rgba(155, 89, 182, 0.08);  border-color: #9b59b6; }
.sub-zone-item.function-packing     { background: rgba(26, 188, 156, 0.08);  border-color: #1abc9c; }
.sub-zone-item.function-shippingStaging { background: rgba(46, 204, 113, 0.08);  border-color: #2ecc71; }
.sub-zone-item.function-loading     { background: rgba(39, 174, 96, 0.08);  border-color: #27ae60; }
.sub-zone-item.function-returns     { background: rgba(230, 126, 34, 0.08);  border-color: #e67e22; }
.sub-zone-item.function-office      { background: rgba(149, 165, 166, 0.08);  border-color: #95a5a6; }
.sub-zone-item.function-staging     { background: rgba(108, 92, 231, 0.08);  border-color: #6c5ce7; }
.sub-zone-item.function-aisle       { background: rgba(223, 230, 233, 0.5);  border-color: #b2bec3; }

.scene-index-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.scene-index-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.scene-index-close:hover {
    background: rgba(255,255,255,0.35);
}

.scene-index-body {
    padding: 10px 0;
    max-height: 50vh;
    overflow-y: auto;
}

.scene-index-hint {
    padding: 0 12px 8px;
    font-size: 11px;
    color: #888;
}

.scene-index-empty {
    padding: 16px 12px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.scene-index-tree {
    padding: 0 6px;
}

.index-floor-item {
    margin-bottom: 8px;
}

.index-row-item {
    margin-bottom: 6px;
    padding: 4px 0 4px 8px;
    border-left: 2px dashed #d1d5db;
}

/* 楼层层级 */
.index-floor-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    background: #f3f4f6;
    border-left: 3px solid #667eea;
    transition: background 0.15s;
}

.index-floor-header:hover {
    background: #e5e7eb;
}

/* 排层级 */
.index-row-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #10b981;
    transition: background 0.15s, border-color 0.15s;
}

.index-row-header:hover {
    background: #f0fdf4;
    border-color: #a7f3d0;
}

/* 区域层级 */
.index-zone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: #4b5563;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

.index-zone-item:hover {
    background: #f0f5ff;
    color: #1890ff;
}

.index-zone-item.active {
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
    border-left: 2px solid #1890ff;
}

.index-icon,
.index-toggle {
    font-size: 10px;
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.index-floor-header .index-icon {
    color: #667eea;
    font-size: 11px;
}

.index-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
}

.index-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 子区块缩进 */
.index-sub-children .index-zone-item {
    font-size: 11px;
    color: #6b7280;
}

.index-children,
.index-sub-children {
    display: none;
}

.index-floor-header + .index-children,
.index-row-header + .index-children {
    display: block;
}
