.o_portal.container {
    max-width: 76rem;
}

.o_portal_wrap .o_portal_navbar {
    gap: 1rem;
    margin-bottom: 1.35rem !important;
}

.o_portal .o_portal_submenu,
.o_portal_wrap .o_portal_submenu {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.o_portal .o_portal_submenu .breadcrumb-item,
.o_portal_wrap .o_portal_submenu .breadcrumb-item {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.o_portal .o_portal_submenu .breadcrumb-item + .breadcrumb-item::before,
.o_portal_wrap .o_portal_submenu .breadcrumb-item + .breadcrumb-item::before {
    display: none;
    content: "";
}

.o_portal .o_portal_submenu .breadcrumb-item,
.o_portal .o_portal_submenu .breadcrumb-item a,
.o_portal_wrap .o_portal_submenu .breadcrumb-item,
.o_portal_wrap .o_portal_submenu .breadcrumb-item a,
.o_portal_wrap .spx-portal-page-header,
.o_portal_wrap .spx-portal-page-header a {
    color: var(--spx-text);
    font-family: var(--spx-display-font);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

.o_portal .o_portal_submenu .breadcrumb-item:not(.spx-portal-back-crumb),
.o_portal_wrap .o_portal_submenu .breadcrumb-item:not(.spx-portal-back-crumb),
.o_portal_wrap .spx-portal-page-header__title {
    line-height: 1.2;
}

.o_portal .o_portal_submenu .breadcrumb-item.active,
.o_portal_wrap .o_portal_submenu .breadcrumb-item.active {
    color: var(--spx-text);
}

.o_portal .o_portal_submenu .spx-portal-back-crumb,
.o_portal_wrap .o_portal_submenu .spx-portal-back-crumb {
    margin-left: 0 !important;
}

.spx-portal-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--spx-text);
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}

.spx-portal-back-link:hover,
.spx-portal-back-link:focus {
    background: transparent;
    color: var(--spx-amber);
    transform: translateX(-2px);
}

.spx-portal-back-link:focus-visible {
    outline: 2px solid rgba(240, 174, 20, 0.45);
    outline-offset: 3px;
}

.spx-portal-page-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.35rem 0 1.35rem;
}

.o_portal_wrap .spx-portal-page-header__title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
}

