html {
  font-size: 14px;
}

.h3, h3 {
    font-size: 1.5rem;
}

/* Grid (rows and cols) */
.row {
    padding-bottom: 1em;
}

/* If using as another user, highlight the container */
.use-as-user {
    background-color: #F8D7DA;
    border-radius: 5px;
    border: #F1AEB5;
    padding-top: 0.5rem;
}

/* Consultancy form: Make sure long URLs in tables wrap when they need to */
#project-estimate-details a#external-source {
    word-wrap: anywhere;
}

/* Hide package dropdowns on New Package page */
body[data-pagetype="new-package"] .package-selection {
    display: none;
}

/* Forms */

/* Hide the number spinner in WebKit-based browsers (e.g. Safari) and Firefox */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type="text"]:read-only {
    background-color: whitesmoke;
    cursor: not-allowed;
}

.validation-summary-errors ul {
    padding: 0.5rem 1.2rem;
    border: solid 1px #ffe69c;
    border-radius: 5px;
    background-color: rgb(255, 243, 205);
    color: rgb(102, 77, 3);
}

.validation-summary-errors li {
    list-style: none;
}

.form-label, .form-check-label, .col-form-label {
    font-weight: 600;
}

.field-validation-error {
    color: red;
    font-weight: bolder;
}

.btn-disabled {
    cursor: not-allowed;
}

/* Rotated table headers */
th.rotated {
    height: 130px;
    white-space: nowrap;
}

    th.rotated > div {
        transform:
            translate(14px, 57px)
            rotate(280deg);
        width: 19px;
        height: 13px;
        margin-left: -0.5rem;
        margin-bottom: 5rem;
    }

        th.rotated > div > span {
            padding: 5px 15px;
            margin-left: -35px;
        }


/* Make sure narrow table columns have minimum width */
.twentycharswidth { /* Fits date entry field, 3-digit number input and two buttons with icons */
    width: 20rem;
}

.fourteencharswidth { /* Fits two buttons with icon and text */
    width: 14rem;
}

.thirteencharswidth { /* Fits two buttons with icon and text */
    width: 13rem;
}

.elevencharswidth { /* Fits two buttons with icon and text */
    width: 11rem;
}

.eightcharswidth { /* Fits one button with icon and text */
    width: 8rem;
}

.sevencharswidth { /* Fits one button with icon and text */
    width: 7rem;
}

.sixcharswidth {
    width: 6rem;
}

.fivecharswidth { /* Fits a small-font date */
    width: 5rem;
}

.fourcharswidth { /* For two icon buttons */
    width: 4rem;
}

/* Set width of variable-content buttons to make tables appear neater */
.btn-sixchars {
    width: 6rem
}


/* Red trash buttons */
button:not(.btn-danger) .bi-trash {
    color: red;
}

/* Blue help icons */
.help-icon {
    color: cornflowerblue;
}

/* Green ticks */
.bi-check-circle-fill {
    color: green;
}
/* Give required fields an asterisk */
label.required::after {
    content: " *";
    color: red;
}

/* Container */
@media (min-width: 1400px) {
    .container {
        max-width: 95%;
    }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* TABLES */
/* Font */
table#consultancyadmin-estimates {
    font-size: smaller;
}

/* Table column widths */
col.id {
    min-width: 4.5rem;
}

col.tableform-input-2btns {
    min-width: 10.5rem;
}

col.tableform-input-1btn {
    min-width: 8.5rem;
}

/* Forms */
select + select {
    margin-top: 1em;
}


/* #region Estimate form */

.product-column {
    border: 2px dashed gray;
    padding: 10px;
}

    .product-column:after {
        content: "Drop more products here";
        font-size: xx-large;
        color: lightgray;
        padding: 2rem;
    }

.product-selection {
    height: 600px;
    overflow: scroll;
}

#products-selector li {
    cursor: grab;
}

#products-selector li:active {
    cursor: grabbing;
}

#accordionProductTree .removeProductBox {
    display: none;
    float: right !important;
}
    
.removeProductBox {
    float: right !important;
}

[data-coltype="preferredprod"] li:nth-of-type(1) {
    background: #c5fffa;
}

[data-coltype="preferredprod"] li:nth-of-type(1)::before {
    content: "Preferred: ";
    margin-right: 0.5em;
    font-weight: bold;
}

.steelshape {
    color: white;
    font-size: 66%;
    padding: 0.1em 0.2em;
    margin: 0.2em 0em 0.5em 0.4em;
    border-radius: 3px;
    display: inline-flex;
    vertical-align: middle;
}

/* #endregion */


/* #region DataCheck */

#availableColumns {
    display: inline-block;
    border: 2px dashed lightgray;
    padding: 0.5em;
    margin: 1em auto;
}

#dataCheck td.Confidence, #dataCheck td.Row, #dataCheck th.Confidence, #dataCheck th.Row {
    display: none;
}

#dataCheck th, #dataCheck td {
    vertical-align: middle;
}

#dataCheck td input, #dataCheck td select {
    font-size: 80% !important;
    padding: 0.2em 0.2rem;
    border-radius: 4px;
}

#dataCheck .mtoCheckColHeader {
    border: 2px dashed lightgrey;
}

.detectedColHeader {
    background-color: lightblue;
    border-radius: 3px;
    margin: 3px;
    display: inline-block;
    font-weight: bold;
    padding: 0px 3px;
    cursor: grab;
}

.detectedColHeader:hover {
    border: 3px solid #92b7c4;
    margin: 0px;
}

table#dataCheck .DetectedProfile span {
    cursor: pointer;
    display: block;
    height: 1rem;
    padding-bottom: 20px;
}

    table#dataCheck .DetectedProfile span:hover {
        background-color: white;
    }

/* Keep detected data always visible when horizontally scrolling */
th.DetectedProfile, td.DetectedProfile {
    position: sticky;
    left: 0;
    min-width: 250px;
}

/* Make original content look different from detected columns */
#dataCheck tr td:nth-of-type(n+11) {
    font-size: 80% !important;
    background-color: #f9f9f9;
    color: #5e5e5e;
    font-family: monospace;
    white-space: nowrap;
    min-width: 100px;
}

/* Colour the confidence levels */
#dataCheck tr.confidence-0 td.DetectedProfile {
    background-color: #a7ffeb;
}

#dataCheck tr.confidence-1 td.DetectedProfile {
    background-color: #64ffda;
}

#dataCheck tr.confidence-2 td.DetectedProfile {
    background-color: #1de9b6;
}

/* #endregion */

/* User Management table */
#user-management-all-users th {
    position: sticky;
    top: -1px;
}

    #user-management-all-users tr:nth-child(2) th {
        position: sticky;
        top: 30px;
    }