/* v2 Template CSS — customize this file for the v2 portal design */

/* Google Fonts — Inter for headings and card titles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================================
   Step 1.4 — Inter Typography
   ================================================ */
h1, h2, h3, h4, h5, .card-title {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}
h1 { line-height: 1.15; }
h2 { line-height: 1.2; }
h3, h4, h5 { line-height: 1.25; }
.card-title { line-height: 1.3; }
.card-text { line-height: 1.5; }

/* ================================================
   Step 1.1 — Card Hover Lift & Button Transitions
   ================================================ */
.portal-card-dark,
.sub-card,
.comic-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-card-dark:hover,
.sub-card:hover,
.comic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
}
.portal-card-dark .btn,
.sub-card .btn,
.comic-card .btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.portal-card-dark .btn:active,
.sub-card .btn:active,
.comic-card .btn:active {
    transform: scale(0.97);
}

/* ================================================
   Step 1.2 — Cover Image Scale-on-Hover
   ================================================ */
.portal-card-dark .d-flex img,
.comic-card .aspect-ratio-container {
    overflow: hidden;
}
.portal-card-dark .d-flex img,
.comic-card .aspect-ratio-container-item {
    transition: transform 0.3s ease;
}
.portal-card-dark:hover .d-flex img,
.comic-card:hover .aspect-ratio-container-item {
    transform: scale(1.05);
}
/* Exclude variant thumbnails — they have their own border interaction */
.variant-thumb-select img {
    transition: none !important;
    transform: none !important;
}

/* ================================================
   Step 1.3 — Gradient Accent Highlights
   ================================================ */
.portal-card-dark {
    border-top: 3px solid transparent;
    border-image: linear-gradient(
        90deg,
        rgba(var(--portal-accent-rgb, 13, 110, 253), 0.8),
        rgba(var(--portal-accent-rgb, 13, 110, 253), 0.2)
    ) 1;
}
.portal-card-dark:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2),
                0 0 15px rgba(var(--portal-accent-rgb, 13, 110, 253), 0.15) !important;
}
.sub-card-category-badge {
    background: linear-gradient(
        135deg,
        rgba(var(--portal-accent-rgb, 13, 110, 253), 0.9),
        rgba(var(--portal-accent-rgb, 13, 110, 253), 0.65)
    ) !important;
}

/* ================================================
   Step 1.5 — Scroll Animation Keyframes (dormant)
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.v2-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}
.v2-fade-delay-1 { animation-delay: 0.05s; }
.v2-fade-delay-2 { animation-delay: 0.10s; }
.v2-fade-delay-3 { animation-delay: 0.15s; }
.v2-fade-delay-4 { animation-delay: 0.20s; }
.v2-fade-delay-5 { animation-delay: 0.25s; }
.v2-fade-delay-6 { animation-delay: 0.30s; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .v2-fade-in-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .portal-card-dark,
    .sub-card,
    .comic-card {
        transition: none !important;
    }
    .portal-card-dark:hover,
    .sub-card:hover,
    .comic-card:hover {
        transform: none !important;
    }
    .portal-card-dark .d-flex img,
    .comic-card .aspect-ratio-container-item {
        transition: none !important;
    }
    .portal-card-dark:hover .d-flex img,
    .comic-card:hover .aspect-ratio-container-item {
        transform: none !important;
    }
    .v2-hero-bg {
        animation: none !important;
    }
    .v2-spotlight-strip {
        animation: none !important;
    }
    .v2-new-badge::before {
        animation: none !important;
    }
}

/* ================================================
   Step 2.5 — Hero Banner
   ================================================ */
