/* Checklist editor, inspired by the classic Windows Explorer folder pane. */
body.classic-windows .layout-editor-dialog [hidden] { display:none!important; }
body.classic-windows .dialog.layout-editor-dialog { width:min(1100px,calc(100vw - 24px));height:min(800px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden; }
body.classic-windows .layout-editor-dialog form { display:flex;flex-direction:column;gap:6px;height:100%;padding:8px;min-height:0; }
body.classic-windows .layout-editor-dialog .dialog-heading { margin:0;padding:6px 8px;align-items:center;flex-shrink:0; }
body.classic-windows .layout-editor-dialog .dialog-heading .eyebrow { display:none; }
body.classic-windows .layout-editor-dialog .dialog-heading h2 { font-size:17px;color:#fff; }
body.classic-windows .layout-editor-dialog .icon-button { flex-shrink:0; }
.layout-editor-scroll { display:flex;flex-direction:column;gap:7px;overflow:auto;flex:1;min-height:0; }
body.classic-windows .layout-editor-dialog .layout-name-label { display:flex;align-items:center;gap:12px;font-size:11px;flex-shrink:0; }
.layout-name-label input { flex:1;min-width:0; }
body.classic-windows .layout-editor-dialog input { font-size:11px;padding:8px; }
body.classic-windows .layout-editor-dialog label { font-size:11px; }
body.classic-windows .layout-editor-dialog .form-note { font-size:10px;line-height:1.5; }
#layoutImportPanel { padding:8px;box-shadow:var(--classic-sunken);display:grid;gap:6px; }
#layoutWorkbookOptions { display:grid;gap:4px; }
.explorer-toolbar { display:flex;gap:6px;align-items:center;flex-wrap:wrap;flex-shrink:0;padding:4px;box-shadow:inset 0 1px #fff,inset 0 -1px #808080; }
.explorer-toolbar .button { display:flex;align-items:center;gap:6px;min-height:30px;font-size:11px; }
.explorer-tool-divider { height:24px;border-left:1px solid #808080;border-right:1px solid #fff;margin:0 3px; }
.explorer-address { display:flex;align-items:center;gap:10px;font-size:11px;flex-shrink:0; }
.explorer-address strong { font-weight:400;padding-left:4px; }
.explorer-address>span { background:#fff;box-shadow:var(--classic-sunken);padding:7px 9px;flex:1;min-width:0;white-space:nowrap;overflow:auto; }
.layout-explorer { flex:1;min-height:290px;display:grid;grid-template-columns:minmax(210px,38%) minmax(0,1fr);gap:6px; }
.explorer-tree-pane,.explorer-detail-pane { min-width:0;min-height:0;background:#fff;box-shadow:var(--classic-sunken);padding:2px; }
.explorer-tree-pane { display:flex;flex-direction:column; }
.explorer-pane-heading { padding:6px 8px;background:#c0c0c0;box-shadow:inset 1px 1px #fff,inset -1px -1px #808080;font-size:12px;flex-shrink:0; }
.explorer-tree { flex:1;min-height:0;overflow:auto;padding:10px 8px 16px;font-size:12px; }
.explorer-branches,.explorer-branches ul { list-style:none;margin:0;padding:0; }
.explorer-branches ul { margin-left:7px;padding-left:21px; }
.explorer-branches li { position:relative;margin:0;padding:0; }
.explorer-branches ul>li::before { content:'';position:absolute;left:-21px;top:0;bottom:0;border-left:1px dotted #808080; }
.explorer-branches ul>li:last-child::before { bottom:auto;height:15px; }
.explorer-branches ul>li::after { content:'';position:absolute;left:-21px;top:15px;width:21px;border-top:1px dotted #808080; }
body.classic-windows .explorer-node { display:flex;align-items:center;gap:6px;position:relative;min-height:30px;width:max-content;min-width:100%;cursor:default;color:#000;outline-offset:-1px; }
.tree-switch { display:inline-flex;justify-content:center;align-items:center;flex:0 0 13px;width:13px;height:13px;background:#fff;border:1px solid #808080;font:12px/1 Arial,sans-serif;cursor:pointer;z-index:1; }
.tree-switch.leaf { border-color:transparent;background:transparent;cursor:default; }
.tree-label { padding:3px 4px;white-space:nowrap; }
.tree-label small,.explorer-content-row small { font-size:11px; }
body.classic-windows .explorer-node.selected .tree-label { background:#000080;color:#fff; }
.explorer-item:focus-visible>.explorer-node .tree-label { outline:1px dotted #fff;outline-offset:-2px; }
body.classic-windows .explorer-item:focus-visible { outline:none; }
.explorer-icon { display:inline-block;position:relative;flex:0 0 18px;width:18px;height:15px;vertical-align:middle; }
.folder-icon { background:#ffdf66;border:1px solid #84661e;box-shadow:inset 1px 1px #fff3b0; }
.folder-icon::before { content:'';position:absolute;left:-1px;top:-4px;width:8px;height:4px;background:#ffdf66;border:1px solid #84661e;border-bottom:0; }
.folder-open::after { content:'';position:absolute;left:2px;right:-3px;bottom:-1px;height:10px;background:#ffe88d;border:1px solid #84661e;transform:skewX(-15deg); }
.request-icon { height:18px;width:14px;flex-basis:14px;background:#fff;border:1px solid #666;box-shadow:1px 1px #c0c0c0;margin:0 2px; }
.request-icon::before { content:'';position:absolute;left:2px;right:2px;top:5px;height:6px;background:linear-gradient(135deg,transparent 35%,#498337 36% 65%,transparent 66%),linear-gradient(45deg,#638a38 50%,#a4d3e7 51%);border:1px solid #808080; }
.explorer-detail-pane { overflow:auto; }
.explorer-detail-heading { padding:12px 12px 9px;border-bottom:1px solid #c0c0c0; }
.explorer-detail-heading h3 { margin:0 0 5px;font-size:15px;overflow-wrap:anywhere; }
.explorer-detail-heading p { margin:0;font-size:11px;line-height:1.5;color:#454545; }
.explorer-properties { display:grid;gap:8px;padding:10px 12px;background:#dfdfdf;border-bottom:1px solid #808080; }
.explorer-properties>.button { justify-self:start; }
#layoutPhotoProperties { display:grid;gap:8px; }
body.classic-windows .explorer-properties textarea { min-height:70px;font:11px/1.5 Tahoma,Arial,sans-serif; }
.explorer-composer { padding:12px;background:#ffffe1;border-bottom:1px solid #808080;display:grid;gap:7px; }
.explorer-composer>div { display:flex;gap:6px; }
body.classic-windows .explorer-composer textarea { min-height:90px;font:11px/1.5 Tahoma,Arial,sans-serif; }
.explorer-list-head { display:grid;grid-template-columns:1fr 90px;background:#c0c0c0;box-shadow:inset 1px 1px #fff,inset -1px -1px #808080;font-size:11px; }
.explorer-list-head span { padding:6px 9px;border-right:1px solid #808080; }
body.classic-windows .explorer-content-row { display:grid;grid-template-columns:20px minmax(0,1fr) 90px;align-items:center;gap:8px;width:100%;padding:9px 8px;background:#fff;color:#000;border:0;border-bottom:1px solid #eee;box-shadow:none;text-align:left;font:12px/1.4 Tahoma,Arial,sans-serif;cursor:pointer; }
.explorer-content-row>span { overflow-wrap:anywhere; }
.explorer-content-row>small { color:#454545; }
body.classic-windows .explorer-content-row:hover { background:#e6e6f4; }
.explorer-empty { padding:28px 16px;text-align:center;color:#454545;font-size:11px;line-height:1.6; }
.explorer-empty>.explorer-icon { transform:scale(1.5);margin:6px 0; }
.explorer-empty p { font-size:13px;color:#000; }
body.classic-windows .layout-editor-dialog .layout-error { flex-shrink:0;padding:6px 8px;background:#ffffe1;max-height:65px;overflow:auto; }
body.classic-windows .layout-editor-dialog .layout-error:empty { display:none; }
.explorer-status { display:flex;flex-wrap:wrap;font-size:10px;flex-shrink:0; }
.explorer-status>span { flex:1;padding:5px 8px;box-shadow:inset 1px 1px #808080,inset -1px -1px #fff;white-space:nowrap; }
body.classic-windows .layout-editor-dialog .dialog-actions { position:static;flex-shrink:0;align-items:center;padding:5px 2px;margin:0; }
.layout-editor-dialog .dialog-actions .form-note { flex:1; }
.layout-editor-dialog .dialog-actions .button { flex-shrink:0; }
@media(max-width:650px) {
  .layout-explorer { grid-template-columns:minmax(170px,40%) minmax(0,1fr); }
  .explorer-content-row>small,.explorer-list-head { display:none; }
  body.classic-windows .explorer-content-row { grid-template-columns:20px minmax(0,1fr); }
  .explorer-toolbar { gap:4px; }
  .explorer-tool-divider { display:none; }
  .explorer-status>span:nth-child(2) { display:none; }
}
@media(max-width:480px) {
  .layout-explorer { display:flex;flex-direction:column;min-height:540px; }
  .explorer-tree-pane { height:230px;flex-shrink:0; }
  .explorer-detail-pane { flex:1;min-height:270px; }
  .layout-editor-dialog .dialog-actions .form-note { display:none; }
}

.layout-folder-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
