﻿
/* #region ---------------- HDMS Theme Colors ------------------------- */

:root {
    --hdms-blue: #4A90E2;
}

/* #endregion */


/* #region ---------------- Full Page (Regions) Level CSS ------------------------- */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    background-color: #f8f9fa;
}

.content {
    padding-top: 1.1rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* #endregion */


/* #region ---------------- Font/Text Tag CSS ------------------------- */

h1:focus {
    outline: none;
}

/* #endregion */


/* #region ---------------- Form | Controls CSS ------------------------- */

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* #endregion */



.text-hdms {
    color: var(--hdms-blue) !important;
}


.btn.btn-uss-outline {
    background-color: transparent !important;
    color: var(--hdms-blue) !important;
    border: 1px solid var(--hdms-blue) !important;
    font-weight: 500;
    border-radius: 2px;
    padding: 0.45rem 1.2rem;
    transition: all 0.2s ease-in-out;
}

    .btn.btn-uss-outline:hover {
        background-color: var(--hdms-blue) !important;
        color: white !important;
    }

.navbar-uss {
    background-color: var(--hdms-blue) !important; /* your custom color */
}

/* Optional: link colors to match theme */
.navbar-uss .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease-in-out;
}

.navbar-uss .nav-link:hover {
    color: #fff;
}

.navbar-uss .nav-link.active {
    color: #D8E8FC; /* light blue accent for active tab */
    font-weight: 500;
}

/* used to set logo background */
.navbar-brand img {
    /*background-color: white;
    border-radius: 4px;
    padding: 2px;*/
}


:root {
    --bg: #f6f8fa;
    --card: #fff;
    --accent: #0b6cff;
    --muted: #6b7280;
    --danger: #d9534f;
    font-family: Inter, Roboto, Arial, sans-serif;
}

/* Layout */
.payments-bg {
    background: var(--bg);
    padding: 28px;
    display: flex;
    justify-content: center;
}

.container.ccpay {
    width: 880px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(20,20,50,.08);
    padding: 20px 24px;
}

    .container.ccpay h2 {
        margin: 0 0 12px;
    }

.grid.ccpay {
    display: grid;
    grid-template-columns: minmax(0,1fr) 380px; /* Left can shrink, won't push right */
    gap: 20px;
}
    /* allow the left column to actually shrink */
    .grid.ccpay > :first-child {
        min-width: 0;
    }

form.ccpay {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type="text"], select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6e9ee;
    font-size: 14px;
}