.v2-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.v2-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.45);
    transform: scale(1.15);
    z-index: 0;
}
.v2-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--portal-accent-rgb, 13, 110, 253), 0.55),
        rgba(33, 37, 41, 0.75)
    );
    z-index: 1;
}
.v2-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #fff;
}
.v2-hero-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 2rem;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.v2-hero-content .v2-hero-dates {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}
.v2-hero-content .btn {
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.v2-hero-content .btn:hover {
    background-color: rgba(255,255,255,0.25);
}
.v2-hero-content .btn:active {
    transform: scale(0.97);
}
@media (max-width: 767.98px) {
    .v2-hero {
        min-height: 160px;
    }
    .v2-hero-content {
        padding: 1.5rem 1rem;
    }
    .v2-hero-content h2 {
        font-size: 1.5rem;
    }
}

/* ================================================
   Step 2.6 — Cover Spotlight Strip
   ================================================ */
.v2-spotlight-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}
.v2-spotlight-strip::-webkit-scrollbar {
    display: none;
}
.v2-spotlight-strip img {
    scroll-snap-align: start;
    flex: 0 0 auto;
    height: 180px;
    width: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.v2-spotlight-strip img:hover {
    transform: scale(1.04);
}
@media (max-width: 767.98px) {
    .v2-spotlight-strip img {
        height: 140px;
    }
}

/* ================================================
   Step 2.7 — Grid/Line View Crossfade on Load
   ================================================ */
.portal-line-item,
.comic-card {
    animation: fadeInUp 0.35s ease forwards;
    opacity: 0;
}
/* Stagger first visible items */
.comic-card:nth-child(1), .portal-line-item:nth-child(1) { animation-delay: 0s; }
.comic-card:nth-child(2), .portal-line-item:nth-child(2) { animation-delay: 0.03s; }
.comic-card:nth-child(3), .portal-line-item:nth-child(3) { animation-delay: 0.06s; }
.comic-card:nth-child(4), .portal-line-item:nth-child(4) { animation-delay: 0.09s; }
.comic-card:nth-child(5), .portal-line-item:nth-child(5) { animation-delay: 0.12s; }
.comic-card:nth-child(6), .portal-line-item:nth-child(6) { animation-delay: 0.15s; }
.comic-card:nth-child(n+7), .portal-line-item:nth-child(n+7) { animation-delay: 0.18s; }

/* ================================================
   Step 2.8 — "New This Week" Pulsing Badge
   ================================================ */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(25, 135, 84, 0);
    }
}
.v2-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #198754;
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-radius: 50rem;
    padding: 0.15rem 0.55rem 0.15rem 0.4rem;
    white-space: nowrap;
    vertical-align: middle;
}
.v2-new-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #198754;
    animation: pulseGlow 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ================================================
   Publisher Dividers (sort-by-publisher mode)
   ================================================ */

/* Shared elements */
.v2-publisher-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.v2-publisher-accent {
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        rgb(var(--portal-accent-rgb, 13, 110, 253)),
        rgba(var(--portal-accent-rgb, 13, 110, 253), 0.3)
    );
}
.v2-publisher-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--portal-accent-rgb, 13, 110, 253), 0.7);
    margin-bottom: 0.15rem;
}

/* Grid view — publisher info sits inside the cover area */
.v2-publisher-card {
    border: none !important;
}
.v2-publisher-card:hover {
    transform: none;
    box-shadow: none !important;
}
.v2-publisher-cover {
    background-color: #212529;
    padding: 1.25rem !important;
    height: 0;
    padding-top: calc(10.25 / 6.625 * 100%) !important;
    position: relative;
}
.v2-publisher-cover > * {
    position: absolute;
}
.v2-publisher-cover .v2-publisher-label {
    top: 1.25rem;
    left: 1.25rem;
    color: rgba(var(--portal-accent-rgb, 13, 110, 253), 0.7);
}
.v2-publisher-cover .v2-publisher-name-group {
    top: 2.25rem;
    left: 1.25rem;
    right: 1.25rem;
}
.v2-publisher-cover .v2-publisher-name {
    font-size: 1.5rem;
    color: #f8f9fa;
    line-height: 1.1;
}
.v2-publisher-cover .v2-publisher-title-count {
    display: block;
    margin-top: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}
.v2-publisher-cover .v2-publisher-accent {
    bottom: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(90deg, rgb(var(--portal-accent-rgb, 13, 110, 253)), rgba(var(--portal-accent-rgb, 13, 110, 253), 0.2));
}

/* Mobile — shrink publisher divider to content height */
@media (max-width: 767.98px) {
    .v2-publisher-cover {
        height: auto;
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    .v2-publisher-cover > * {
        position: static;
    }
    .v2-publisher-cover .v2-publisher-accent {
        margin-top: 0.5rem;
    }
}

/* Line view — horizontal banner within the list */
.v2-publisher-divider-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    margin-top: 0.25rem;
    background-color: #212529;
    border-left: 3px solid rgb(var(--portal-accent-rgb, 13, 110, 253));
}
.v2-publisher-divider-line .v2-publisher-name {
    font-size: 0.85rem;
    color: #f8f9fa;
    letter-spacing: 0.04em;
}
.v2-publisher-divider-line .v2-publisher-accent {
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background-color: rgb(var(--portal-accent-rgb, 13, 110, 253));
}

/* ================================================
   Step 2.9 — Subscribe Feedback Toast
   ================================================ */
.v2-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
}
.v2-toast {
    background-color: #212529;
    color: #f8f9fa;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    cursor: pointer;
    animation: v2ToastIn 0.3s ease forwards;
    max-width: 320px;
}
.v2-toast.v2-toast-out {
    animation: v2ToastOut 0.25s ease forwards;
}
.v2-toast-success {
    border-left: 3px solid #198754;
}
.v2-toast-error {
    border-left: 3px solid #dc3545;
}
.v2-toast svg {
    flex-shrink: 0;
}
@keyframes v2ToastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes v2ToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
}
/* SVG checkmark animation */
.v2-toast-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: v2CheckDraw 0.4s ease 0.15s forwards;
}
@keyframes v2CheckDraw {
    to { stroke-dashoffset: 0; }
}

