:root

{
    --darkBlue: #273b7b;
    --lightBlue: #c8d0ea;
    --fontSize: 14;
    --TextStyleAlignment: left;
    --DateStyleAlignment: right;
    --PriceStyleAlignment: right;
    --NumberStyleAlignment: right;
    --SpecialStyleAlignment: center;
}


*
{
    font-family: Arial, Helvetica, sans-serif;
}

body
{
    background-color: whitesmoke;
}

/*/////////////////////////////////////////////////////////////////////////////
    Tables */

.GB
{
    border-left: 1px solid #999999;
    padding-left: 5px;
    padding-right: 5px;
    font-weight: normal;
}

.GB:not(table)
{
    font-size: var(--fontSize);
}

table.GB
{
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-bottom: 1px solid #273b7b55;
    /* border: 1px solid gray; */
    border-left: none;
    border-right: 1px solid #999999;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14;
}

th.GB
{
    border-bottom: 1px solid gray;
    background-color:  var(--darkBlue);
    color: white;
    background-clip: padding-box;
    white-space: nowrap;
    padding-top: 4px;
    padding-bottom: 4px;
}

tr.GB
{
    width: 100%;
}

td.GB
{
    border-bottom: 1px solid gray;
    text-align: var(--TextStyleAlignment);
    white-space: nowrap;
    background-color: inherit;
    background-clip: padding-box;
}

td.GB.DateStyle
{
    text-align: var(--DateStyleAlignment);
}

td.GB.NumberStyle
{
    text-align: var(--NumberStyleAlignment);
}

td.GB.PriceStyle
{
    text-align: var(--PriceStyleAlignment);
}

td.GB.SpecialStyle
{
    text-align: var(--SpecialStyleAlignment);
}

/* tr.white:hover{
    background-color: #eeeeee;} */
tr.white {background-color: white;}