.o_portal_wrap .o_portal_navbar .navbar-text {
    color: var(--spx-text-soft);
    font-family: var(--spx-display-font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.o_portal_wrap .o_portal_navbar .btn-light,
.o_portal_wrap .o_portal_security_body .btn-light,
.o_portal_wrap .address_autoformat .btn-outline-secondary,
.o_portal_wrap .card .btn-light {
    border: 1px solid rgba(2, 6, 23, 0.1);
    border-radius: 0.38rem;
    background: #fff;
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.o_portal_wrap .o_portal_navbar .btn-light:hover,
.o_portal_wrap .o_portal_navbar .btn-light:focus,
.o_portal_wrap .o_portal_security_body .btn-light:hover,
.o_portal_wrap .o_portal_security_body .btn-light:focus,
.o_portal_wrap .address_autoformat .btn-outline-secondary:hover,
.o_portal_wrap .address_autoformat .btn-outline-secondary:focus,
.o_portal_wrap .card .btn-light:hover,
.o_portal_wrap .card .btn-light:focus {
    border-color: rgba(240, 174, 20, 0.45);
    background: #fff8e8;
    color: var(--spx-text);
    transform: translateY(-1px);
}

.o_portal_wrap .btn.btn-primary {
    border: 1px solid transparent;
    border-radius: 0.38rem;
    background: var(--spx-amber);
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.o_portal_wrap .btn.btn-primary:hover,
.o_portal_wrap .btn.btn-primary:focus {
    border-color: var(--spx-amber-hover, #ffc233);
    background: var(--spx-amber-hover, #ffc233);
    color: var(--spx-text);
    transform: translateY(-1px);
}

.o_portal_wrap .o_portal_navbar .dropdown-menu {
    border: 1px solid rgba(2, 6, 23, 0.09);
    border-radius: 0.2rem;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.08);
}

.o_portal_wrap .o_portal_navbar .dropdown-item {
    font-size: 0.92rem;
}

.o_portal_wrap .o_portal_navbar .dropdown-item.active,
.o_portal_wrap .o_portal_navbar .dropdown-item:active {
    background: #fff8e8;
    color: var(--spx-text);
}

.o_portal_wrap .alert {
    margin-bottom: 1.15rem;
    border: 1px solid rgba(2, 6, 23, 0.09);
    border-radius: 0.2rem;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.04);
}

.o_portal_wrap .alert-warning {
    border-color: rgba(240, 174, 20, 0.28);
    background: #fffdfa;
    color: var(--spx-text);
}

.o_portal_wrap .alert-success {
    border-color: rgba(17, 113, 47, 0.2);
    background: #f4fbf5;
    color: #1c5f2b;
}

.o_portal_wrap .alert-danger {
    border-color: rgba(176, 56, 26, 0.2);
    background: #fff6f2;
    color: #8f3116;
}

.o_portal_wrap .table-responsive,
.o_portal_wrap form.address_autoformat,
.o_portal_wrap .o_portal_security_body section,
.o_portal_wrap .card,
.o_portal_wrap .o_portal_html_view {
    border: 1px solid rgba(2, 6, 23, 0.09);
    border-radius: 0.45rem !important;
    background: #fff;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.05);
}

.o_portal_wrap form.address_autoformat,
.o_portal_wrap .o_portal_security_body section {
    padding: 1.4rem 1.4rem 1.45rem;
}

.o_portal_wrap .o_portal_security_body {
    width: min(100%, 46rem) !important;
    margin-inline: auto;
    padding-bottom: 0 !important;
}

.o_portal_wrap .o_portal_security_body > .d-flex:first-child {
    margin-bottom: 1rem !important;
}

.o_portal_wrap .o_portal_security_body h3,
.o_portal_wrap .o_portal_security_body h4,
.o_portal_wrap form.address_autoformat legend,
.o_portal_wrap .card h1,
.o_portal_wrap .card h2,
.o_portal_wrap .card h4,
.o_portal_wrap .card h5,
.o_portal_wrap .card h6 {
    color: var(--spx-text);
    font-family: var(--spx-display-font);
    font-weight: 800;
    letter-spacing: 0;
}

.o_portal_wrap .o_portal_security_body h4,
.o_portal_wrap .card h5,
.o_portal_wrap .card h6 {
    font-size: 1rem;
}

.o_portal_wrap .table-responsive {
    overflow: hidden;
}

.o_portal_wrap .o_portal_my_doc_table {
    margin-bottom: 0 !important;
    background: transparent;
}

.o_portal_wrap .o_portal_my_doc_table thead th {
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
    color: var(--spx-text-soft);
    font-family: var(--spx-display-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.o_portal_wrap .o_portal_my_doc_table tbody td {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    border-color: rgba(2, 6, 23, 0.06);
    color: var(--spx-text);
    vertical-align: middle;
}

.o_portal_wrap .o_portal_my_doc_table a {
    color: var(--spx-text);
    font-weight: 700;
    text-decoration: none;
}

.o_portal_wrap .o_portal_my_doc_table a:hover,
.o_portal_wrap .o_portal_my_doc_table a:focus {
    color: var(--spx-amber-dark);
}

.o_portal_wrap .o_portal_pager .page-link {
    border-radius: 0.2rem !important;
}

.o_portal_wrap form.address_autoformat label,
.o_portal_wrap .o_portal_security_body label,
.o_portal_wrap .card label {
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.o_portal_wrap .form-control,
.o_portal_wrap .form-select {
    min-height: 2.75rem;
    border: 1px solid rgba(2, 6, 23, 0.14);
    border-radius: 0.38rem;
    padding: 0.55rem 0.75rem;
    background-color: #fff;
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.97rem;
    box-shadow: none !important;
}

.o_portal_wrap textarea.form-control {
    min-height: 5.5rem;
    padding-block: 0.65rem;
}

.o_portal_wrap .form-control:focus,
.o_portal_wrap .form-select:focus {
    border-color: rgba(240, 174, 20, 0.75);
    box-shadow: 0 0 0 3px rgba(240, 174, 20, 0.13) !important;
}

.o_portal_wrap .card-footer {
    background: #fff;
}

.o_portal_wrap .border.rounded,
.o_portal_wrap .rounded,
.o_portal_wrap .rounded-end {
    border-radius: 0.38rem !important;
}

.o_portal_wrap .bg-light-subtle {
    background: #f7f7f5 !important;
}

.o_portal_wrap .spx-credit-page {
    max-width: 74rem;
}

.o_portal_wrap .spx-credit-page h1 {
    color: var(--spx-text);
    font-family: var(--spx-display-font, inherit);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
}

.o_portal_wrap .spx-credit-form,
.o_portal_wrap .spx-credit-status-card {
    overflow: hidden;
    border-color: rgba(2, 6, 23, 0.12) !important;
    border-radius: 0.45rem !important;
    background: var(--spx-surface, #fff);
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.08);
}

.o_portal_wrap .spx-credit-form .card-body,
.o_portal_wrap .spx-credit-status-card .card-body {
    padding: clamp(1.35rem, 3vw, 2.2rem) !important;
}

.o_portal_wrap .spx-credit-form .card-footer {
    padding: 0 clamp(1.35rem, 3vw, 2.2rem) clamp(1.35rem, 3vw, 2.2rem) !important;
}

.o_portal_wrap .spx-credit-form h2,
.o_portal_wrap .spx-credit-status-card h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--spx-text);
    font-family: inherit;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.o_portal_wrap .spx-credit-form h2::before {
    content: "";
    display: block;
    flex: 0 0 0.48rem;
    width: 0.48rem;
    height: 0.48rem;
    background: var(--spx-amber);
}

.o_portal_wrap .spx-credit-form h3 {
    color: var(--spx-text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.o_portal_wrap .spx-credit-form hr {
    margin-block: 1.75rem !important;
    border-top: 1px solid rgba(2, 6, 23, 0.1);
    opacity: 1;
}

.o_portal_wrap .spx-credit-form .form-label,
.o_portal_wrap .spx-credit-form legend.form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.o_portal_wrap .spx-credit-form .form-control,
.o_portal_wrap .spx-credit-form .form-select {
    min-height: 2.75rem;
    border: 1px solid rgba(2, 6, 23, 0.14);
    border-radius: 0.38rem;
    padding: 0.55rem 0.75rem;
    background-color: #fff;
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.97rem;
    box-shadow: none !important;
}

.o_portal_wrap .spx-credit-form textarea.form-control {
    min-height: 5.5rem;
    padding-block: 0.65rem;
}

.o_portal_wrap .spx-credit-form textarea.spx-compact-textarea {
    min-height: 4rem;
}

.o_portal_wrap .spx-credit-form .spx-field-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.2rem;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.08);
    color: var(--spx-text-soft);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: 0.08rem;
}

.o_portal_wrap .spx-credit-form .spx-field-help:hover,
.o_portal_wrap .spx-credit-form .spx-field-help:focus {
    background: rgba(240, 174, 20, 0.18);
    color: var(--spx-text);
    outline: none;
}

.o_portal_wrap .spx-credit-form .form-control:focus,
.o_portal_wrap .spx-credit-form .form-select:focus {
    border-color: rgba(240, 174, 20, 0.75);
    box-shadow: 0 0 0 3px rgba(240, 174, 20, 0.13) !important;
}

.o_portal_wrap .spx-credit-form .form-check {
    min-height: 1.5rem;
}

.o_portal_wrap .spx-credit-form .form-check-label {
    color: var(--spx-text-soft);
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.o_portal_wrap .spx-credit-form .form-check-input {
    border: 1px solid rgba(2, 6, 23, 0.22);
    border-radius: 0.22rem;
    box-shadow: none;
}

.o_portal_wrap .spx-credit-form .form-check-input[type="radio"] {
    border-radius: 50%;
}

.o_portal_wrap .spx-credit-form .form-check-input:checked {
    border-color: var(--spx-amber);
    background-color: var(--spx-amber);
}

.o_portal_wrap .spx-credit-form .border.rounded,
.o_portal_wrap .spx-credit-form details.border {
    border-color: transparent !important;
    border-radius: 0.45rem !important;
}

.o_portal_wrap .spx-credit-form .bg-light-subtle,
.o_portal_wrap .spx-credit-form details.bg-light-subtle {
    background: #f7f7f5 !important;
}

.o_portal_wrap .spx-credit-form details summary {
    color: var(--spx-text);
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.o_portal_wrap .spx-credit-form .btn {
    border-radius: 0.38rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.o_portal_wrap .spx-credit-form .btn.btn-outline-secondary,
.o_portal_wrap .spx-credit-form .btn.btn-outline-danger {
    border-radius: 0.38rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.o_portal_wrap .spx-credit-form .btn.btn-outline-secondary {
    border-color: rgba(2, 6, 23, 0.16);
    color: var(--spx-text);
}

.o_portal_wrap .spx-credit-form .btn.btn-outline-secondary:hover,
.o_portal_wrap .spx-credit-form .btn.btn-outline-secondary:focus {
    border-color: rgba(240, 174, 20, 0.65);
    background: #fff8e8;
    color: var(--spx-text);
}

.o_portal_wrap .spx-credit-form .btn.btn-outline-danger {
    border-color: rgba(176, 56, 26, 0.22);
    color: #8f3116;
}

.o_portal_wrap .spx-credit-form .btn.btn-outline-danger:hover,
.o_portal_wrap .spx-credit-form .btn.btn-outline-danger:focus {
    border-color: rgba(176, 56, 26, 0.38);
    background: #fff6f2;
    color: #8f3116;
}

.o_portal_wrap .spx-sale-portal-page {
    --spx-sale-card-border: rgba(2, 6, 23, 0.09);
    --spx-sale-card-gap: 1.05rem;
    --spx-sale-card-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
    --spx-sale-card-text: var(--spx-text, #101828);
    --spx-sale-card-muted: var(--spx-text-soft, #667085);
}

.o_portal_wrap .o_portal_sale_sidebar > .d-flex[class*="col-lg-4"] {
    align-items: flex-start;
}

.o_portal_wrap .o_portal_sale_sidebar > .d-flex[class*="col-lg-4"] .o_portal_sidebar_content {
    flex-grow: 0 !important;
    width: 100%;
    padding: 1.1rem 1.15rem 1.15rem;
    border: 1px solid var(--spx-sale-card-border);
    border-radius: 0.5rem;
    box-shadow: var(--spx-sale-card-shadow) !important;
}

.o_portal_wrap .o_portal_sale_sidebar .o_portal_sidebar_content > .position-relative:first-child {
    justify-content: center !important;
    margin-bottom: 0.85rem !important;
}

.o_portal_wrap .o_portal_sale_sidebar .o_portal_sidebar_content > .d-flex.gap-4 {
    gap: 0.95rem !important;
    margin-top: 0 !important;
}

.o_portal_wrap .o_portal_sale_sidebar .o_wsale_reorder_button {
    --btn-bg: #161922;
    --btn-border-color: #161922;
    --btn-color: #fff;
    --btn-hover-bg: #000;
    --btn-hover-border-color: #000;
    --btn-hover-color: #fff;
    --btn-active-bg: #000;
    --btn-active-border-color: #000;
    --btn-active-color: #fff;

    background-color: #161922 !important;
    border-color: #161922 !important;
    color: #fff !important;
    font-weight: 700;
}

.o_portal_wrap .o_portal_sale_sidebar .o_wsale_reorder_button:hover,
.o_portal_wrap .o_portal_sale_sidebar .o_wsale_reorder_button:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.o_portal_wrap .o_portal_sale_sidebar .o_wsale_reorder_button:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 25, 34, 0.24);
}

.o_portal_wrap .o_portal_sale_sidebar .o_portal_sidebar_content .navspy {
    margin-top: 0.2rem;
}

.o_portal_wrap .o_portal_sale_sidebar .o_portal_sidebar_content .bs-sidenav {
    gap: 0.25rem;
}

.o_portal_wrap .o_portal_sale_sidebar .o_portal_sidebar_content .bs-sidenav a {
    line-height: 1.35;
}

.o_portal_wrap .spx-sale-portal-page #portal_sale_content {
    display: flex;
    flex-direction: column;
    gap: var(--spx-sale-card-gap);
    width: 100%;
}

.o_portal_wrap .spx-sale-portal-page #portal_sale_content > #content,
.o_portal_wrap .spx-sale-portal-page #portal_sale_content > #introduction {
    width: 100%;
}

.o_portal_wrap .spx-sale-portal-page #content {
    display: flex;
    flex-direction: column;
    gap: var(--spx-sale-card-gap);
    width: 100%;
}

.o_portal_wrap .spx-sale-portal-page #introduction {
    margin-bottom: 0;
}

.o_portal_wrap .spx-sale-portal-page #intro_row h2 {
    margin-bottom: 0;
    color: var(--spx-sale-card-text);
    font-family: var(--spx-display-font, inherit);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.o_portal_wrap .spx-sale-portal-page #informations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spx-sale-card-gap);
    align-items: stretch;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
}

.o_portal_wrap .spx-sale-portal-page #informations > #transaction_info {
    display: none;
}

.o_portal_wrap .spx-sale-portal-card {
    border: 1px solid var(--spx-sale-card-border);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: var(--spx-sale-card-shadow);
}

.o_portal_wrap .spx-sale-portal-page #informations > .spx-sale-portal-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin-bottom: 0 !important;
    padding: 1.2rem 1.25rem 1.25rem;
    width: auto;
    max-width: none;
}

.o_portal_wrap .spx-sale-portal-page #informations > .spx-sale-delivery-card {
    grid-column: 1 / -1;
}

.o_portal_wrap .spx-sale-portal-card h4,
.o_portal_wrap .spx-sale-portal-card h5 {
    margin-bottom: 0.55rem !important;
    color: var(--spx-sale-card-text);
    font-family: var(--spx-display-font, inherit);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.o_portal_wrap .spx-sale-portal-card hr {
    margin: 0 0 0.85rem !important;
    border-color: rgba(2, 6, 23, 0.1);
    opacity: 1;
}

.o_portal_wrap .spx-sale-portal-card .table {
    margin-bottom: 0;
}

.o_portal_wrap .spx-sale-portal-card .table th {
    color: var(--spx-sale-card-text);
}

.o_portal_wrap .spx-sale-portal-card .text-muted {
    color: var(--spx-sale-card-muted) !important;
}

.o_portal_wrap .spx-sale-delivery-card [name="delivery_order"],
.o_portal_wrap .spx-sale-delivery-card [name="return"] {
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.o_portal_wrap .spx-sale-delivery-card [name="delivery_order"]:first-of-type,
.o_portal_wrap .spx-sale-delivery-card [name="return"]:first-of-type {
    padding-top: 0;
}

.o_portal_wrap .spx-sale-delivery-card [name="delivery_order"]:last-child,
.o_portal_wrap .spx-sale-delivery-card [name="return"]:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.o_portal_wrap .spx-sale-order-lines-card,
.o_portal_wrap .spx-sale-portal-note-card,
.o_portal_wrap .spx-sale-portal-signature-card,
.o_portal_wrap .spx-sale-portal-chatter-card {
    padding: 1.25rem 1.3rem;
    width: 100%;
}

.o_portal_wrap .spx-sale-order-lines-card {
    margin-top: 0;
}

.o_portal_wrap .spx-sale-order-lines-card:has(+ #terms.spx-sale-portal-note-card),
.o_portal_wrap .spx-sale-order-lines-card:has(+ .spx-sale-payment-terms-card) {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.o_portal_wrap .spx-sale-order-lines-card [name="sol_table"].table-responsive {
    overflow-x: auto;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
}

.o_portal_wrap .spx-sale-order-lines-card #sales_order_table {
    margin-bottom: 0;
}

.o_portal_wrap .spx-sale-order-lines-card #sales_order_table thead th {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(2, 6, 23, 0.12);
    background: #fff;
    color: var(--spx-sale-card-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.o_portal_wrap .spx-sale-order-lines-card #sales_order_table tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    vertical-align: middle;
}

.o_portal_wrap .spx-sale-order-lines-card #total {
    margin-top: 0.85rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(2, 6, 23, 0.1);
}

.o_portal_wrap .spx-sale-order-lines-card #total .table {
    margin-bottom: 0;
}

.o_portal_wrap .spx-sale-portal-note-card {
    margin-top: 0 !important;
}

.o_portal_wrap .spx-sale-order-lines-card + #terms.spx-sale-portal-note-card {
    margin-top: calc(-1 * var(--spx-sale-card-gap) - 1px) !important;
    padding-top: 1rem;
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    box-shadow: 0 22px 28px rgba(2, 6, 23, 0.04);
}

.o_portal_wrap #terms.spx-sale-portal-note-card:has(+ .spx-sale-payment-terms-card) {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
}

.o_portal_wrap .spx-sale-payment-terms-card {
    margin-top: calc(-1 * var(--spx-sale-card-gap) - 1px) !important;
    padding-top: 1rem;
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    box-shadow: 0 22px 28px rgba(2, 6, 23, 0.04);
}

.o_portal_wrap .spx-sale-portal-note-card em,
.o_portal_wrap .spx-sale-portal-note-card span {
    color: var(--spx-sale-card-text);
}

.o_portal_wrap .spx-sale-portal-page #quote_content > hr {
    display: none;
}