.sticky-table-header {
    position: sticky;
    top: 50px;
    z-index: 1;
}

html {
    position: relative;
    min-height: 100%;
}

/* sticky footer code */
body {
    margin-bottom: 60px; /* Margin bottom by footer height */
}

.footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the fixed height of the footer here */
}

/*!
 * IE10 viewport hack for Surface/desktop Windows 8 bug
 * Copyright 2014-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
@-ms-viewport {
    width: device-width;
}

@-o-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}


.bg-success-20 {
    background-color: rgba(40, 167, 69, 0.2) !important;
    border-bottom: #000 !important;
}

.bg-warning-20 {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-bottom: #000 !important;

}

.bg-danger-20 {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-bottom: #000 !important;

}

/* For small screen */
.row-striped :nth-child(even).row {
    background-color: #ffffff;
}

.row-striped :nth-child(odd).row {
    background-color: #cecece;
}

.clickable-row {
    cursor: pointer;
}

/*.b-lazy {*/
/*    -webkit-transition: opacity 200ms ease-in-out;*/
/*    -moz-transition: opacity 200ms ease-in-out;*/
/*    -o-transition: opacity 200ms ease-in-out;*/
/*    transition: opacity 200ms ease-in-out;*/
/*    max-width: 100%;*/
/*    opacity: 0;*/
/*}*/

/*.b-lazy.b-loaded {*/
/*    opacity: 1;*/
/*}*/

table.table-vscroll {
    height: 220px; /* Just for the demo          */
    overflow-y: auto; /* Trigger vertical scroll    */
    overflow-x: hidden; /* Hide the horizontal scroll */
}

table.table-vscroll {
    display: block;
}


@media print {

    .col-1 {
        width: 8%;
        float: left;
    }

    .col-2 {
        width: 16%;
        float: left;
    }

    .col-3 {
        width: 25%;
        float: left;
    }

    .col-4 {
        width: 33%;
        float: left;
    }

    .col-5 {
        width: 42%;
        float: left;
    }

    .col-6 {
        width: 50%;
        float: left;
    }

    .col-7 {
        width: 58%;
        float: left;
    }

    .col-8 {
        width: 66%;
        float: left;
    }

    .col-9 {
        width: 75%;
        float: left;
    }

    .col-10 {
        width: 83%;
        float: left;
    }

    .col-11 {
        width: 92%;
        float: left;
    }

    .col-12 {
        width: 100%;
        float: left;
    }

    body {
        background: none;
        font-family: "Arial";
    }

    body, #pullsheet {
        -webkit-print-color-adjust: exact;
        font-size: 16px;
        font-family: "Arial";
        padding: 6px;
        width: 85%;
        margin: auto;

    }

    body, #receipt {
        width: 85%;
        margin: auto;
    }

    .h5 {
        font-size: 17px;
        font-weight: bold;
    }

    .print-hide {
        display: none;
    }

    #pullsheet div {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #pullsheet table tr td {
        padding: .2rem;
    }

    div.bg-warning {
        font-weight: normal;
    }

    span.notpulled {
        /*background-color: #000000 !important;*/

    }

    table.pagebreak {
        page-break-after: always;
    }

    div.pagebreak {
        page-break-after: always;
    }

    div {
        width: 100%;
        height: 100%;
    }

    pull-list-customer {
        background-color: #7f7f7f;
        text-align: left;
        font-weight: normal;
        width: 100%;
        page-break-inside: avoid;
    }

    table .pull-list-items {
        page-break-inside: avoid;
    }

    .pull-list-customer h5 a {
        text-decoration: none;
    }

    div.pull-list-item {
        background-color: #dddddd;
        padding: 0;
        font-weight: normal;
    }

    div.pull-list-customer .row {
        /*background-color: #;*/
        text-align: left;
        font-weight: normal;
        padding: 0;
    }

    *, ::after, ::before {
        text-shadow: none !important;
        box-shadow: none !important
    }

    a:not(.btn) {
        text-decoration: underline
    }

    abbr[title]::after {
        content: " (" attr(title) ")"
    }

    pre {
        white-space: pre-wrap !important
    }

    blockquote, pre {
        border: 1px solid #adb5bd;
        page-break-inside: avoid
    }

    img, tr {
        page-break-inside: avoid
    }

    h2, h3, p {
        orphans: 3;
        widows: 3
    }

    h2, h3 {
        page-break-after: avoid
    }

    @page {
        size: a3
    }

    body {
        min-width: 992px !important
    }

    .container {
        min-width: 992px !important
    }

    .badge {
        border: 1px solid #000
    }

    .table {
        border-collapse: collapse !important

    }

    .table td, .table th {
        background-color: #fff !important
    }

    .table-bordered td, .table-bordered th {
        border: 1px solid #dee2e6 !important
    }

    .table-dark {
        color: inherit
    }

    thead .table-dark th {
        background-color: #000000 !important;
    }

    .table-dark tbody + tbody, .table-dark td, .table-dark th, .table-dark thead th {
        border-color: #dee2e6
    }
    div.card-body{
        background-color: #ffffff !important;
    }

    /* Print safety — suppress v2 visual enhancements */
    .portal-card-dark,
    .sub-card,
    .comic-card,
    .portal-line-item {
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        border-image: none !important;
    }
    .v2-hero,
    .v2-spotlight-strip,
    .v2-toast-container {
        display: none !important;
    }
    .v2-new-badge::before {
        animation: none !important;
        box-shadow: none !important;
    }
}

