/* ==========================================================================
   Blazor Error UI
   ========================================================================== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ==========================================================================
   Radzen Base Overrides
   ========================================================================== */
:root {
    font-size: var(--rz-root-font-size);
    --monster-green: rgba(142, 184, 47, 1);
    --monster-white: rgba(255, 255, 255, 1);
    --monster-error-red: rgba(234, 82, 82, 1);
    --monster-purple: rgb(156, 93, 240);
    --monster-blue: rgb(75, 136, 255);
    --truenorth-blue: rgba(24, 40, 87, 1);
    --monster-mod-orange: #FF9900;
    --monster-grey-text: #6C6D6F;
    --monster-dark-text: rgb(108, 109, 111);
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: #000000;
    margin: 0;
    padding: 0;
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: #0366d6;
}

/* ==========================================================================
   Global Layout
   ========================================================================== */
.confirm-samples-bg {
    background: black;
    background-image: url(/images/Confirm_Bottler_Bg.png);
    background-position-y: 160px;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.no-request-container {
    overflow: hidden;
    min-height: 88vh;
    padding-top: 20%;
}

.confirm-container {
    width: 1300px;
    max-width: 100%;
    position: relative;
    padding: 0 33px;
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.c-logo {
    padding-top: 15px;
    padding-left: 30px;
}

.c-logo img {
    max-height: 90px;
}

/* ==========================================================================
   Header / Title Animation
   ========================================================================== */
.confirm-header {
    padding: 0 80px;
    margin-bottom: 0;
    line-height: 1;
}

.c-to-animate {
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0;
    position: relative;
    width: 100%;
}

.c-to-animate:before {
    content: "";
    position: absolute;
    width: 30%;
    max-width: 250px;
    z-index: 11;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent 0, #000 100%);
}

.c-to-animate:after {
    content: "";
    position: absolute;
    width: 30%;
    max-width: 250px;
    z-index: 11;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to right, #000 0, transparent 100%);
}

h2.c-back-txt {
    font-weight: 600;
    text-align: center;
    position: relative;
    font-size: 82px;
    line-height: 1;
    display: block;
    color: rgb(160, 160, 160);
    mix-blend-mode: hard-light;
    white-space: pre;
    text-transform: uppercase;
    mask-image: linear-gradient(to top, rgba(255, 255, 255, 0) 14%, rgba(254, 255, 255, .95) 45%);
    -webkit-mask-image: linear-gradient(to top, rgba(255, 255, 255, 0) 14%, rgba(254, 255, 255, .95) 45%);
    padding: 0;
    border: 0;
    vertical-align: baseline;
    overflow: hidden;
    margin: 0;
}

@media (min-width: 1200px) {
    h2.c-back-txt {
        font-size: 150px;
    }
}

.c-fore-txt {
    font-weight: 600;
    text-align: center;
    font-size: 42px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    position: absolute;
    z-index: 9;
    width: 100%;
    text-transform: uppercase;
    left: 0;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

.c-fore-txt:before {
    content: "";
    height: 10px;
    top: 50%;
    margin-top: -5px;
    width: auto;
    position: absolute;
    margin-left: 0;
    margin-right: 10px;
    z-index: 9;
    background: var(--monster-green);
    left: 0;
    right: calc(50% + 251px);
}

.c-fore-txt:after {
    content: "";
    height: 10px;
    top: 50%;
    margin-top: -5px;
    width: auto;
    position: absolute;
    margin-left: 10px;
    z-index: 9;
    background: var(--monster-green);
    left: calc(50% + 251px);
    right: 0;
}

.c-message {
    color: var(--monster-white);
    font-size: 14px;
    position: relative;
    text-align: center;
    top: -21px;
    padding-top: 10px;
}

@media (min-width: 1200px) {
    .c-message {
        top: -35px;
        font-size: 16px;
        padding-top: 0;
    }
}

/* ==========================================================================
   Confirm Inputs Section (Date, Time, Notes, PO#)
   ========================================================================== */
.confirm-inputs {
    background: #202020;
    border-radius: 2px;
    display: flex;
    padding: 10px 18px;
    justify-content: space-between;
    margin-top: 10px;
    position: relative;
    z-index: 11;
}

@media (min-width: 1200px) {
    .confirm-inputs {
        margin-top: 5px;
    }
}

.white-label {
    color: var(--monster-white);
    padding-top: 7px;
}

.c-icon {
    display: block;
    width: 45px;
    height: 45px;
    background: #161417;
    border-radius: 50%;
    font-size: 23px;
    vertical-align: middle;
    text-align: center;
    padding-top: 5px;
    margin-right: 10px;
}

.c-date {
    color: #8CC63F;
}

.c-time {
    color: #C3A500;
    display: inline-block;
}

.c-notes {
    color: #0054A6;
}

.confirm-po-invoice {
    font-size: 24px;
    color: var(--monster-green);
    font-weight: bold;
}

.confirm-po-invoice .po {
    margin-bottom: 1rem;
}

.confirm-po-invoice .po span:first-of-type {
    font-size: 24px;
    color: var(--monster-white);
}

.confirm-po-invoice .po span:last-of-type {
    font-size: 24px;
    color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   Confirm Details Section (Request Details + Products/Charges)
   ========================================================================== */
.confirm-details {
    background: #202020;
    border-radius: 2px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    font-size: 14px;
    padding: 10px 18px;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 80px;
}

.request {
    height: 100%;
}

@media (min-width: 1200px) {
    .request {
        height: 416px;
    }
}

.summary-details {
    width: 375px;
}

.confirm-padding {
    padding: 4px 10px;
}

.summary-details .summary-table th {
    color: rgba(255, 255, 255, .5);
    padding-right: 15px;
    font-size: 14px;
    font-weight: normal;
    width: 115px;
    text-align: left;
}

.summary-details .summary-table td {
    font-size: 14px;
    text-align: left;
    color: var(--monster-white);
    font-weight: bold;
}

.summary-prods-charges {
    width: 65%;
    position: relative;
}

@media (min-width: 1200px) {
    .summary-prods-charges {
        width: 805px;
    }
}

/* ==========================================================================
   Summary Header (shared across Products, Charges, Grand Total)
   ========================================================================== */
.summary-header {
    background: rgba(48, 48, 48, .66);
    color: var(--monster-white);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-left: 3px solid var(--monster-green);
    font-size: 18px;
    font-weight: bold;
}

.summary-header span:first-of-type {
    padding-left: 10px;
}

/* ==========================================================================
   Products
   ========================================================================== */
.summary-products .summary-header table {
    width: 100%;
    table-layout: fixed;
}

/* Shared column widths so the header table aligns with the body table */
.summary-products table col.col-product { width: 37%; }
.summary-products table col.col-material { width: 19%; }
.summary-products table col.col-quantity { width: 14%; }
.summary-products table col.col-price { width: 14%; }
.summary-products table col.col-oos { width: 16%; }

/* When colgroup is in use, let it drive widths instead of per-cell pixel rules */
.summary-products table tr > th,
.summary-products table tr > td {
    width: auto !important;
}

.summary-products .summary-header table tr th {
    color: var(--monster-white);
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
}

.summary-products .summary-header table tr th:first-of-type {
    text-align: left;
}

.summary-products .summary-header table tr th .required {
    color: var(--monster-error-red) !important;
}

.summary-product {
    min-height: 45px;
    max-height: 190px;
    overflow-y: auto;
}

.summary-product table {
    width: 100%;
    table-layout: fixed;
    text-align: left;
    margin: 4px auto;
    border-collapse: collapse;
    border-spacing: 0;
}

.summary-product table tr {
    background: var(--monster-white);
    box-shadow: rgba(0, 0, 0, .35) 1px 1px 2px;
}

.summary-product table,
.summary-product table tr th,
.summary-product table tr td {
    border: none !important;
}

.summary-product table tr th {
    width: 230px;
    padding: 4px 0 4px 8px;
    line-height: 15px;
    font-weight: bold;
    color: #202020;
}

.summary-product table tr th span {
    font-size: 12px;
    color: #7B7B7B;
}

.summary-product table tr td:nth-child(2) {
    text-align: center;
    width: 75px;
    color: #202020;
}

.summary-product table tr td:nth-child(3) {
    text-align: center;
    width: 75px;
    color: #202020;
}

.summary-product table tr td:nth-child(4) {
    text-align: center;
    width: 22px;
    color: #202020;
}

.summary-product table tr td:nth-child(5) {
    text-align: center;
    width: 55px;
    color: #202020;
}

.summary-product table tr td:last-of-type {
    text-align: right;
    color: #202020;
    width: 85px;
    padding-right: 5px;
    font-weight: bold;
}

/* Bottler Confirm Overrides */
.summary-products.bottler-confirm .summary-header table tr th:first-of-type {
    width: 37%;
    padding-left: 10px;
}

.summary-products.bottler-confirm .summary-header table tr th:nth-child(2) {
    width: 19%;
    text-align: center;
}

.summary-products.bottler-confirm .summary-header table tr th:nth-child(3) {
    width: 19%;
    text-align: center;
}

.summary-products.bottler-confirm .summary-product table {
    width: 98%;
}

.summary-products.bottler-confirm .summary-product table tr th {
    width: 141px;
}

.summary-products.bottler-confirm .summary-product table tr td:nth-child(2) {
    width: 75px;
}

.summary-products.bottler-confirm .summary-product table tr td:nth-child(3) {
    width: 75px;
}

.summary-products.bottler-confirm .summary-product table tr td:nth-child(4) {
    width: 22px;
}

.summary-products.bottler-confirm .summary-product table tr td:nth-child(5) {
    text-align: center;
    width: 55px;
}

.summary-products.bottler-confirm .summary-product table tr td:nth-child(6) {
    text-align: right;
    color: #202020;
    width: 55px;
    font-weight: bold;
    padding-right: 10px;
}

.summary-products.bottler-confirm .summary-product table tr td:last-of-type {
    width: 71px;
    padding-right: 0;
}

/* Brand Row Colors */
.summary-product table tr.brand-modified,
.summary-product table tr.row-modify {
    border-bottom: 2px solid var(--monster-mod-orange);
    border-left: 2px solid var(--monster-mod-orange);
}

.summary-product table tr.row-green {
    border-bottom: 2px solid var(--monster-green);
    border-left: 2px solid var(--monster-green);
}

.summary-product table tr.row-blue {
    border-bottom: 2px solid var(--monster-blue);
    border-left: 2px solid var(--monster-blue);
}

.summary-product table tr.row-purple {
    border-bottom: 2px solid var(--monster-purple);
    border-left: 2px solid var(--monster-purple);
}

.summary-product table tr.row-indigo {
    border-bottom: 2px solid var(--truenorth-blue);
    border-left: 2px solid var(--truenorth-blue);
}

.summary-product table tr.row-oos {
    border-bottom: 2px solid var(--monster-error-red);
    border-left: 2px solid var(--monster-error-red);
}

/* ==========================================================================
   Product OOS Checkbox
   ========================================================================== */
.product-oos {
    background: #636363;
    padding: 3px 1px;
    border-radius: 2px 0 0 2px;
}

.product-oos .container {
    display: block;
    position: relative;
    padding: 0 2px 0 25px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    color: var(--monster-white);
    user-select: none;
}

.product-oos .container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.product-oos .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--monster-white);
    border: 1px solid var(--monster-error-red);
    border-radius: 2px;
}

.product-oos .checkmark.modified-checkmark {
    border: 1px solid var(--monster-mod-orange);
}

.product-oos .container:hover input ~ .checkmark {
    background-color: #ccc;
}

.product-oos .container input:checked ~ .checkmark {
    background-color: var(--monster-error-red);
}

.product-oos .container input:checked ~ .checkmark.modified-checkmark {
    background-color: var(--monster-mod-orange);
}

.product-oos .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.product-oos .container input:checked ~ .checkmark:after {
    display: block;
}

.product-oos .container .checkmark:after {
    left: 7px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.product-oos.checked-oos {
    background: #303030;
}

/* Product Quantity Buttons */
.product-increase,
.product-decrease {
    background-color: #000000 !important;
    color: var(--monster-green) !important;
    font-size: 0.75rem !important;
    padding: 0 !important;
    height: 20px !important;
    width: 20px !important;
    border: none;
    cursor: pointer;
}

.product-increase:hover,
.product-decrease:hover {
    color: var(--monster-mod-orange) !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

.product-increase {
    border-top-left-radius: 50% !important;
    border-top-right-radius: 50% !important;
    margin-bottom: 4px;
}

.product-decrease {
    border-bottom-left-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}

/* ==========================================================================
   Charges / Fees
   ========================================================================== */
.summary-charges .summary-header {
    background: rgba(48, 48, 48, .77);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.summary-charges .summary-header span {
    display: block;
}

.summary-charges .summary-header span:first-of-type {
    width: 50%;
    text-align: left;
}

.summary-charges .summary-header span:nth-child(2) {
    width: 50%;
    text-align: right;
}

.summary-charges .summary-table {
    color: var(--monster-white);
    table-layout: fixed;
    font-weight: bold;
    text-align: left;
    width: 96%;
    margin: 4px auto;
}

.summary-charges .charges-row {
    display: flex;
    justify-content: space-between;
    padding: 0 5px 0 10px;
}

.summary-charges .charges-row div:first-of-type {
    color: #7B7B7B;
}

.summary-charges .charges-row span.prod-total {
    color: var(--monster-green);
}

/* Bottler Confirmation Fee Overrides */
.summary-charges.bottler-confirmation .summary-header span:last-of-type {
    padding-right: 107px;
}

.summary-charges.bottler-confirmation .charges-row div:last-of-type {
    padding-right: 90px;
}

/* ==========================================================================
   Grand Total
   ========================================================================== */
.summary-grand-total .summary-header {
    display: flex;
    justify-content: space-between;
}

.summary-grand-total .summary-header span:last-of-type {
    padding-right: 109px;
}

.summary-grand-total .summary-notice {
    color: var(--monster-white);
    font-size: 13px;
    text-align: right;
    padding-right: 15px;
}

.summary-grand-total {
    margin-bottom: 80px;
}

/* ==========================================================================
   Modified / Validation Styles
   ========================================================================== */
.modified-text {
    color: var(--monster-mod-orange) !important;
    font-weight: bold;
}

.modified-border {
    border: 1px solid var(--monster-mod-orange);
}

.required {
    color: var(--monster-error-red) !important;
    margin-right: 10px !important;
}

.invalid-element {
    border: 2px solid var(--monster-error-red);
}

.confirmed-text {
    color: var(--monster-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.btn-primary {
    background-color: var(--monster-green) !important;
    border: 1px solid var(--monster-green) !important;
    color: var(--monster-white);
    text-transform: uppercase;
    font-weight: bold;
}

.btn-primary:active,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--monster-green) !important;
    border: 1px solid var(--monster-green) !important;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary i,
.btn-modify i {
    padding-left: 5px;
}

.btn-modify {
    background-color: var(--monster-mod-orange);
    border: 1px solid var(--monster-mod-orange);
    color: var(--monster-white);
    text-transform: uppercase;
    font-weight: bold;
}

.btn-modify:active,
.btn-modify:hover,
.btn-modify:focus {
    background-color: var(--monster-mod-orange) !important;
    border: 1px solid var(--monster-mod-orange) !important;
}

.btn-modify:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   Bottom Fixed Action Bar
   ========================================================================== */
.bottom-fixed {
    position: fixed;
    width: 100%;
    z-index: 9;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    bottom: 0;
    left: 0;
    background: rgba(48, 48, 48);
}

.flex-bottom-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgba(48, 48, 48, 0.66);
}

.flex-bottom-fixed .flex-item {
    width: 100%;
    margin: 0 25px;
}

.flex-bottom-fixed h2,
.flex-bottom-fixed h3 {
    margin: 0;
    line-height: 1;
}

.confirmed-text h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

/* ==========================================================================
   Row Grid Helpers (Bootstrap-style grid for layout)
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.w-100 {
    width: 100% !important;
}

/* ==========================================================================
   Radzen Theme Overrides (match Angular look)
   ========================================================================== */

/* Date/Time pickers — white background with dark text */
.confirm-inputs .rz-datepicker .rz-inputtext,
.confirm-inputs .rz-textbox,
.confirm-inputs .rz-textarea {
    background-color: var(--monster-white) !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    border-radius: .25rem;
}

/* Radzen text input in the no-record-id section */
.no-request-container .rz-textbox {
    background-color: var(--monster-white) !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

/* Override Radzen body/layout backgrounds to black */
.rz-body {
    background: #000000 !important;
}

.rz-layout {
    background: #000000 !important;
}

html, .rz-body > div {
    background-color: #000000 !important;
}

/* Radzen applies transform: translateZ(0) to .rz-layout .rz-body, which creates
   a containing block and breaks `position: fixed` (anchors to .rz-body instead
   of the viewport). Override so .bottom-fixed pins to the viewport bottom. */
.rz-layout .rz-body {
    transform: none !important;
}