.o_portal_wrap .spx-sale-portal-chatter-card {
    margin-top: 0.2rem;
}

.o_portal_wrap .spx-sale-portal-chatter-card h3 {
    margin-bottom: 0.9rem;
    color: var(--spx-sale-card-text);
    font-family: var(--spx-display-font, inherit);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0;
}

@media (max-width: 991.98px) {
    .o_portal_wrap .o_portal_navbar {
        gap: 0.8rem;
    }

    .o_portal_wrap .o_portal_sale_sidebar > .d-flex[class*="col-lg-4"] .o_portal_sidebar_content {
        margin-top: 0;
        min-height: auto !important;
    }

    .o_portal_wrap .spx-sale-portal-page {
        margin-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .o_portal_wrap .spx-credit-page h1 {
        font-size: 1.9rem;
    }

    .o_portal_wrap form.address_autoformat,
    .o_portal_wrap .o_portal_security_body section {
        padding: 1rem 1rem 1.05rem;
    }

    .o_portal .o_portal_submenu,
    .o_portal_wrap .o_portal_submenu {
        width: 100%;
    }

    .o_portal_wrap .o_portal_navbar .navbar-brand.h1 {
        width: 100%;
    }

    .o_portal_wrap .spx-credit-form .card-body,
    .o_portal_wrap .spx-credit-status-card .card-body {
        padding: 1.1rem !important;
    }

    .o_portal_wrap .spx-credit-form .card-footer {
        padding: 0 1.1rem 1.1rem !important;
    }

    .o_portal_wrap .spx-sale-portal-page #informations {
        grid-template-columns: 1fr;
    }

    .o_portal_wrap .spx-sale-portal-page #informations > .spx-sale-portal-card,
    .o_portal_wrap .spx-sale-order-lines-card,
    .o_portal_wrap .spx-sale-portal-note-card,
    .o_portal_wrap .spx-sale-portal-signature-card,
    .o_portal_wrap .spx-sale-portal-chatter-card {
        padding: 1rem;
    }

    .o_portal_wrap .spx-sale-portal-page #intro_row h2 {
        font-size: 1.65rem;
    }
}

.o_portal_my_home [data-placeholder_count] {
    top: 0.35rem !important;
    right: 0.35rem !important;
}
