/* /Components/OcadMapPair.razor.rz.scp.css */
/* Scoped to OcadMapPair. Leaflet builds its own DOM inside .mapDiv; nothing
   here reaches into it, so no ::deep is needed. */

/* From ocad-map-viewer.component.scss - the workspace's fixed-height panes. */
.mapDiv[b-ns27ps85wc] {
    background: white;
    height: 80vh;
}

/* Whatever a page puts in a pane is positioned against the pane. */
.mapPane[b-ns27ps85wc] {
    position: relative;
}

/* Filling the parent rather than 80vh: half each when the panes stack below
   Bootstrap's sm breakpoint, the whole height when they sit side by side or
   only one is shown. No vertical gutter, so the halves add up to the parent. */
.mapPair.fill[b-ns27ps85wc] {
    height: 100%;
    --bs-gutter-y: 0;
}

.mapPair.fill > div[b-ns27ps85wc] {
    height: 50%;
}

@media (min-width: 576px) {
    .mapPair.fill > div[b-ns27ps85wc] {
        height: 100%;
    }
}

.mapPair.fill.single > div[b-ns27ps85wc] {
    height: 100%;
}

/* Each column stacks its optional title over its pane, and the pane takes what
   the title leaves, so a title never pushes the map out of the column. The
   [hidden] rule in Bootstrap's reboot is !important, so a hidden column stays
   hidden. */
.mapPair.fill > div[b-ns27ps85wc] {
    display: flex;
    flex-direction: column;
}

.mapPair.fill .mapPane[b-ns27ps85wc] {
    flex: 1 1 auto;
    min-height: 0;
}

.mapPair.fill .mapDiv[b-ns27ps85wc] {
    height: 100%;
}

/* With no gutter between stacked panes, a border is what tells them apart. */
.mapPair.fill .mapDiv[b-ns27ps85wc] {
    border: 1px solid var(--bs-border-color);
}
/* /Components/VersionList.razor.rz.scp.css */
/* Scoped to VersionList. */

/* A row while the page is busy: looks like Bootstrap's disabled item, but still
   takes hover, so its description's tooltip can be read. */
.list-group-item.busy[b-4h51yackma] {
    color: var(--bs-list-group-disabled-color);
    background-color: var(--bs-list-group-bg);
    cursor: default;
}

.list-group-item.busy.active[b-4h51yackma] {
    color: var(--bs-list-group-active-color);
    background-color: var(--bs-list-group-active-bg);
    opacity: 0.65;
}

/* A version's description, at most three lines, ending in an ellipsis. */
.description[b-4h51yackma] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}
/* /Pages/About.razor.rz.scp.css */
/* From about-page.component.scss. .pointer is shared with the settings dialog,
   so it stays in app.css. */

.w-10[b-mjygt6bblm] {
    width: 10%;
}

/* The flags are buttons for the keyboard, but should look like Angular's bare
   SVGs: no padding, border or background around the picture. */
.flag[b-mjygt6bblm] {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

/* The width/height attributes give the aspect ratio before the image loads;
   without this the height attribute would also fix the rendered height. */
img[b-mjygt6bblm] {
    height: auto;
}
/* /Pages/Viewer.razor.rz.scp.css */
/* Scoped to the /viewer page. The pane content (.paneFile, .paneEmpty,
   .paneButton) is written in this page's PaneContent, so it carries this
   page's scope even though OcadMapPair renders it. */

/* The page is exactly the screen: toolbar on top, the maps take the rest and
   the page itself never scrolls - on a phone, scrolling the page and panning
   a map would fight over the same finger. dvh follows the mobile browser's
   collapsing address bar; vh is the fallback for browsers without it. */
.viewerPage[b-uq59y3e60w] {
    height: 100vh;
    height: 100dvh;
}

.viewerMaps[b-uq59y3e60w] {
    min-height: 0;
}

/* An empty pane is one big target: tap anywhere to choose a file. Above all
   of Leaflet, its zoom control (1000) included - an empty map has nothing to
   zoom, and a tap near the corner must open the picker, not change the zoom the
   first map will be fitted at. */
.paneEmpty[b-uq59y3e60w] {
    position: absolute;
    inset: 1px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--bs-body-bg);
}

/* A loaded pane keeps a small button for choosing again, in the corner a
   thumb reaches and Leaflet's zoom control does not use. */
.paneButton[b-uq59y3e60w] {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 800;
    max-width: calc(100% - 4rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The file input is visually hidden but focusable; its label shows the focus. */
.paneFile:focus-visible + .paneEmpty[b-uq59y3e60w],
.paneFile:focus-visible + .paneButton[b-uq59y3e60w] {
    outline: 3px solid var(--bs-primary);
    outline-offset: -3px;
}

/* Set by fileDrop.js on the pane while a file is dragged over it. The pane is
   OcadMapPair's element, not this page's, hence ::deep from this page's own
   wrapper. Drawn as its own layer because Leaflet's panes would paint over an
   outline on the pane. */
.viewerMaps[b-uq59y3e60w]  .fileDropTarget::after {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 1002;
    border: 3px dashed var(--bs-primary);
    pointer-events: none;
}
/* /Pages/Workspace.razor.rz.scp.css */
/* Scoped to the workspace page. The layout is Bootstrap's classes in the
   markup; this is the one thing they cannot say.

   Below md the columns stack, and the version column would otherwise take its
   whole list's height and squeeze the maps to nothing. Bootstrap has no
   responsive height classes, so the cap is here. Two fifths is less than the
   create-version form needs, so the list and the form scroll together inside
   it rather than the list shrinking away to nothing. */
@media (max-width: 767.98px) {
    .versionColumn[b-8381no0afp] {
        max-height: 40%;
        overflow-y: auto;
    }

    .versionColumn > *[b-8381no0afp] {
        flex-shrink: 0;
    }
}