span.prepaid {
    text-decoration: line-through;
    font-weight: bold;
}

span.notpulled {
    text-decoration: line-through;
}

.striped-div:nth-child(2n) {
    background: #fff;
}

.striped-div {
    background: #c8dfed;
}


#loading {
    display: flex;
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.loading {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.loading-sm {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.loading-mini {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.25);
    background-image: url("https://csa-images.s3.us-west-2.amazonaws.com/loading.gif");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}


html {
    scroll-padding-top: 70px;
}

.quickcheckin {
    display: none;
}


/*.navbar .nav-item:not(:last-child){*/
/*    margin-right: 35px;*/
/*}*/

.dropdown-toggle::after {
    transition: transform 0.15s linear;
}

.show.dropdown .dropdown-toggle::after {
    transform: translateY(3px);
}

.dropdown-menu {
    margin-top: 0;
}

header > hide:hover + nav,
header > nav:hover {
    display: block;
}

#transactionSearchForItemsModal .modal-dialog, #transactionSearchForItemsModal .modal-content, #transactionActionsModal .modal-dialog, #transactionActionsModal .modal-content, #searchModal .modal-dialog, #searchModal .modal-content {
    height: 80%
}

#transactionActionsModal .modal-body, #searchModal .modal-body, #transactionSearchForItemsModal .modal-body {
    max-height: calc(100% - 120px);
    overflow-y: scroll;
}

.box {
    display: none;
}

.mobyBottom {
    position: absolute;
    bottom: 0;
}

#reconcileRegisters .input-group .input-group-text {
    width: 70%;
}

.csaChecklist {
    padding-left: 1em;
    text-indent: -.75em;
}

a:not([btn]) {
    text-decoration: none;
}

a:not([btn]):hover {
    text-decoration: underline;
}

.obfuscate-form-field-text {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

/* Container holding the image and the text */
.imageContainer {
    position: relative;
    text-align: center;
    color: #000000;
    /*z-index: -1;*/
    /*text-shadow: #000000 2px 2px 3px;*/
}

/* Bottom left text */
.bottom-left {
    position: absolute;
    bottom: 5%;
    left: 8%;
    background-color: #ffffff;
}

/* Top left text */
.top-left {
    position: absolute;
    top: 5%;
    left: 8%;
    background-color: #ffffff;
}

/* Top right text */
.top-right {
    position: absolute;
    top: 5%;
    right: 8%;
    background-color: #ffffff;
}

/* Bottom right text */
.bottom-right {
    position: absolute;
    bottom: 5%;
    right: 8%;
    background-color: #ffffff;
}

/* Centered text */
.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
}

.centered-bottom {
    position: absolute;
    bottom: 5%;
    left: auto;
    background-color: #ffffff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /*This is for firefox*/
}

.showarrows input[type=number]::-webkit-inner-spin-button,
.showarrows input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: number-input;
    -moz-appearance: number-input;
    appearance: auto;
    margin: 0;
}

.showarrows input[type=number] {
    -moz-appearance: number-input; /*This is for firefox*/
}

/* HIDE NAV ON SCROLL DOWN. SHOW ON SCROLL UP. MUST ALSO UN-COMMENT IN MOBY-FOOT */
/*nav {*/
/*    transition: background 0.4s ease-in-out;*/
/*    background: #010101;*/
/*}*/
/*.is-hidden {*/
/*    opacity: 0;*/
/*    transition: transform 0.4s, opacity 0.2s;*/
/*}*/
/*.fixed-top {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    right: 0;*/
/*    left: 0;*/
/*    z-index: 1030;*/
/*}*/

/*.navbar-hide {*/
/*    pointer-events: none;*/
/*    opacity: 0;*/
/*}*/


.timeline {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative
}

.timeline:before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: #2d353c;
    left: 5%;
    margin-left: -2.5px
}

.timeline > li {
    position: relative;
    min-height: 50px;
    padding: 0
}

.timeline .timeline-time {
    position: absolute;
    left: 0;
    width: 18%;
    text-align: right;
    top: 30px
}

.timeline .timeline-time .date,
.timeline .timeline-time .time {
    display: block;
    font-weight: 600
}