/* tr.green:hover {background-color: #9fc49e;} */
tr.green {background-color: #cde4cc;}

/* tr.red:hover {background-color: #ff9d9d;} */
tr.red {background-color: #ffbebe;}

/* tr.yellow:hover, tr:hover td.actualGB.invTotal, tr:hover td.actualGB.profit, tr:hover td.actualGB.matCost, tr:hover td.actualGB.loadNum {background-color: #edf068;} */
tr.yellow, td.actualGB.invTotal, td.actualGB.profit, td.actualGB.matCost, td.actualGB.loadNum {background-color: #feffbe;}

/* tr.blue:hover {background-color: #b8c0da;} */
tr.blue {background-color:  var(--lightBlue);}

/* tr.grey:hover {background-color: #999999;} */
tr.grey {background-color: #bbbbbb;}

tr.GB.row:hover
{
    filter: brightness(.9) saturate(2);
}

.lightSides
{
    border-left: 1px solid #273b7b55;
    border-right: 1px solid #273b7b55;
}

th.actualGB
{
    white-space: normal;
}

table
{
    border-radius: 5px; /* this is going to be more complicated */
    border-collapse: collapse;
}

table.unrounded
{
    border-radius: 0px;
}

/* th
{
    border: 1px solid gray;
} */
td
{
    /* border: 1px solid gray; */
    text-align: center;
    white-space: nowrap;
}

.locked
{
    position: -webkit-sticky;
    position: sticky;
    z-index: 50;
}

.locked *
{
    z-index: 50;
}

/* Tables
///////////////////////////////////////////////////////////////////////////*/
/* Buttons */

input[type='button'], input[type='submit'], input[type='reset']
{
    border: .2em outset  var(--darkBlue);
    background-color:  var(--lightBlue);
    border-radius: .8em;
    padding: .1em .35em;
    min-width: 1.7em;
}

input[type='button']:hover:not(:disabled, :active), input[type='submit']:hover:not(:disabled, :active), input[type='reset']:hover:not(:disabled, :active),
input[type='button']:focus-visible:not(:disabled, :active), input[type='submit']:focus-visible:not(:disabled, :active), input[type='reset']:focus-visible:not(:disabled, :active)
{
    filter: saturate(350%);
}

input[type='button']:active, input[type='submit']:active, input[type='reset']:active
{
    filter: brightness(110%) saturate(250%);
    border-style: inset;
}


input.addButton
{
    text-align: center;
    border: none;
    border-radius: 100%;
    background-color: green;
    color: white;
    font-size: 16px;
    font-weight: bolder;
    width: 25px;
    height: 25px;
    min-width: unset;
}

input.RemoveButton
{
    text-align: center;
    border: none;
    background-color: inherit;
    color: crimson;
    font-size: 20px;
    font-weight: bold;
    width: 25px;
    height: 25px;
    text-overflow: clip !important;
}

input.RemoveButton:disabled, input.addButton:disabled
{
    filter: grayscale(60%);
}

input.addButton:active, input.RemoveButton:active, input.prettyButton:active
{
    filter: brightness(110%) saturate(250%);
    border: none;
}

input.prettyButton
{
    border-radius: 5px;
    color: white;
    background-color:  var(--darkBlue);
    border: none;
    font-size: 14px;
    padding-right: 6px;
    padding-left: 6px;
}

/* Buttons
///////////////////////////////////////////////////////////////////////////*/


input[type='search']
{
    -webkit-appearance: searchfield;
}

input[type='search']::-webkit-search-cancel-button
{
    -webkit-appearance:none;
    appearance:none;
    background-image:url("GreyXSmall.png");
    background-size:10px 10px;
    height:10px;
    width:10px;
}

summary
{
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently */
}

details ::marker, details summary::-webkit-details-marker
{
    color:var(--darkBlue);
}

legend>h3
{
    margin: 0px;
}


div.box
{
    border: 1px solid black;
}

input.inventoryCell
{
    text-align: center;
    border: none;
    display: table-cell;
    width: 100%;
    background-color: inherit;
    font-size: inherit;
}

textArea.inventoryCell
{
    text-align: center;
    border: none;
    display: table-cell;
    width: 100%;
    background-color: inherit;
    resize: none;
    max-height: 78px;
}

select.inventoryCell
{
    text-align: center;
    border: none;
    display: table-cell;
    background-color: inherit;
    font-size: var(--fontSize);
}

select.pretendDisabled
{
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
}

input.editableCell
{
    text-align: center;
    border: none;
    display: table-cell;
    width: 100%;
}

select
{
    min-width: 50px;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.noselect *{
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.MainDiv
{
    background-color: white;
    padding: 2%;
    width: 75%;
    margin: auto;
    height: max-content;
}


.DateStyle, input.inventoryCell.DateStyle
{
    text-align: var(--DateStyleAlignment);
}

.NumberStyle, input.inventoryCell.NumberStyle
{
    text-align: var(--NumberStyleAlignment);
}

.PriceStyle, input.inventoryCell.PriceStyle
{
    text-align: var(--PriceStyleAlignment);
}

.SpecialStyle, input.inventoryCell.SpecialStyle
{
    text-align: var(--SpecialStyleAlignment);
}

/* Chrome, Safari, Edge, Opera */
input:not(.realNum)::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number]:not(.realNum){
  -moz-appearance: textfield;
}

input[type=text]:read-only, input[type=number]:read-only, input[type=date]:read-only, input[type=time]:read-only
{
    opacity: .7;
}

.topLabel
{
    display: flex;
    flex-direction: column;
    float: left;
    margin-right: 1em;
}

.topLabel > input
{
    display: block;
}
.topLabel > select
{
    display: block;
}

.justifiedLabel
{
    display: block;
    float: left;
    width: 100%;
    margin: 2px;
}

.justifiedLabel > input, .justifiedLabel > select
{
    float: right;
    width: auto;
    display: inline;
}

.layoutTable
{
    border: 0px;
    width: 100%;
}

.layoutTable td
{
    border: 0px;
    text-align: left;
    width: auto;
}

.layoutTable input[type=text], .layoutTable input[type=number], .layoutTable input[type=date], .layoutTable input[type=time], .layoutTable select
{
    text-align: left;
}

.layoutTable input[type=number]
{
    text-align: left;
    width: 5em;
}

.layoutTable > tbody > tr > th
{
    text-decoration: underline;
    border: 0px;
    text-align: left;
    width: auto;
}

.underlineInput
{
    border: 0px;
    border-bottom: 1px solid black;
    text-align: left;
    background-color: inherit;
}

fieldset
{
    border: none;
    background-color:  var(--lightBlue);
    color: black;
    border-radius: 5px;
}

fieldset *
{
    color: black;
}

fieldset a
{
    color: revert;
}

.mainHeader
{
    display: flex;
    justify-content: space-around;
    background-color: var(--darkBlue);
    color: white;
    position: fixed !important;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: 100;
}

.mainHeader *
{
    color: inherit;
}

.headerElement
{
    color: inherit;
    background-color: inherit;
    cursor: pointer;
    border: none;
    font-size: 1.05vw;
    display: inline-block;
    text-align: center;
    padding-bottom: .5vw;
    padding-top: .5vw;
}

.subHeader
{
    flex-direction: column;
    display: none;
    justify-content: space-around;
    background-color: var(--lightBlue);
    color: black;
    position: fixed !important;
    left: 0px;
    top: 43px;
    width: max-content;
    padding-left: 15px;
    padding-right: 15px;
    border: 2px solid  var(--darkBlue);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: none;
    transform: translate(-50%, 0%);
    text-align: left;
    z-index: 99;
}

.subHeader *
{
    color: inherit;
}

h4
{
    background-color:  var(--lightBlue);
    color: black;
    font-size: 20px;
    border-radius: 5px;
    width: max-content;
    padding: 10px;
}

.popup, .itemPopup
{
    z-index: 90;
    display: none;
    position: fixed;
    left: 50%;
    top: 25%;
    transform: translate(-50%, 5%);
    border: .2em outset  var(--darkBlue);
    border-radius: 1em;
    background-color: #fff;
    color: black;
    padding: 10px;
    text-align: left;
    font-weight: normal;
    box-shadow: 15px 15px 30px black;
}

.popup *, .itemPopup *
{
    z-index: 91;
}

.popupclose
{
    float: right;
    transform: translate(10px, -11px);
}

.indexSection
{
    margin-bottom: 10px;
}

.indexSection legend
{
    background-color:  var(--darkBlue);
    color: white;
    font-size: 20px;
    border-radius: 5px;
    padding: 10px;
    font-weight: bold;
}

.indexSection p *
{
    text-decoration: none;
    font-size: large;
}

.headeredFieldset
{
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
}

.headeredFieldset legend
{
    width: 100%;
    text-align: center;
    transform: translate(-12px, 0px);
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    padding: 12px;
}

legend
{
    font-size: large;
    font-weight: bold
}

.imageButton
{
    border: none;
    background-color: white;
    color: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.realNum
{
    width: 75px;
}

.quicklinks
{
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid black;
    width: max-content;
    position: fixed;
    top: 10%;
    left: 2.5%;
    padding-top: 5px;
}

.quicklinks input
{
    margin: 5px;
}

input.hiddenButton, .hiddenButton
{
    border: none;
    background-color: inherit;
    cursor: pointer;
}

h1
{
    margin: auto;
    text-align: center;
    color: var(--darkBlue);
}

.Units
{
    width: max-content;
    margin-left: 5px;
}

table.calendar
{
    border: 1px solid black;
    border-collapse: collapse;
    table-layout: fixed;
}

td.calendar
{
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    vertical-align: top;
    height: 100px;
    width: 14.2%;
    border: 1px solid black;
    z-index: 9;
    position: relative;
}

td.calendar:hover
{
    overflow: visible;
    z-index: 10;
}

td.calendar:hover > span
{
    width: max-content;
    border-right: 4px solid white;
    border-radius: 0px 9px 9px 0px;
    padding-right: 4px;
    min-width: 98%;
}

td.calendar > span
{
    overflow: inherit;
    text-overflow: inherit;
    display: block;
    border: 2px solid white;
    border-left: none;
    width: 100%;
}

span.reminder
{
    background-color: powderblue;
}

span.pickup
{
    background-color: rgb(255, 255, 130);
}

span.delivery
{
    background-color: springgreen;
}

span.projection
{
    background-color: pink;
}

span.other
{
    filter: brightness(115%) saturate(80%);
}


.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: -7;
    left: 0;
    right: 0;
    bottom: 7;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 17px;
}

.slider.alwaysBlue
{
    background-color:  var(--darkBlue);
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color:  var(--darkBlue);
}

input:focus + .slider {
    box-shadow: 0 0 1px  var(--darkBlue);
}

input:checked + .slider.green {
    background-color: #377a35;
}

input:focus + .slider.green {
    box-shadow: 0 0 1px #377a35;
}

input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
    border-radius: 50%;
}

input.deleteLoadButton, .deleteLoadButton
{
    background-color: #ffdddd;
    color: crimson;
    border: 2px solid crimson;
    font-weight: bold;
    border-radius: 5px;
}

input.deleteLoadButton:hover
{
    filter: brightness(115%);
}

input.deleteLoadButton:disabled
{
    filter: grayscale(60%);
}

.clickyCursor
{
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.simpleExpander
{
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    background-color: inherit;
    z-index: 10;
    position: relative;
}

.simpleExpander:hover
{
    width: max-content;
    z-index: 11;
    
}

.spacedOut td
{
    padding-right: 5px;
}

.hiddenColumn
{
    display: none;
}

caption
{
  color:  var(--darkBlue);
  font-size: 18;
  font-weight: bold;
}

.leftJustified
{
    text-align: left !important;
}

.rightJustified
{
    text-align: right !important;
}

.subtleInput
{
    border: none;
    color: inherit;
    text-decoration: inherit;
    text-align: inherit;
    font-size: inherit;
    font-weight: inherit;
    background-color: inherit;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 14px;
  height: 14px;
  aspect-ratio: 1;
  margin-inline: 5px;
  border-radius: 50%;
  border: 3px solid var(--darkBlue);
  display: none;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}
@keyframes l20-1{
   0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
   12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
   25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
   50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
   100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
  0%    {transform:scaleY(1)  rotate(0deg)}
  49.99%{transform:scaleY(1)  rotate(135deg)}
  50%   {transform:scaleY(-1) rotate(0deg)}
  100%  {transform:scaleY(-1) rotate(-135deg)}
}