#application-design .design-excel{width:min(1200px,calc(100vw - 28px))}
.design-excel .excel-plan-context,.design-excel .excel-plan-sheet-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.design-excel label:not(.excel-plan-check):not(.excel-plan-relation){display:grid;gap:5px;margin-block:8px}
.design-excel input:not([type=checkbox]),.design-excel select,.design-excel textarea{width:100%;min-width:0;box-sizing:border-box;min-height:34px}
.design-excel .excel-plan-check,.design-excel .excel-plan-relation{display:flex;align-items:flex-start;gap:8px;min-height:34px;padding:8px 0}
.excel-plan-check input,.excel-plan-relation input{flex-shrink:0;width:18px;height:18px}
.excel-plan-file{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--j-line)}
.excel-plan-file span{flex:1;min-width:0;overflow-wrap:anywhere}
.excel-plan-file button{min-width:34px;min-height:34px}
.excel-plan-sheet{margin:12px 0;border:1px solid var(--j-line);padding:10px;background:var(--j-surface)}
.design-excel .excel-plan-sheet>summary{overflow-wrap:anywhere}
.excel-plan-table{overflow:auto;max-height:430px;margin:12px 0;border:1px solid var(--j-line)}
.excel-plan-table table{border-collapse:collapse;width:100%;font-size:12px;min-width:640px}
.excel-plan-table caption{text-align:left;padding:8px;background:var(--j-secondary)}
.excel-plan-table th,.excel-plan-table td{text-align:left;vertical-align:top;padding:8px;border-bottom:1px solid var(--j-line)}
.excel-plan-table th{position:sticky;top:0;background:var(--j-secondary);z-index:1}
.excel-plan-table th:first-child{width:48px}
.excel-plan-table td:nth-child(2){min-width:160px}.excel-plan-table td:nth-child(3){min-width:145px}
.excel-plan-table input[type=checkbox]{width:18px;height:18px}
.excel-plan-table small,.excel-plan-relation small,.excel-plan-sample{display:block;overflow-wrap:anywhere;max-width:300px}
.excel-plan-table small,.excel-plan-relation small{color:var(--j-muted);margin-top:5px}
.excel-plan-relation{border-bottom:1px solid var(--j-line)}
.design-excel [role=alert]{padding:10px;border-left:3px solid var(--adm-danger,#dd4b39);background:var(--j-secondary)}
@media(max-width:650px){.design-excel .excel-plan-context,.design-excel .excel-plan-sheet-settings{grid-template-columns:minmax(0,1fr)}.design-excel>footer{display:flex;flex-wrap:wrap;gap:8px}.design-excel>footer button{flex:1}}