.timeline .timeline-time .date {
    line-height: 16px;
    font-size: 12px
}

.timeline .timeline-time .time {
    line-height: 24px;
    font-size: 20px;
    color: #242a30
}

.timeline .timeline-icon {
    left: 0;
    position: absolute;
    width: 10%;
    text-align: center;
    top: 20px
}

.timeline .timeline-icon a {
    text-decoration: none;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 20px;
    background: #d9e0e7;
    line-height: 10px;
    color: #fff;
    font-size: 14px;
    border: 5px solid #2d353c;
    transition: border-color .2s linear
}

.timeline .timeline-body {
    margin-left: 10%;
    margin-right: 0;
    background: #fff;
    position: relative;
    padding: 2px 25px;
    border-radius: 6px
}

.timeline .timeline-body:before {
    content: '';
    display: block;
    position: absolute;
    border: 10px solid transparent;
    border-right-color: #fff;
    left: -20px;
    top: 20px
}

.timeline .timeline-body > div + div {
    margin-top: 15px
}

.timeline .timeline-body > div + div:last-child {
    margin-bottom: -20px;
    padding-bottom: 20px;
    border-radius: 0 0 6px 6px
}

.timeline-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e7eb;
    line-height: 30px
}

.timeline-header .userimage {
    float: left;
    width: 34px;
    height: 34px;
    border-radius: 40px;
    overflow: hidden;
    margin: -2px 10px -2px 0
}

.timeline-header .username {
    font-size: 16px;
    font-weight: 600
}

.timeline-header .username,
.timeline-header .username a {
    color: #2d353c
}

.timeline img {
    max-width: 100%;
    display: block
}


.timeline-content:after,
.timeline-content:before {
    content: '';
    display: table;
    clear: both
}

.timeline-title {
    margin-top: 0
}

.timeline-footer {
    background: #fff;
    border-top: 1px solid #e2e7ec;
    padding-top: 15px
}

.timeline-footer a:not(.btn) {
    color: #575d63
}

.timeline-footer a:not(.btn):focus,
.timeline-footer a:not(.btn):hover {
    color: #2d353c
}

.timeline-likes {
    color: #6d767f;
    font-weight: 600;
    font-size: 12px
}

.timeline-likes .stats-right {
    float: right
}

.timeline-likes .stats-total {
    display: inline-block;
    line-height: 20px
}

.timeline-likes .stats-icon {
    float: left;
    margin-right: 5px;
    font-size: 9px
}

.timeline-likes .stats-icon + .stats-icon {
    margin-left: -2px
}

.timeline-likes .stats-text {
    line-height: 20px
}

.timeline-likes .stats-text + .stats-text {
    margin-left: 15px
}

.timeline-comment-box {
    background: #f2f3f4;
    margin-left: -25px;
    margin-right: -25px;
    padding: 20px 25px
}

.timeline-comment-box .user {
    float: left;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 30px
}

.timeline-comment-box .user img {
    max-width: 100%;
    max-height: 100%
}

.timeline-comment-box .user + .input {
    margin-left: 44px
}

.lead {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 300;
    line-height: 1.4;
}

.text-danger, .text-red {
    color: #ff5b57 !important;
}

#cb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-radius: 0;
    display: none;
}

.barcode {
    display: block;
}

.table-striped-custom tbody tr:nth-child(4n-1),
.table-striped-custom tbody tr:nth-child(4n) {
    background-color: #f8f9fa; /* Change this color to your desired background color */
}

.aspect-ratio-container {
    position: relative;
    width: 100%;
    height: 0; /* Set initial height to 0 */
    padding-top: calc(10.25 / 6.625 * 100%); /* Invert the aspect ratio for height calculation */
    overflow: hidden;
}

.aspect-ratio-container-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Make the image fill the container */
    object-fit: cover; /* Scale the image while maintaining aspect ratio and covering the container */
}

.transaction-tender-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    max-height: 200px; /* Set a maximum height */
    overflow-y: auto; /* Enable vertical overflow scrolling */

}
.bg-table-success {
    background-color: #d1e7dd;
    color: #0f5132; /* optional: text color to match */
}
.bg-table-warning {
    background-color: #fff3cd;
    color: #664d03;
}
/* === Base Colors === */
:root {
    --bs-purple: #6f42c1;
    --bs-orange: #fd7e14;
    --bs-soft-red: #f8d7da;
    --bs-soft-red-text: #842029;
}

