/* ==============================================
   AUDIENCEVIEW STYLES - Matching Angular App
   ============================================== */

/* Variables */
:root {
    --theme-color: #0096ed;
    --theme-color-2: #49c6ff;
    --body-color: #555555;
    --placeholder-color: #b0acac;
    --heading-color: #333333;
    --gray: #cccccc;
    --border-radius: 20px;
    --brand-tertiary: #686868;
}

/* Base Styles */
html, body {
    margin: 0;
    height: 100vh;
    overflow: hidden !important;
    font-family: 'Proxima Nova', Arial, sans-serif !important;
    font-size: 14px;
    color: var(--body-color);
}

body {
    font-weight: 400;
}

/* Main Layout with Gradient Background */
.main-layout {
    width: 100%;
    height: 100vh;
    background: #0beef9;
    background-image: linear-gradient(
        90deg,
        hsl(183deg 95% 51%) 0%,
        hsl(185deg 95% 54%) 11%,
        hsl(187deg 96% 56%) 22%,
        hsl(190deg 96% 57%) 33%,
        hsl(192deg 96% 59%) 44%,
        hsl(195deg 97% 60%) 56%,
        hsl(198deg 97% 61%) 67%,
        hsl(201deg 98% 62%) 78%,
        hsl(204deg 98% 63%) 89%,
        hsl(208deg 99% 64%) 100%
    );
    display: flex;
    flex-direction: column;
}

