/* Explorer frame: navigation bar on the extended glass, command bar, navigation pane,
   items view and details pane. Navigation bar positions are fitted to Microsoft's Windows 7
   Control Panel screenshot (back 8,31; forward 36,31; history 65,33; address from 78 to
   W-187; search from W-183 to W-8, all 23 px tall at y 34). Tiles metrics are the Explorer
   layout file's own: 48 px icons, 250 px columns, 4 px spacing, 14 px left padding. */

.win.explorer { --caption: 65px; }

.navbar { position: absolute; left: 0; top: 0; right: 0; height: 65px; z-index: 8; pointer-events: none; }
.navbar > * { pointer-events: auto; position: absolute; }
.nav { border: 0; padding: 0; background: no-repeat; }
.nav.back { left: 8px; top: 31px; width: 30px; height: 30px; background-image: url("../aero/nav-back-1.png"); }
.nav.back:hover { background-image: url("../aero/nav-back-2.png"); }
.nav.back:active { background-image: url("../aero/nav-back-3.png"); }
.nav.back:disabled { background-image: url("../aero/nav-back-4.png"); }
.nav.fwd { left: 36px; top: 31px; width: 30px; height: 30px; background-image: url("../aero/nav-forward-1.png"); }
.nav.fwd:hover { background-image: url("../aero/nav-forward-2.png"); }
.nav.fwd:active { background-image: url("../aero/nav-forward-3.png"); }
.nav.fwd:disabled { background-image: url("../aero/nav-forward-4.png"); }
.nav.hist { left: 65px; top: 33px; width: 13px; height: 27px; background-image: url("../aero/nav-menu-1.png"); }
.nav.hist:hover { background-image: url("../aero/nav-menu-2.png"); }
.nav.hist:active { background-image: url("../aero/nav-menu-3.png"); }
.nav.hist:disabled { background-image: url("../aero/nav-menu-4.png"); }
.nav:disabled { pointer-events: none; }

.address {
  left: 78px;
  top: 34px;
  right: 187px;
  height: 23px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0 0 4px;
  border-image: url("../aero/addressbar-1.png") 5 3 fill / 5px 3px stretch;
}
.address:hover { border-image-source: url("../aero/addressbar-2.png"); }
.address > img { width: 16px; height: 16px; flex: none; margin-right: 2px; }
.crumbs { display: flex; flex: 1; min-width: 0; overflow: hidden; height: 21px; }
.crumb {
  display: flex;
  align-items: center;
  height: 21px;
  padding: 0 3px 0 6px;
  border: 0;
  background: none;
  font: 12px var(--aero);
  color: #000;
  white-space: nowrap;
}
.crumb:hover { border-image: url("../aero/crumb-button-2.png") 11 2 9 3 fill / 11px 2px 9px 3px stretch; }
.crumb::after {
  content: "";
  width: 4px;
  height: 7px;
  margin-left: 7px;
  background: url("../aero/start-flyout-arrow.png") no-repeat;
}
.crumb[hidden], .cmd[hidden] { display: none; }
.crumb.root { padding-left: 3px; }
.crumb.root.more::before { content: "\00AB"; margin-right: 3px; font-size: 13px; }
.crumb.last::after { display: none; }
.address .drop,
.address .refresh {
  flex: none;
  width: 22px;
  height: 21px;
  border: 0;
  background: url("../aero/ef-go.png") no-repeat;
}
.address .drop { width: 18px; background-position: -48px 2px; }
.address .refresh { width: 24px; margin-left: 1px; background-position: -28px 2px; border-left: 1px solid #b8c6d6; }
.address .refresh:hover { border-image: url("../aero/go-button-2.png") 4 1 2 2 fill / 4px 1px 2px 2px stretch; border-left: 0; }

.searchbox {
  right: 8px;
  top: 34px;
  width: 175px;
  height: 23px;
  box-sizing: border-box;
  border-image: url("../aero/searchbox-1.png") 5 5 5 3 fill / 5px 5px 5px 3px stretch;
}
.searchbox:hover { border-image-source: url("../aero/searchbox-2.png"); }
.searchbox input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 24px 1px 7px;
  border: 0;
  background: none;
  font: 12px var(--aero);
  color: #000;
  outline: none;
}
.searchbox input::placeholder { color: #6d6d6d; font-style: italic; }
.searchbox::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: url("../aero/ef-search-1.png") no-repeat;
  pointer-events: none;
}

