﻿/* Top-level wrapper */
/* 2.6rem clears HeaderUser's 2.5rem strip, matching .invoice-container on Create/Edit Sale
   Invoice. It was 3.5rem for the taller two-line header these pages used to have. */
/* Runs to the bottom edge rather than stopping at 3.5rem, for the same reason .invoice-container
   does on Create/Edit Sale Invoice: that reserved gap held nothing but .page's background, which
   read as a strip under the canvas with the buttons floating on it. The work area now fills the
   space and the .welcome-footer-invoice island sits over it, so there is no band. #zoomWrapper's
   80px padding-bottom is the scroll room that keeps the canvas clear of the buttons. */
#workAreaWrapper {
    position: fixed;
    top: 2.6rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    overflow: hidden;
}

/* Scrollable area holding zoomWrapper */
#mainWrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
}

/* Horizontal ruler - FIXED POSITION */
#hruler {
    height: 30px;
    background: #fff;
    position: fixed;
    top: 2.6rem;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid #ccc;
}

/* Vertical ruler - FIXED POSITION */
#vruler {
    width: 30px;
    background: #fff;
    position: fixed;
    top: calc(2.6rem + 30px); /* Below horizontal ruler */
    left: 0; /* Match workAreaWrapper left */
    bottom: 0; /* Match workAreaWrapper bottom */
    z-index: 1000;
}

/* The top band wraps to two lines / 4.5rem below 700px (MainLayout2.razor.css), so everything
   pinned just under it drops by the same 2rem. */
@media (max-width: 700px) {
    #workAreaWrapper,
    #hruler {
        top: 4.6rem;
    }

    #vruler {
        top: calc(4.6rem + 30px);
    }
}

#zoomWrapper {
    position: relative;
    margin-left: 30px; /* space for vertical ruler */
    padding-bottom: 80px; /* bottom margin */
}

#canvasContent {
    position: relative;
    margin: 80px auto; /* top & bottom margin */
}

/* The actual label */
#label {
    position: absolute;
    background: #fff;
    border: none;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.top-row-home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-row-home-header1 {
    position: absolute;
    font-size: small;
    font-weight: bold;
    top: 5px;
    left: 20px;
}

.top-row-home-header2 {
    position: absolute;
    font-weight: bold;
    top: 25px;
    left: 20px;
}

.top-row-home-header3 {
    font-size: large;
    position: absolute;
    font-weight: bold;
    top: 15px;
}

.info-icon {
    position: absolute;
    cursor: pointer;
    fill: #808080;
    width: 23px;
    height: 23px;
    top: 2px;
    margin-left: 10px;
}

/* Footer island shared with Create/Edit Sale Invoice: the editors use .welcome-footer-invoice
   (CreateSaleInvoice.css) for the white rounded card, and this only relaxes its fixed 500px
   two-column grid so it fits whatever buttons the page has — one on EditorWindow, two on
   InvoiceEditorWindow. The <=700px rule in CreateSaleInvoice.css still applies on top. */
.welcome-footer-invoice.editor-footer {
    width: auto;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, auto);
}