.wrapper {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.av-header {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    align-items: center;
    padding: 0.25rem 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.av-header .logo {
    width: 21rem;
}

.av-header .logo img {
    max-width: 100%;
    height: auto;
}

.contact-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-wrapper .btn {
    background: var(--theme-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-wrapper .btn:hover {
    background: var(--theme-color-2);
}

.btn.desktop-hamburger {
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.btn.desktop-hamburger:hover,
.btn.desktop-hamburger:focus,
.btn.desktop-hamburger:active,
.btn.desktop-hamburger:focus-visible,
.btn.desktop-hamburger.show {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.av-header .contact-wrapper {
    position: relative;
}

.btn.desktop-hamburger .hamburger {
    display: flex;
    flex-direction: column;
    width: 33px;
    height: 27px;
    justify-content: space-between;
}

.btn.desktop-hamburger .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--theme-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Desktop Menu */
.av-menu {
    min-width: 200px;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 0.5rem;
}

.av-menu.show {
    display: block;
}

.av-menu .dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--theme-color)!important;
    border-radius: 0;
    font-size: 14px;
    transition: background-color 0.2s ease;
    display: block;
    text-decoration: none;
    border: none;
}
.av-menu .dropdown-item:active,
.av-menu .dropdown-item:focus,
.av-menu .dropdown-item:hover {
    background-color: var(--theme-color)!important;
    color: #fff!important;
}

/* Mobile Menu Styles */
.mobile-menu-container {
    display: none;
}

.mobile-menu-toggle {
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    padding: 6px 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--theme-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100% - 60px);
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.mobile-menu-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.mobile-menu-item:hover {
    color: var(--theme-color);
}

/* Main Content Area */
.main {
    flex: 1 !important;
    overflow: auto;
}

.sections-wrapper {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

.section-main {
    flex: 1;
    overflow: auto;
    background-color: #ffffff;
    padding: 2rem;
}

/* Centering container for convert page */
.convert-page-center {
    min-height: 70vh;
    position: relative;
}

/* Footer Styles */
.bottom-section.footer {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #5b5b5b;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--theme-color);
}

.footer-links-separator {
    color: #5b5b5b;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .av-header .logo {
        width: 16rem;
    }
}

@media (min-width: 992px) {
    .desktop-only {
        display: flex;
    }
    
    .mobile-only {
        display: none;
    }
}

@media (max-width: 767px) {
    .av-header .logo {
        width: 11rem;
    }
    
    .mobile-menu-overlay {
        top: 50px;
    }
    
    .mobile-menu {
        top: 50px;
        height: calc(100% - 50px);
    }
    
    .main-content {
        border-radius: 0px;
    }
    
    .section-main {
        padding: 1rem;
    }
}

/* Utility Classes */
.flex-group {
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
}

.btn-min-width {
    min-width: 120px;
}

/* Card Styles */
.card {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Convert To Quote card */
.convert-card {
    max-width: 500px;
    width: 100%;
    position: relative; /* anchor overlay to card */
}

/* Logo inside the convert card */
.convert-card .logo {
    height: 36px;
    width: 130px;
    background-image: url('https://cdn.audienceview.ai/web/assets/v1/img/logo/audience-view-logo-800x121.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0.25rem auto;
}

.convert-progress-overlay {
    position: absolute;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: inherit;
}

/* Progress bar theme inside overlay */
.convert-progress-overlay .progress { height: 1rem; width: 70%; margin: 0 auto; }
.convert-progress-overlay .progress-bar {
    background-color: var(--theme-color-2) !important;
}
.convert-progress-overlay .progress-card {
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

.convert-card-header {
    background-color: var(--theme-color-2);
    padding: 1rem;
    color: #fff;
    border: 0;
}

.convert-card-footer {
    background-color: #fff;
    border-top: 0;
}

.convert-card,
.convert-card .form-label {
    color: var(--body-color);
}

.convert-card .title {
    text-align: center;
    margin-bottom: 4px;
}
.convert-card .underline {
    height: 2px;
    background-color: var(--theme-color);
    margin: 0.5rem 1rem;
}

.convert-card .form-control {
    width: 100%;
    color: var(--body-color);
    padding: 0.7rem;
    border-radius: 6px!important;
}
.convert-card p { color: var(--brand-tertiary); }
.convert-card .form-control::placeholder { color: var(--placeholder-color); opacity: 1; }
#btnConvertToQuote {
    padding: 0.65rem 2rem;
}
/* Safari/Edge legacy placeholder selectors */
.convert-card .form-control::-webkit-input-placeholder {
    color: var(--placeholder-color);
}
.convert-card .form-control:-ms-input-placeholder { color: var(--placeholder-color); }

/* Input group styling similar to login.component */
.input-group { position: relative; }
.input-group .input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--body-color);
    left: 12px;
    z-index: 6; /* stay above focused .form-control (Bootstrap sets z-index on focus) */
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.input-group .input-icon i { font-size: 1.25rem; color: var(--brand-tertiary); }

/* Button Overrides */
button, .btn {
    border-radius: 8px;
    transition: all 0.3s;
}

/* Make main containers transparent on Convert To Quote page only */
.convert-to-quote-page .main-content,
.convert-to-quote-page .section-main {
    background-color: transparent !important;
}

.btn-primary {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.btn-primary:hover {
    background-color: var(--theme-color-2) !important;
    border-color: var(--theme-color-2) !important;
}

/* ==============================================
   ORIGINAL SITE.CSS STYLES BELOW
   ============================================== */

a {
    color: #0366d6;
}

/* Sticky footer styles
-------------------------------------------------- */

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.card-no-border {
    --bs-card-border-width: 0 !important;
    --bs-card-cap-bg: none;
    border: none !important;
}

.modal-header {
    background-color: #D9D9D9;
    color: #323732;
}

.text-custom {
    color: #0096ed !important;
}

.placeholder-glow {
    width: 9rem;
}

.alert {
    --bs-alert-padding-x: 0.5rem;
    --bs-alert-padding-y: 0.5rem;
    --bs-alert-margin-bottom: 0.3rem;
}

.navbar {
    background-color: #002042;
    max-height: 4rem;
}


.border-primary {
    border-color: #0096ed !important;
}

.nav-link {
    color: #0096ed;
    width: 12.5rem;
    font-weight: 700;
}

    .nav-link:hover {
        color: cornflowerblue;
    }

.btn-custom {
    --bs-btn-font-weight: 600;
    --bs-btn-color: #0096ed;
    --bs-btn-bg: var(--bs-white);
    --bs-btn-border-color: #0096ed;
    --bs-btn-border-radius: .25rem;
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #0096ed;
    --bs-btn-hover-border-color: #0096ed;
    --bs-btn-focus-shadow-rgb: none;
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: #0096ed;
    --bs-btn-active-border-color: #0096ed;
    z-index: 100;
}

.btn-blue {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0096ed;
    --bs-btn-border-color: #0096ed;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #063371;
    --bs-btn-hover-border-color: #063371;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #063371;
    --bs-btn-active-border-color: #0096ed;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #d8dee6;
    --bs-btn-disabled-border-color: #d8dee6;
    --bs-btn-border-radius: .25rem;
}

.btn-cancel {
    --bs-btn-font-weight: 500;
    --bs-btn-color: #7B8A8B;
    --bs-btn-bg: var(--bs-white);
    --bs-btn-border-color: #7B8A8B !important;
    --bs-btn-border-radius: .25rem;
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #7B8A8B;
    --bs-btn-hover-border-color: #7B8A8B;
    --bs-btn-focus-shadow-rgb: none;
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: #7B8A8B;
    --bs-btn-active-border-color: #7B8A8B !important;
}

.btn-add {
    --bs-btn-color: #fff;
    --bs-btn-bg: #18bc9c;
    --bs-btn-border-color: #18bc9c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #14a085;
    --bs-btn-hover-border-color: #13967d;
    --bs-btn-focus-shadow-rgb: 59,198,171;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #13967d;
    --bs-btn-active-border-color: #128d75;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #18bc9c;
    --bs-btn-disabled-border-color: #18bc9c;
    --bs-btn-border-radius: .25rem !important;
}

.btn-success, .btn-danger {
    --bs-btn-border-radius: .25rem !important;
}

.dropdown-menu {
    --bs-dropdown-bg: #fff;
    --bs-dropdown-link-color: #495057;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #0096ed;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #0096ed;
    --bs-dropdown-item-padding-x: 0;
    --bs-dropdown-item-padding-y: 0;
}

.dropdown-item {
    padding: 0 1rem;
    color: #0096ed;
}


    .dropdown-item:hover {
        background-color: #0096ed !important;
        cursor: pointer;
    }

        .dropdown-item:hover > a {
            color: #fff !important;
        }

    .dropdown-item a:hover {
        color: #fff;
    }

.list-unstyled {
    margin-bottom: 0 !important;
}

.ims-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 27px;
}

.page-title {
    font-weight: 700;
    font-size: 29px;
    color: #002042;
    width: 30rem;
}

.partner {
    font-size: 14.5px;
}

.lh-1-75 {
    line-height: 1.75rem;
}

.fs-7 {
    font-size: 1rem !important;
}

.neg-mt-0-5 {
    margin-top: -0.5rem !important;
}

.v-center {
    display: flex;
    align-items: center;
}

.gap {
    column-gap: 1rem;
}

.no-gap {
    column-gap: 0rem !important;
}

.big-gap {
    column-gap: 2rem !important;
}

.product-line {
    width: 6rem;
}

#searchText {
    width: 30rem !important;
}

.input-group-text {
    min-width: 0px;
    line-height: 1.2 !important;
    font-size: 1em;
}

.text-wide {
    min-width: 200px !important;
}

.fa-bars:hover {
    color: cornflowerblue !important;
}

.alert {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.5rem;
}


@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

input[readonly] {
    background-color: transparent !important;
}

table {
    width: 100% !important;
}

    table thead th {
        background-color: #686868 !important;
        border: 1px solid #686868;
        color: #ffffff !important;
        font-weight: 500 !important;
    }

#tblSearchResult_info {
    padding-top: 1.5rem !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 1.5em;
}

.card-no-border {
    --bs-card-border-width: 0 !important;
    --bs-card-cap-bg: none;
    border: none !important;
}

select, input[type="text"] {
    width: 15rem !important;
}

.btn-add, .btn-cancel, .btn-success, .btn-danger {
    width: 8rem !important;
}

#btnReconcileInventory {
    width: 12rem !important;
}

.section-header {
    padding: 0.25rem 1rem;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}

div.dataTables_scrollHeadInner {
    background-color: #686868 !important;
}

div.dataTables_scrollBody > table {
    margin-top: -2px !important;
}

.table > thead {
    vertical-align: middle !important;
}

.row-border > tbody > tr {
    vertical-align: middle;
}

.row-border {
    height: 2.65rem;
    border-left: 1px solid var(--bs-border-color);
}

.dataTables_scroll {
    border-bottom: 1px solid var(--bs-border-color);
    border-right: 1px solid var(--bs-border-color);
}

.pr-5 {
    padding-right: 5rem;
}

#InventoryOverrideStartDateDelay {
    width: 3rem !important;
}

.pl-7 {
    padding-left: 7rem;
}

.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
    width: 40% !important;
}