.row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Utilities */
.mt-6 {
    margin-top: 6px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-16 {
    margin-top: 16px;
}

.ml-12 {
    margin-left: 12px;
}

.gap-10 {
    gap: 10px;
}

.text-right {
    text-align: right;
}

.caption {
    font-size: 12px;
    color: var(--muted);
}

.fw-700 {
    font-weight: 700;
}

.between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Buttons */
.btn {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.btn-danger {
    background: var(--danger);
}

/* Right preview */
.card-preview {
    border: 1px dashed #e1e5ea;
    border-radius: 8px;
    padding: 12px;
    background: #fbfdff;
}

.amount {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
}

/* Text helpers */
.muted {
    color: var(--muted);
    font-size: 13px;
}

.small-muted {
    font-size: 12px;
    color: #8b8f98;
}

.success {
    color: #0b934d;
    font-size: 13px;
}

.error {
    color: var(--danger);
    font-size: 13px;
}

/* ------------------------------ */
/* Transaction type (radios)      */
/* ------------------------------ */
.left-stack {
    max-width: 420px;
}
/* keep certain blocks compact on the left */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

    /* Make each radio label hug content and align left */
    .radio-group label.inline {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto; /* don't stretch full width */
        justify-content: flex-start; /* force text next to radio on left */
        margin-left: 0;
    }

    /* Neutralize any leftover ml-12 in markup for this group */
    .radio-group .ml-12 {
        margin-left: 0 !important;
    }

    .radio-group input[type="radio"] {
        margin: 0 6px 0 0;
    }

    .radio-group span {
        white-space: nowrap;
    }
/* keeps "Credit (Refund)" tidy */

/* ------------------------------ */
/* Amount input                   */
/* ------------------------------ */
.amount-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6e9ee;
    font-size: 16px;
    width: 20ch; /* exactly ~20 characters wide */
    text-align: left;
}

/* ------------------------------ */
/* Cards on file                  */
/* ------------------------------ */
.cards-list {
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .cards-list.compact {
        max-width: 420px;
    }

.card-item {
    display: grid;
    grid-template-columns: auto 1fr; /* radio | text */
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
}

    .card-item input {
        margin: 0;
        flex-shrink: 0;
    }

    .card-item label {
        margin: 0;
        font-size: 14px;
        color: #111;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .card-item:hover {
        background: #f9fafe;
    }

/* ------------------------------ */
/* Tokenizer host                 */
/* ------------------------------ */
.hosted-field {
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    min-height: 54px;
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

#tokenizer-container, #tokenizer-container * {
    max-width: 100%;
}

/* ------------------------------ */
/* City / State / ZIP             */
/* ------------------------------ */
/* Grid makes City flexible and State/ZIP fixed-width */
.city-state-zip {
    display: grid;
    grid-template-columns: 1fr auto auto; /* City | State | ZIP */
    column-gap: 12px;
    align-items: end;
}

/* Let inputs fill their field by default */
.field input, .field select {
    width: 100%;
    box-sizing: border-box;
}

/* Visual character widths */
.city-state-zip .field.state input {
    width: 3ch;
}
/* 2 chars + padding room */
.city-state-zip .field.zip input {
    width: 7ch;
}
/* 6 chars + padding room */



/* Divider */
.hr {
    border: none;
    border-top: 1px solid #eef2f6;
    margin: 12px 0;
}

/* Actions row */
.actions {
    display: flex;
    align-items: center;
}

    .actions.gap-10 {
        gap: 10px;
    }

@media (max-width:992px) {
    .grid.ccpay {
        grid-template-columns: 1fr;
    }
    .fullscreen-row > .card {
        flex: 1 1 calc(50% - 1rem);
        max-height: none; /* don’t restrict height on smaller screens */
    }
}
@media (max-width: 768px) {
    .fullscreen-row > .card {
        flex: 1 1 100%;
        max-height: none;
    }
}
@media (max-width:540px) {
    .city-state-zip {
        grid-template-columns: 1fr 1fr;
    }

        .city-state-zip .field.city {
            grid-column: 1 / -1;
        }

        .city-state-zip .field.state input {
            width: 6ch;
        }

        .city-state-zip .field.zip input {
            width: 9ch;
        }
}


/* New-card section: dim + block interaction when disabled */
.newcard-section.is-disabled {
    opacity: .55;
}

    .newcard-section.is-disabled .can-disable {
        pointer-events: none;
    }

/* Blocker over the tokenizer iframe when disabled */
.hosted-wrap {
    position: relative;
}

    .hosted-wrap .overlay {
        position: absolute;
        inset: 0;
        border-radius: 8px;
        background: rgba(255,255,255,0.4);
        cursor: not-allowed;
    }

/* Optional: style the toggle button when active */
.toggle-new[aria-pressed="true"] {
    background: #e7efff;
    border-color: #c9dcff;
}

.no-overflow {
    overflow-x: hidden !important; /* prevents scrollbars from Bootstrap gutter overflow */
}

.fullscreen-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
/*    width: 100%;
    max-width: 100%;*/
    margin: 0;
    /*padding: 0;*/
}

.fullscreen-row > .card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 300px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1em 1em 1em 1em;
    overflow: hidden;
    height: auto;
    max-height: 85vh; /* ✅ less than full screen */
}

/* Allow the card content to scroll internally only if needed */
.fullscreen-row > .card > .scroller {
    overflow-y: auto;
    overflow-x: hidden; /* ✅ stops horizontal scroll inside card */
    max-height: calc(85vh - 3rem);
    padding-right: 1rem;
    scrollbar-gutter: stable both-edges;
}

/* Scrollbar width and color for FORM Cards */
.fullscreen-row > .card > .scroller::-webkit-scrollbar {
    width: 1px;
}
.fullscreen-row > .card > .scroller::-webkit-scrollbar-thumb {
    background-color: lightgray;
    border-radius: 6px;
}


/* Fix Bootstrap grid overflow issue */
.row {
    --bs-gutter-x: 0; /* ✅ removes side gutters causing scrollbars */
}

/* make all form elements inside cards full width */
.fullscreen-row .card .form-control,
.fullscreen-row .card .form-select,
.fullscreen-row .card .form-check-input {
    width: 100%;
    padding-right:2em;
}

/* Spacing for form fields */
.fullscreen-row .card .mb-2,
.fullscreen-row .card .mb-3 {
    margin-bottom: 1rem !important;
}

/* spacing and labels */
.fullscreen-row .card label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.custom-checkbox-sm {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
}


/* #region ---------------- LOGIN | Controls CSS ------------------------- */

.login-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Stretch a main area */
.login-main {
    flex: 1;
    display: flex;
}

/* Center the page content */
.login-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* no page padding on login */
}

.login-box {
    padding: 2.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-weight: 600;
    font-size: 1.25rem;
    /*text-shadow: 0 0 5px rgba(255,255,255,0.2);*/
}


.footer {
    background-color: #f8f9fa;
    padding: 5px;
    text-align: justify;
    border-top: 1px solid #dee2e6;
}



/* #endregion */
