:root{

    --scale:1;

    --wlm-gray:#4A4A4A;
    --wlm-green:#7ED957;

    --bg:#FFFFFF;
    --text:#000000;
    --table:#F5F5F5;
    --border:#CCCCCC;
    --button:#E0E0E0;

}

html{

    overflow-y:scroll;

}

.dark{

    --bg:#000000;
    --text:#FFFFFF;
    --table:#111111;
    --border:#555555;
    --button:#333333;

}

body{

    background:var(--bg);
    color:var(--text);

    font-family:Arial, Helvetica, sans-serif;

    font-size:calc(16px * var(--scale));

    margin:20px;

    padding-top:110px;
    padding-left:150px;

}

.headerLeft{

    display:flex;

    flex-direction:row;

    align-items:center;

    gap:15px;

}

.topBar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding:10px 20px;

    background:var(--bg);

    border-bottom:2px solid var(--wlm-gray);

    z-index:1000;

    box-sizing:border-box;

}

.headerRight{

    display:flex;

    flex-direction:column;

    align-items:flex-end;

    gap:5px;

}

.toggleBtn{

    width:160px;

    height:28px;

    font-size:12px;

    padding:0;

    cursor:pointer;

    flex-shrink:0;

}

.scaleWrapper{

    position:relative;

    display:flex;

    align-items:center;

    gap:8px;

}

.scalePopup{

    position:absolute;

    top:calc(100% + 4px);

    right:0;

    background:var(--table);

    border:1px solid var(--border);

    border-radius:4px;

    padding:3px 8px;

    font-size:10px;

    white-space:nowrap;

    opacity:0;

    pointer-events:none;

    transition:opacity 0.15s ease;

    box-shadow:0 2px 8px rgba(0,0,0,0.25);

    z-index:10;

}

.sliderWrap{

    position:relative;

    display:flex;

    align-items:center;

}

.sliderWrap:hover .scalePopup{

    opacity:1;

}

#scaleSlider{

    width:100px;

}

.logo{

    max-width:275px;

    width:auto;
    height:auto;

}

.page-title{

    font-size:28px;

    font-weight:bold;

    margin:0;

    white-space:nowrap;

}

/* Slider */

input[type="range"]{

    -webkit-appearance:none;

    appearance:none;

    width:120px;

    height:8px;

    border-radius:5px;

    background:#4A4A4A;

    outline:none;

}

input[type="range"]::-webkit-slider-thumb{

    -webkit-appearance:none;

    width:20px;

    height:20px;

    border-radius:50%;

    background:#7ED957;

    border:2px solid #4A4A4A;

    cursor:pointer;

}

.dark input:not([type="range"]),
.dark select,
.dark textarea{

    color:var(--wlm-green) !important;

}

.saveBtn{

    background:var(--wlm-gray);

    color:white;

    font-weight:bold;

    border:2px solid #666666;

}

.saveBtn:hover{

    background:var(--wlm-green);

    color:black;

}

.actionBtn{

    background:var(--button);

    color:var(--text);

    border:1px solid var(--border);

    padding:8px 14px;

    cursor:pointer;

}

.actionBtn:hover{

    background:var(--wlm-green);

    color:black;

}

input:not([type="range"]),
select,
textarea{

    background:var(--bg);

    color:var(--text);

    border:1px solid var(--border);

}

.control-panel{

    text-align:center;

    padding:15px;

    margin-bottom:25px;

    background:var(--table);

    border:1px solid var(--border);

}

table{

    width:100%;

    border-collapse:collapse;

    background:var(--table);

    margin-bottom:20px;

}

th{

    background:var(--wlm-gray);

    color:white;

}

th,td{

    border:1px solid var(--border);

    padding:calc(10px * var(--scale));

}

button{

    padding:
        calc(10px * var(--scale))
        calc(15px * var(--scale));

    cursor:pointer;

    background:var(--button);

    color:var(--text);

    border:1px solid var(--border);

}

button:hover{

    opacity:.9;

}

.deleteBtn{

    background:var(--wlm-gray);

    color:white;

    border:1px solid #666666;

    min-width:40px;

    font-size:16px;

    transition:.2s;

}

.deleteBtn:hover{

    background:var(--wlm-green);

    color:black;

}

.saveBtn{

    background:var(--wlm-gray);

    color:white;

    font-weight:bold;

    border:2px solid #666666;

}

.saveBtn:hover{

    background:var(--wlm-green);

    color:black;

}

#sideMenu{

    position:fixed;

    top:0;

    left:0;

    width:130px;

    height:100%;

    background:var(--table);

    border-right:2px solid var(--wlm-gray);

    z-index:900;

    padding-top:140px;

    font-size:16px;

}

.activeMenu{

    background:var(--wlm-gray);

    color:white !important;

    font-weight:bold;

    border-left:5px solid var(--wlm-green);

}

#sideMenu.pinned{

    left:0;

}

#sideMenu a{

    display:flex;

    align-items:center;

    justify-content:center;

    min-height:60px;

    width:100%;

    box-sizing:border-box;

    padding:12px;

    text-decoration:none;

    color:var(--text);

    border-bottom:1px solid var(--border);

    white-space:normal;

    overflow-wrap:break-word;

    line-height:1.2;

    text-align:center;

}

#sideMenu a:hover{

    background:var(--wlm-green);

    color:black;

}

#sideMenu a.activeMenu:hover{

    background:var(--wlm-gray);

    color:white !important;

}

#sideMenu .menuGroup {
    display: block;
    position: relative;
}

#sideMenu .menuGroup > a {
    font-weight: 500;
}