.dataTables_filter input[type="search"] {
    width: 30rem !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

#templateImage {
    width: 100%;
    box-shadow: 0px 0px 8px 4px rgb(0 0 0 / 36%);
}

.startDelayItemAddOn {
    width: 17rem;
}

.users > #tblSearchResult_wrapper {
    margin-top: -2.25rem;
}

.btn-add-user {
    position: relative;
}

.project, .item-name {
    font-size: 19px;
}

.spinner,
.contact-spinner,
.modal-spinner {
    position: fixed;
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Cpath d='M28.43 6.378C18.27 4.586 8.58 11.37 6.788 21.533c-1.791 10.161 4.994 19.851 15.155 21.643l.707-4.006C14.7 37.768 9.392 30.189 10.794 22.24c1.401-7.95 8.981-13.258 16.93-11.856l.707-4.006z'%3E%3CanimateTransform attributeType='xml' attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center / 50px no-repeat;
}

.loading {
    font-weight: 700;
    font-size: 15px;
}

.spinner-img {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Cpath d='M28.43 6.378C18.27 4.586 8.58 11.37 6.788 21.533c-1.791 10.161 4.994 19.851 15.155 21.643l.707-4.006C14.7 37.768 9.392 30.189 10.794 22.24c1.401-7.95 8.981-13.258 16.93-11.856l.707-4.006z'%3E%3CanimateTransform attributeType='xml' attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center / 50px no-repeat;
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    z-index: 1;
}

.faded {
    opacity: 0.25;
}

.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button, .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button {
    text-transform: none !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    text-shadow: none;
}

.jconfirm .jconfirm-box .jconfirm-buttons button {
    border: 1px solid !important;
}

.wide {
    width: 9.5rem !important;
}

.jconfirm-title {
    font-size: 1.25rem !important;
    font-weight: 700;
}

.jconfirm-buttons {
    display: flex;
    column-gap: 0.25rem !important;
}

.jconfirm-content {
    font-size: 1rem !important;
}