/* === Backgrounds === */
.bg-purple     { background-color: var(--bs-purple) !important; color: #fff !important; }
.bg-orange     { background-color: var(--bs-orange) !important; color: #000 !important; }
.bg-soft-red   { background-color: var(--bs-soft-red) !important; color: var(--bs-soft-red-text) !important; }

/* === Text === */
.text-purple     { color: var(--bs-purple) !important; }
.text-orange     { color: var(--bs-orange) !important; }
.text-soft-red   { color: var(--bs-soft-red-text) !important; }

/* === Borders === */
.border-purple     { border-color: var(--bs-purple) !important; }
.border-orange     { border-color: var(--bs-orange) !important; }
.border-soft-red   { border-color: var(--bs-soft-red) !important; }

/* === Buttons === */
.btn-purple {
    background-color: var(--bs-purple);
    color: #fff;
    border: 1px solid var(--bs-purple);
}
.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: #fff;
}

.btn-orange {
    background-color: var(--bs-orange);
    color: #000;
    border: 1px solid var(--bs-orange);
}
.btn-orange:hover {
    background-color: #e96b0c;
    border-color: #e96b0c;
    color: #000;
}

.btn-soft-red {
    background-color: var(--bs-soft-red);
    color: var(--bs-soft-red-text);
    border: 1px solid #f1aeb5;
}
.btn-soft-red:hover {
    background-color: #f1aeb5;
    border-color: #e18c98;
    color: var(--bs-soft-red-text);
}

/* === Alerts === */
.alert-purple {
    background-color: #ede2f9;
    border-color: var(--bs-purple);
    color: var(--bs-purple);
}

.alert-orange {
    background-color: #ffe5cc;
    border-color: var(--bs-orange);
    color: var(--bs-orange);
}

.alert-soft-red {
    background-color: var(--bs-soft-red);
    border-color: #f1aeb5;
    color: var(--bs-soft-red-text);
}

/* === v2 Template — Horizontal Nav === */
.v2-page-nav .btn,
.v2-sub-nav .btn {
    border-radius: 50rem; /* pill shape */
}

@media (max-width: 575.98px) {
    .v2-page-nav .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    .v2-sub-nav .btn {
        font-size: 0.8rem;
    }
}

/* ================================================
   Portal Line View — flex-based list layout
   ================================================ */
.portal-line-header,
.portal-line-footer {
    background-color: #343a40;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    gap: 0.5rem;
    align-items: center;
    display: flex;
}
.portal-line-header > div,
.portal-line-footer > div {
    flex-shrink: 0;
}
.portal-line-header .portal-line-col-issue,
.portal-line-footer .portal-line-col-issue { flex: 0 0 40px; text-align: right; }
.portal-line-header .portal-line-col-cover,
.portal-line-footer .portal-line-col-cover { flex: 0 0 55px; }
.portal-line-header .portal-line-col-info,
.portal-line-footer .portal-line-col-info { flex: 1 1 auto; }
.portal-line-header .portal-line-col-category,
.portal-line-footer .portal-line-col-category { flex: 0 0 85px; text-align: center; }
.portal-line-header .portal-line-col-price,
.portal-line-footer .portal-line-col-price { flex: 0 0 65px; text-align: right; }
.portal-line-header .portal-line-col-actions,
.portal-line-footer .portal-line-col-actions { flex: 0 0 180px; text-align: center; }

.portal-line-item {
    border-bottom: 1px solid #dee2e6;
}
.portal-line-item:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}
.portal-line-item-inner {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    align-items: center;
}
.portal-line-col-issue {
    flex: 0 0 40px;
    text-align: right;
}
.portal-line-col-cover {
    flex: 0 0 55px;
}
.portal-line-col-info {
    flex: 1 1 auto;
    min-width: 0;
}
.portal-line-col-category {
    flex: 0 0 85px;
    text-align: center;
}
.portal-line-col-price {
    flex: 0 0 65px;
    text-align: right;
}
.portal-line-col-actions {
    flex: 0 0 180px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}
.portal-line-col-actions .btn {
    width: 100%;
}

@media (max-width: 767.98px) {
    .portal-line-item-inner {
        flex-wrap: wrap;
        padding: 0.75rem 0.5rem;
        align-items: flex-start;
    }
    .portal-line-col-cover {
        flex: 0 0 50px;
    }
    .portal-line-col-info {
        flex: 1 1 0;
        min-width: calc(100% - 65px);
    }
    .portal-line-col-actions {
        flex: 0 0 100%;
        padding-top: 0.5rem;
        justify-content: center;
    }
    .portal-line-col-actions .btn {
        flex: 1 1 auto;
    }
}

/* ================================================
   Portal Landing Pages — dark-themed cards
   ================================================ */