/* ---------- command bar ---------- */

.cmdbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 31px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  border-image: url("../aero/cmdbar-bg.png") 0 29 1 29 fill / 0 29px 1px 29px stretch;
}
.cmd {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 7px;
  border: 0;
  background: none;
  color: #1e395b;
  font: 12px var(--aero);
  white-space: nowrap;
}
.cmd:hover { border-image: url("../aero/cmd-button-2.png") 6 3 fill / 6px 3px stretch; }
.cmd:active,
.cmd.open { border-image: url("../aero/cmd-button-3.png") 6 3 fill / 6px 3px stretch; }
.cmd.menu::after {
  content: "";
  width: 13px;
  height: 10px;
  margin: 1px -3px 0 3px;
  background: url("../aero/cmd-arrow.png") no-repeat;
}
.cmd.help { width: 26px; margin-left: auto; padding: 0; justify-content: center; }
.cmd.help img { width: 16px; height: 16px; }
.cmdbar .spacer { flex: 1; }

/* ---------- body ---------- */

.ex-body { position: absolute; left: 0; right: 0; top: 31px; bottom: 64px; display: flex; background: #fff; }
.ex-body.nocmd { top: 0; }
.ex-body.nodetails { bottom: 0; }
.navpane {
  flex: none;
  width: 185px;
  overflow: hidden auto;
  padding: 4px 0;
  background: #fff;
}
.navpane[hidden] { display: none; }
.sizer { flex: none; width: 3px; background: url("../aero/navpanesizer.png") repeat-y, #fff; }
.tnode {
  display: flex;
  align-items: center;
  height: 22px;
  margin: 0 2px;
  padding-right: 6px;
  white-space: nowrap;
}
.tnode:hover { border-image: url("../aero/treeitem-hot.png") 3 fill / 3px stretch; }
.tnode.selected { border-image: url("../aero/treeitem-selected-nofocus.png") 3 fill / 3px stretch; }
.win:not(.inactive) .tnode.selected { border-image-source: url("../aero/treeitem-selected.png"); }
.tnode .tg { width: 16px; height: 16px; flex: none; margin-left: var(--ind, 0); opacity: 0; transition: opacity 0.3s; }
.navpane:hover .tg.has { opacity: 1; background: url("../aero/tree-glyph-1.png") no-repeat; }
.navpane:hover .tg.has.open { background-image: url("../aero/tree-glyph-2.png"); }
.tnode img { width: 16px; height: 16px; margin: 0 5px 0 2px; flex: none; }
.tspace { height: 12px; }

.content {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: auto;
  outline: none;
}
.empty-note { padding: 12px 18px; color: #6d6d6d; }

/* Tiles view */
.tiles { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 4px 8px 14px; align-content: flex-start; }
.tile {
  display: flex;
  align-items: center;
  width: 250px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 2px 4px 2px 2px;
}
.tile img { width: 48px; height: 48px; flex: none; margin-right: 3px; }
.tile .t { min-width: 0; width: 192px; }
.tile .n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #000; }
.tile .p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #6d6d6d; }
.tile:hover, .row:hover { border-image: url("../aero/listitem-hot.png") 3 fill / 3px stretch; }
.tile.selected, .row.selected { border-image: url("../aero/listitem-selected-nofocus.png") 3 fill / 3px stretch; }
.win:not(.inactive) .tile.selected, .win:not(.inactive) .row.selected { border-image-source: url("../aero/listitem-selected.png"); }
.win:not(.inactive) .tile.selected:hover, .win:not(.inactive) .row.selected:hover { border-image-source: url("../aero/listitem-hot-selected.png"); }

/* Details view */
.details-view { min-width: 100%; display: inline-block; }
.dhead { display: flex; position: sticky; top: 0; height: 24px; z-index: 1; border-image: url("../aero/header-bg-1.png") 9 0 14 1 fill / 9px 0 14px 1px stretch; }
.dhead > div {
  flex: none;
  box-sizing: border-box;
  height: 24px;
  padding: 0 6px 1px;
  line-height: 23px;
  color: #4c607a;
  white-space: nowrap;
  overflow: hidden;
  border-image: url("../aero/header-item-1.png") 9 2 14 2 fill / 9px 2px 14px 2px stretch;
}
.dhead > div:hover { border-image-source: url("../aero/header-item-2.png"); }
.row { display: flex; height: 22px; align-items: center; margin: 0 2px; white-space: nowrap; }
.row > div { flex: none; box-sizing: border-box; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; color: #6d6d6d; }
.row > div:first-child { color: #000; display: flex; align-items: center; }
.row > div:first-child img { width: 16px; height: 16px; margin-right: 6px; }
.rows { padding-top: 1px; }

/* Groups (Devices and Printers) */
.group-head {
  display: flex;
  align-items: center;
  height: 24px;
  margin: 6px 12px 2px 14px;
  color: #1e3287;
  font-size: 12px;
}
.group-head::after { content: ""; flex: 1; height: 1px; margin-left: 10px; background: linear-gradient(to right, #e2e8f5, rgba(226, 232, 245, 0)); }
.icons-view { display: flex; flex-wrap: wrap; gap: 1px; padding: 0 12px 8px 14px; }
.icon-item { width: 100px; padding: 4px 2px 6px; text-align: center; box-sizing: border-box; }
.icon-item img { display: block; width: 48px; height: 48px; margin: 0 auto 4px; }
.icon-item .sub { color: #6d6d6d; }
.icon-item:hover { border-image: url("../aero/listitem-hot.png") 3 fill / 3px stretch; }
.icon-item.selected { border-image: url("../aero/listitem-selected.png") 3 fill / 3px stretch; }

/* ---------- details pane ---------- */

.detailspane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: url("../aero/details-bg.png") 0 0 / 100% 6px repeat-x, #f1f5fb;
  border-top: 1px solid #d5dfe5;
  box-sizing: border-box;
  overflow: hidden;
}
.detailspane[hidden] { display: none; }
.detailspane > img { width: 48px; height: 48px; flex: none; }
.detailspane .dn { color: #000; }
.detailspane .dp { color: #5a6779; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detailspane .dp b { font-weight: normal; color: #1e395b; }
.detailspane .dt { min-width: 0; }

/* ---------- Windows 7 scrollbars (ScrollBar class: arrow buttons, thumbs, tracks) ---------- */

.win ::-webkit-scrollbar { width: 17px; height: 17px; }
.win ::-webkit-scrollbar-track:vertical { background: url("../aero/sb-track-v-1.png") 0 0 / 100% 100%; }
.win ::-webkit-scrollbar-track:horizontal { background: url("../aero/sb-track-h-1.png") 0 0 / 100% 100%; }
.win ::-webkit-scrollbar-thumb:vertical { border-image: url("../aero/sb-thumb-v-1.png") 5 8 5 8 fill / 5px 8px 5px 8px stretch; }
.win ::-webkit-scrollbar-thumb:vertical:hover { border-image-source: url("../aero/sb-thumb-v-2.png"); }
.win ::-webkit-scrollbar-thumb:vertical:active { border-image-source: url("../aero/sb-thumb-v-3.png"); }
.win ::-webkit-scrollbar-thumb:horizontal { border-image: url("../aero/sb-thumb-h-1.png") 8 8 8 11 fill / 8px 8px 8px 11px stretch; }
.win ::-webkit-scrollbar-thumb:horizontal:hover { border-image-source: url("../aero/sb-thumb-h-2.png"); }
.win ::-webkit-scrollbar-button:single-button { width: 17px; height: 17px; background: no-repeat center; }
.win ::-webkit-scrollbar-button:vertical:decrement { background-image: url("../aero/sb-arrow-glyphs-1.png"); }
.win ::-webkit-scrollbar-button:vertical:increment { background-image: url("../aero/sb-arrow-glyphs-5.png"); }
.win ::-webkit-scrollbar-button:horizontal:decrement { background-image: url("../aero/sb-arrow-glyphs-9.png"); }
.win ::-webkit-scrollbar-button:horizontal:increment { background-image: url("../aero/sb-arrow-glyphs-13.png"); }
.win ::-webkit-scrollbar-button:vertical:decrement:hover { background-image: url("../aero/sb-arrow-glyphs-2.png"), url("../aero/sb-arrows-2.png"); background-size: auto, 100% 100%; }
.win ::-webkit-scrollbar-button:vertical:increment:hover { background-image: url("../aero/sb-arrow-glyphs-6.png"), url("../aero/sb-arrows-6.png"); background-size: auto, 100% 100%; }
.win ::-webkit-scrollbar-corner { background: #f0f0f0; }
