/* Media query for mobile viewport */
@media screen and (max-width: 400px) {
    #paypal-button-container {
        width: 100%;
    }
}

/* Media query for desktop viewport */
@media screen and (min-width: 400px) {
    #paypal-button-container {
        width: 250px;
        display: inline-block;
    }
}

.PurchaseZone, .PurchaseHistoryZone, .StoreZone {
    float: left;
    margin: 10px;
    background: #f0f2f3;
    padding: 10px;
}

.PurchaseZone>div, .StoreZone>div, .PurchaseHistoryZone>div {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.PurchaseHistoryZone table, .StoreZone table, .PurchaseZone table {
    border: 1px solid black;
}

.PurchaseHistoryZone table {
    width: 100%;

}

/*.StoreZone table {
    width: 40%;
}*/

.PurchaseZone table {
    table-layout: fixed;
/*    width: 100%; */
}

.PurchaseZone .total {
    font-weight: bold;
}

.PurchaseZone tr.total td {
    font-size: 0.8em;
}

.PurchaseZone th, .PurchaseHistoryZone th, .StoreZone th {
    background-color: #315478;
    color: white;
    padding: 5px
}

.PurchaseHistoryZone td, .PurchaseZone td, .StoreZone td
{
    border-top:1px solid silver;
    padding:5px;
}

.PurchaseHistoryZone tr.warning, #ppWarning {
    color: red;
    font-size: 1.2em;
}

#ppStatusTarget
{
    font-size:1.4em;
}

#ppReference
{
    word-wrap:break-word;
}

button.buyMe {
    font-weight: bold;
    font-size: 2em;
    padding-left: 0.5em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    padding-right: 0.5em;
}




.runSchedule {
    margin-top: 10px;
    margin-bottom: 10px;
}

.runSchedule td {
    border-right: 1px solid silver;
    border-top: 1px solid silver;
    padding: 3px;
    text-align: right;
}

.runSchedule td:first-child {
    text-align: left;
}

.runSchedule th {
    text-align: center;
}

.runSchedule th, .runSchedule tfoot td {
    background-color: #315478;
    color: white;
    padding: 5px;
    border: 1px solid white;
    vertical-align: middle;
    font-weight: bold;
}


.runSchedule .danger {
    background-color: red;
    color: white;
}



.setupCalls, .setupCallers, .setupDays, .runSchedule {
    padding: 5px;
}

.runSchedule label input[type="checkbox"] {
    margin-right: 5px;
}

button.picker {
    margin-top: 5px;
    margin-bottom: 5px;
}

#callsPointsetName, #callersPointsetName, #catchmentName, #pointsetName, #folderName {
    padding: 10px;
}

#callNameColumns li {
    margin: 8px;
}

#callNameColumns span {
    background: lightgray;
    /* padding: 5px; */
    margin: 5px;
}

#callNameColumns input[type="checkbox"] {
    float: left;
}

.stop {
    border: solid 1px lightgray;
}

.stop .stack {
    display: block;
}

.callSchedule label, .runSchedule label, .shapeProperties label {
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
}

.setupDays #maxDayTime, .setupDays #nDays, .setupCalls #defaultVisitTime {
    width: 30px;
    text-align: right;
    margin-top: 10px;
    margin-bottom: 10px;
}

.stop #stopMins {
    width: 30px;
    text-align: right;
    margin-left: 5px;
}

.stop #resetOnChange {
    margin-left: 10px;
}

.setupCallers > div:not(.buttonbarRight), .assignmentMode {
    border: solid 1px lightgray;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.setupCallers > label {
    display: block;
    margin-top: 5px;
}

.updateCall, .updateTile {
    border: solid 1px lightgray;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.updateTile #selectTile {
    margin: 5px;
}

/*
.setupCallers #point {
    width: 90px;
}
*/

.week label, .dayLabel label {
    display: block;
}

.split .container {
    margin: 5px;
}

.shapeProperties div {
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 10px;
    margin-bottom: 5px;
}


.profiler label, .targetter label {
    display: block;
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
}

.profiler .labelledTable {
    display: inline-block;
    margin-right: 10px;
/*    vertical-align: top; */
}

div#px_reportscroller {
    max-width: fit-content;
    padding-top: 0px;
}

div#px_reportscroller tfoot {
    background-color: darkgray;
    font-weight: bold;
}

.groupCounts th, .centre {
    text-align: center;
}

.targetter .scroller {
    clear: both;
}

.wizard .separator {
    margin-top: 5px;
}

.picker {
    display: inline;
}

.picker .label {
    float: left;
    margin-right: 5px;
}

.wizard .container {
    display: inline-block;
    margin-top: 20px;
/*    margin-bottom: 20px; */
}

/* SPREADSHEET */
.spreadsheet {
    margin: 0px;
    /* height: 500px; */
/*    width: 100%; */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.spreadsheet td {
    border-right: 1px solid silver;
    border-top: 1px solid silver;
    padding: 3px;
    text-align: right;
}

/*
.spreadsheet td:first-child {
    text-align: left;
}
*/

.spreadsheet td.text-left {
    text-align: left;
}

.spreadsheet th {
    text-align: center;
}

.spreadsheet .columnSection th {
    background-color: #949da5;
}

.spreadsheet td.rowSection {
    background-color: #949da5;
    writing-mode: vertical-lr;
    text-align: left;
    color: white;
    padding: 5px;
    border: 1px solid white;
    vertical-align: middle;
    font-weight: bold;
}

.spreadsheet th, .spreadsheet tfoot td {
    background-color: #315478;
    color: white;
    padding: 5px;
    border: 1px solid white;
    vertical-align: middle;
    font-weight: bold;
}


.spreadsheet .danger {
    background-color: red;
    color: white;
}

.spreadsheet label input[type="checkbox"] {
    margin-right: 5px;
}

.spreadsheet label {
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
}