.portal-card-dark {
    background-color: #212529;
    color: #f8f9fa;
}
.portal-card-dark .card-text {
    color: #adb5bd !important;
}
.portal-card-dark .text-muted {
    color: #adb5bd !important;
}
.portal-card-dark .btn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
.portal-card-dark .btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}
.portal-card-dark .btn.disabled {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

/* ================================================
   Add Subscriptions — horizontal cards
   ================================================ */
.sub-card {
    background-color: #212529;
    color: #f8f9fa;
}
.sub-card-category-badge {
    z-index: 1;
    opacity: 0.85;
    font-size: 0.65rem;
    font-weight: 500;
    background-color: rgb(var(--portal-accent-rgb, 13, 110, 253)) !important;
    color: var(--portal-accent-text, #f8f9fa) !important;
}
.sub-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}
.sub-card-cover-wrap {
    min-height: 220px;
    border-radius: 0.375rem 0 0 0.375rem;
}
.sub-card-cover {
    max-height: 280px;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

/* Variant thumbnail selectors */
.variant-thumb-select {
    text-align: center;
    width: 64px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 3px;
    transition: border-color 0.15s ease;
}
.variant-thumb-select:hover {
    border-color: #adb5bd;
}
.variant-thumb-select.variant-active {
    border-color: rgba(var(--portal-accent-rgb, 13, 110, 253), 0.8);
    box-shadow: 0 0 0 1px rgba(var(--portal-accent-rgb, 13, 110, 253), 0.3);
}
.variant-thumb-select.variant-thumb-subscribed {
    border-color: #198754;
}
.variant-thumb-select.variant-thumb-subscribed.variant-active {
    border-color: #198754;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.35);
}
.variant-thumb-select.variant-thumb-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.variant-thumb-select img {
    width: 100%;
    height: 78px;
    min-height: 78px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.variant-thumb-label {
    display: block;
    font-size: 0.65rem;
    color: #f8f9fa;
    margin-top: 2px;
    white-space: nowrap;
}
.variant-thumb-check {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.85rem;
    line-height: 1;
    background: #fff;
    border-radius: 50%;
    filter: drop-shadow(0 0 1px #000);
}

/* Mobile: stack vertically, round both top corners on image */
@media (max-width: 767.98px) {
    .sub-card-cover-wrap {
        min-height: 200px;
        border-radius: 0.375rem 0.375rem 0 0;
    }
}

/* Publisher asset indicator on portal */
.portal-asset-trigger {
    font-size: 0.75rem;
}

/* ============================================
   BACK ISSUES — Portal collection & browse
   ============================================ */

/* --- Cover grid cards --- */
.back-issue-card,
.issue-card-wrapper .card,
.wantlist-item .card,
#shopSeriesGrid .card,
#collectionSeriesGrid .card {
    background: #1a1d21;
    color: #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.back-issue-card:hover,
.issue-card-wrapper .card:hover,
.wantlist-item .card:hover,
#shopSeriesGrid .card:hover,
#collectionSeriesGrid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Cover images */
.back-issue-card .card-img-top,
.issue-card-wrapper .card-img-top,
.wantlist-item .card-img-top,
#shopSeriesGrid .card-img-top,
#collectionSeriesGrid .card-img-top {
    aspect-ratio: 2/3;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: transform 0.25s ease;
}
.back-issue-card:hover .card-img-top,
.issue-card-wrapper .card:hover .card-img-top,
.wantlist-item .card:hover .card-img-top,
#shopSeriesGrid .card:hover .card-img-top,
#collectionSeriesGrid .card:hover .card-img-top {
    transform: scale(1.04);
}

/* Card body text overrides for dark bg */
.back-issue-card .card-body,
.issue-card-wrapper .card-body,
.wantlist-item .card-body,
#shopSeriesGrid .card-body,
#collectionSeriesGrid .card-body {
    padding: 0.4rem !important;
}
.back-issue-card .text-muted,
.issue-card-wrapper .text-muted,
.wantlist-item .text-muted,
#shopSeriesGrid .text-muted,
#collectionSeriesGrid .text-muted {
    color: #9ea7b0 !important;
}
.back-issue-card .text-body,
#shopSeriesGrid .text-body,
#collectionSeriesGrid .text-body {
    color: #dee2e6 !important;
}
.back-issue-card .fw-bold,
.issue-card-wrapper .fw-bold,
.wantlist-item .fw-bold {
    color: #f8f9fa;
}

/* Owned state — green glow */
.bi-owned .card-img-top,
.issue-card-wrapper .bi-owned .card-img-top {
    box-shadow: inset 0 0 0 2px #198754;
    border-radius: 0.5rem 0.5rem 0 0;
}
.bi-owned,
.issue-card-wrapper .bi-owned {
    box-shadow: 0 0 12px rgba(25, 135, 84, 0.3);
}

/* Not-owned state — slightly dimmed cover */
.bi-not-owned .card-img-top {
    opacity: 0.65;
}
.bi-not-owned:hover .card-img-top {
    opacity: 1;
}

/* Cover tap cursor */
.cover-tap {
    cursor: pointer;
    overflow: hidden;
}