#estimateSubmenu,
#librarySubmenu{
    display:none;
}

#sideMenu .menuGroup.is-open #estimateSubmenu,
#sideMenu .menuGroup.is-open #librarySubmenu{
    display:block;
}

#sideMenu .menuGroup > a.menuParentLabel{
    cursor:pointer;
    padding-right:26px;
}

#sideMenu .menuToggleControl{
    position:absolute;
    right:8px;
    bottom:8px;
    padding:0;
    margin:0;
    border:none;
    background:transparent;
    color:var(--text);
    font-size:12px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    width:12px;
    height:12px;
}

#sideMenu .menuToggleControl:hover{
    opacity:1;
    color:var(--wlm-green);
}

#sideMenu .menuGroup > a.activeMenu + .menuToggleControl{
    color:white;
}

#sideMenu .menuGroup > a.activeMenu + .menuToggleControl:hover{
    color:var(--wlm-green);
}

#sideMenu .menuToggleControl::before{
    content:'+';
    position:absolute;
    inset:0;
}

#sideMenu .menuGroup.is-open > .menuToggleControl::before{
    content:'-';
}

#sideMenu .submenuItem {
    display: block;
    padding: 8px 12px 8px 24px;
    font-size: 0.82em;
    font-weight: 400;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
    color: var(--text);
    text-align: right;
}

#sideMenu a.submenuItem {
    min-height: 30px;
    border-bottom: none;
}

#estimateSubmenu .submenuItem + .submenuItem,
#librarySubmenu .submenuItem + .submenuItem {
    border-top: 1px solid var(--border);
}

#sideMenu .submenuItem:hover {
    background: var(--wlm-green);
    color: black;
    border-left-color: var(--wlm-green);
}

#sideMenu a.activeMenu.submenuItem {
    background: var(--wlm-gray);
    color: white !important;
    font-weight: 400;
    border-left: 5px solid var(--wlm-green);
}

#sideMenu a.activeMenu.submenuItem:hover {
    background: var(--wlm-gray);
    color: white !important;
}

#estimateSubmenu,
#librarySubmenu{
    max-height:260px;
    overflow-y:auto;
    border-bottom:1px solid var(--border);
}

#sideMenu a.estimateSubmenuItem{
    display:block;
    min-height:0;
    padding:5px 12px 5px 8px;
    text-align:right;
}

#sideMenu .estimateSubTitle{
    display:block;
    font-size:0.74em;
    font-weight:600;
    color:var(--text);
    text-align:right;
    line-height:1.15;
}

#sideMenu .estimateSubMeta{
    display:block;
    font-size:0.66em;
    opacity:0.8;
    color:var(--text);
    line-height:1.12;
    text-align:right;
}

#estimateSubmenu.isAnimating .estimateSubmenuItem,
#estimateSubmenu.isAnimating .estimateSubViewAll,
#estimateSubmenu.isAnimating .estimateSubEmpty,
#librarySubmenu.isAnimating .estimateSubViewAll{
    animation:submenuReveal .24s ease-out both;
    animation-delay:var(--submenu-delay,0ms);
}

@keyframes submenuReveal{
    from{
        opacity:0;
        transform:translateY(-6px) scaleY(.92);
    }
    to{
        opacity:1;
        transform:translateY(0) scaleY(1);
    }
}

#sideMenu a.estimateSubmenuItem:hover .estimateSubTitle,
#sideMenu a.estimateSubmenuItem:hover .estimateSubMeta{
    color:black;
}

#sideMenu a.estimateSubmenuItem.activeEstimateItem{
    background:var(--wlm-gray);
    border-left:3px solid var(--wlm-green);
}

#sideMenu a.estimateSubmenuItem.activeEstimateItem .estimateSubTitle,
#sideMenu a.estimateSubmenuItem.activeEstimateItem .estimateSubMeta{
    color:white;
    opacity:1;
}

#sideMenu a.estimateSubmenuItem.activeEstimateItem:hover{
    background:var(--wlm-gray);
}

#sideMenu a.estimateSubmenuItem.activeEstimateItem:hover .estimateSubTitle,
#sideMenu a.estimateSubmenuItem.activeEstimateItem:hover .estimateSubMeta{
    color:white;
}

#sideMenu .estimateSubEmpty{
    padding:10px 12px 10px 18px;
    font-size:0.72em;
    opacity:0.8;
}

#sideMenu a.estimateSubViewAll{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    font-size:0.74em;
    font-weight:400;
    text-align:right;
    padding:3px 10px;
}



#pinMenu{

    position:absolute;

    top:10px;

    right:10px;

    width:28px;

    height:28px;

    cursor:pointer;

}

.projectHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    width:100%;

    background:var(--wlm-gray);

    color:white;

    font-size:18px;

    font-weight:bold;

    padding:12px 15px;

    box-sizing:border-box;

    margin-bottom:10px;

}

#estimateNumberDisplay{

    color:var(--wlm-green);

    font-weight:bold;

}

.sectionHeader{

    background:var(--wlm-gray);

    color:white;

    font-weight:bold;

    font-size:calc(18px * var(--scale));

    padding:10px 15px;

    margin:20px 0 10px 0;

    border:1px solid var(--border);

}

.projectHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:var(--wlm-gray);

    color:white;

    padding:10px 15px;

    margin-bottom:10px;

    border:1px solid var(--border);

    border-right:2px solid var(--wlm-gray);

}

.projectHeader h2{

    margin:0;

    font-size:calc(18px * var(--scale));

}

#estimateNumberDisplay{

    color:var(--wlm-green);

    font-weight:bold;

}