/* --- Toggle buttons --- */
.want-toggle,
.collect-toggle,
.detail-btn {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.detail-btn {
    font-size: 1rem;
    padding: 2px;
    color: #9ea7b0;
}
.detail-btn:hover {
    color: #f8f9fa;
    transform: scale(1.15);
}
/* btn-outline-secondary on dark cards */
.back-issue-card .btn-outline-secondary,
.issue-card-wrapper .btn-outline-secondary,
.wantlist-item .btn-outline-secondary {
    color: #adb5bd;
    border-color: #495057;
}
.back-issue-card .btn-outline-secondary:hover,
.issue-card-wrapper .btn-outline-secondary:hover,
.wantlist-item .btn-outline-secondary:hover {
    color: #f8f9fa;
    background-color: #495057;
    border-color: #495057;
}

/* Touch-friendly tap targets — min 44px */
@media (pointer: coarse) {
    .detail-btn {
        font-size: 1.25rem;
        padding: 4px;
    }
}

/* --- Era filter pills --- */
.era-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #495057;
    color: #6c757d;
    background: transparent;
    transition: all 0.15s ease;
}
.era-pill:hover {
    border-color: #adb5bd;
    color: #212529;
}
.era-pill.active {
    background: #212529;
    border-color: #212529;
    color: #f8f9fa;
}

/* --- Variant expansion row --- */
.variant-expansion-row {
    animation: slideDown 0.2s ease-out;
    background: rgba(255,255,255,0.05) !important;
}
@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 300px; }
}
.variant-cover-item {
    flex: 0 0 80px;
}
.variant-cover-item img {
    height: 100px;
    width: auto;
    object-fit: cover;
    border-radius: 0.25rem;
}
.variant-badge {
    cursor: pointer;
    font-size: 0.7rem;
}

/* --- Collection progress bars (inside wantlist-series-card) --- */
#collectionSeriesGrid .progress {
    height: 4px;
    border-radius: 2px;
    background-color: #343a40;
}

/* --- Want list --- */
#wantListContent .card-img-top {
    aspect-ratio: 2/3;
    object-fit: cover;
    width: 100%;
}

/* Want list series header card (publisher-card style) */
.wantlist-series-card {
    border: none !important;
    background: transparent !important;
}
.wantlist-series-card:hover {
    transform: none !important;
    box-shadow: none !important;
}
.wantlist-series-cover {
    background-color: #212529;
    padding: 1.25rem;
    height: 0;
    padding-top: calc(10.25 / 6.625 * 100%) !important;
    position: relative;
    border-radius: 0.5rem;
}
.wantlist-series-cover > * {
    position: absolute;
}
.wantlist-series-label {
    top: 1rem;
    left: 1rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(var(--portal-accent-rgb), 0.7);
}
.wantlist-series-name-group {
    top: 2rem;
    left: 1rem;
    right: 1rem;
}
.wantlist-series-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #f8f9fa;
    line-height: 1.1;
}
.wantlist-series-year {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}
.wantlist-series-stats {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
}
.wantlist-series-thumbs {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.35rem;
    justify-content: center;
}
.wantlist-series-thumbs img {
    height: 52px;
    width: auto;
    object-fit: cover;
    border-radius: 0.2rem;
    opacity: 0.75;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.wantlist-series-card:hover .wantlist-series-thumbs img {
    opacity: 1;
}
.wantlist-series-accent {
    position: absolute;
    bottom: 0.4rem;
    left: 1rem;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--portal-accent-rgb)), rgba(var(--portal-accent-rgb), 0.2));
}

/* Mobile — shrink series header to content height */
@media (max-width: 575.98px) {
    .wantlist-series-cover {
        height: auto;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .wantlist-series-cover > * {
        position: static;
    }
    .wantlist-series-thumbs {
        position: static;
        margin-top: 0.5rem;
    }
    .wantlist-series-accent {
        position: static;
        margin-top: 0.5rem;
    }
    .wantlist-series-name {
        font-size: 0.9rem;
    }
}

/* --- Issue detail offcanvas --- */
#issueDetailPanel img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
}
#issueDetailPanel .detail-edit-field {
    margin-bottom: 0.25rem;
}

/* --- Shop browse filter bar --- */
#shopFilters .input-group {
    flex: 0 0 auto;
}

/* --- Scroll sentinel (infinite scroll) --- */
#scrollSentinel {
    min-height: 40px;
}

/* --- Series detail header highlight animation --- */
.issue-card-wrapper .border-warning {
    transition: border-color 0.3s ease;
}

/* --- Responsive grid adjustments --- */
@media (max-width: 575.98px) {
    #seriesIssueGrid .col-4,
    #shopItemsGrid .col-4,
    #wantListContent .col-4 {
        padding-left: 4px;
        padding-right: 4px;
    }
    .variant-cover-item {
        flex: 0 0 65px;
    }
    .variant-cover-item img {
        height: 80px;
    }
    #issueDetailPanel {
        width: 100% !important;
    }
}

@media (min-width: 1400px) {
    #shopItemsGrid .card-img-top,
    #seriesIssueGrid .card-img-top {
        max-height: 280px;
    }
}
