:root {
    --app-bg: #f6f8fb;
    --app-surface: #ffffff;
    --app-text: #1b2430;
    --app-muted: #5d6b82;
    --app-accent: #0f766e;
    --app-border: #e7ecf3;
    --app-nav-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    color: var(--app-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(15, 118, 110, 0.18), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(2, 132, 199, 0.12), transparent 24%),
        var(--app-bg);
    min-height: 100vh;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(75px);
    z-index: -1;
}

.orb-1 {
    width: 210px;
    height: 210px;
    top: -60px;
    left: -50px;
    background: rgba(15, 118, 110, 0.26);
}

.orb-2 {
    width: 300px;
    height: 300px;
    bottom: -90px;
    right: -70px;
    background: rgba(2, 132, 199, 0.22);
}

.app-navbar {
    backdrop-filter: blur(5px);
    background: rgba(246, 248, 251, 0.88);
    border-bottom: 1px solid rgba(231, 236, 243, 0.85);
}

.app-brand-logo {
    display: block;
    height: 34px;
    width: auto;
}

.app-main {
    max-width: none;
    min-height: calc(100vh - var(--app-nav-height));
}

.app-shell {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1.1rem;
    padding: 1.2rem;
}

.app-footer {
    padding-top: 0;
}

.app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.84rem;
    color: #5f6f84;
}

.app-footer-inner a {
    color: #1f4d74;
    text-decoration: none;
    font-weight: 700;
}

.app-footer-inner a:hover,
.app-footer-inner a:focus {
    color: #163a57;
    text-decoration: underline;
}

.hero-panel {
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(2, 132, 199, 0.08)),
        #ffffff;
    border: 1px solid var(--app-border);
}

.shadow-soft {
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.dashboard-section {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.dashboard-section--news {
    position: relative;
    background:
        radial-gradient(circle at 8% 16%, rgba(190, 24, 93, 0.08), transparent 22%),
        radial-gradient(circle at 92% 18%, rgba(245, 158, 11, 0.11), transparent 20%),
        linear-gradient(180deg, #fffaf6 0%, #fff4eb 100%);
    border-color: #f1d9c5;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-section--news::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #be185d 0%, #ea580c 54%, #f59e0b 100%);
}

.dashboard-section--news .news-cards-row {
    position: relative;
    z-index: 1;
}

.dashboard-section + .dashboard-section {
    margin-top: 1rem;
}

.dashboard-section--actions {
    margin-top: 1.75rem;
}

.dashboard-section-title {
    color: #223249;
    letter-spacing: 0.01em;
}

.news-card {
    border: 1px solid #ecd7c7;
    overflow: hidden;
    height: 100%;
    background: #fffdfb;
    box-shadow: 0 12px 30px rgba(111, 58, 15, 0.08);
}

.news-card-media {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed rgba(35, 50, 71, 0.25);
    padding: 1rem;
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    cursor: zoom-in;
}

.news-card--a .news-card-media {
    background:
        radial-gradient(circle at 82% 18%, rgba(190, 24, 93, 0.22), transparent 26%),
        radial-gradient(circle at 18% 76%, rgba(251, 113, 133, 0.16), transparent 24%),
        linear-gradient(140deg, #ffe7f0 0%, #fff7fb 100%);
}

.news-card--b .news-card-media {
    background:
        radial-gradient(circle at 16% 20%, rgba(234, 88, 12, 0.24), transparent 26%),
        radial-gradient(circle at 82% 78%, rgba(251, 146, 60, 0.16), transparent 22%),
        linear-gradient(140deg, #ffead9 0%, #fff8f1 100%);
}

.news-card--c .news-card-media {
    background:
        radial-gradient(circle at 78% 18%, rgba(217, 119, 6, 0.22), transparent 28%),
        radial-gradient(circle at 20% 74%, rgba(250, 204, 21, 0.18), transparent 24%),
        linear-gradient(140deg, #fff1bf 0%, #fffbee 100%);
}

.news-card-placeholder {
    color: #6f3f27;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.news-card-body p {
    color: #765847;
}

.news-card-text-link {
    color: inherit;
    text-decoration: none;
}

.news-card-text-link:hover {
    text-decoration: underline;
}

.feature-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

.feature-card--order {
    background: linear-gradient(155deg, #e6fffb 0%, #f6fffd 100%);
    border: 1px solid #b8efe3 !important;
}

.feature-card--orders {
    background: linear-gradient(155deg, #eef6ff 0%, #f8fbff 100%);
    border: 1px solid #cfe0ff !important;
}

.feature-card--invoices {
    background: linear-gradient(155deg, #fff6e9 0%, #fffaf2 100%);
    border: 1px solid #ffe0b4 !important;
}

.feature-card--service-a {
    background: linear-gradient(155deg, #eefcf4 0%, #f8fffb 100%);
    border: 1px solid #ccefd9 !important;
}

.feature-card--service-b {
    background: linear-gradient(155deg, #eef8ff 0%, #f9fcff 100%);
    border: 1px solid #cde6fb !important;
}

.feature-card--service-c {
    background: linear-gradient(155deg, #fff1f2 0%, #fff9f9 100%);
    border: 1px solid #ffd5d8 !important;
}

.feature-card--service-d {
    background: linear-gradient(155deg, #fff6ec 0%, #fffcf7 100%);
    border: 1px solid #ffdfbf !important;
}

.service-topic-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(2, 132, 199, 0.12));
    color: #0f3b4b;
    font-size: 1.35rem;
}

.service-topic-list {
    padding-left: 1.1rem;
    color: #516173;
}

.service-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.service-select-card {
    width: 100%;
    text-align: left;
    border: 1px solid #d8e2ee;
    border-radius: 1rem;
    background: #fbfdff;
    padding: 0.85rem 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.service-select-card:hover:not(:disabled) {
    border-color: #8cb8db;
    box-shadow: 0 8px 22px rgba(34, 50, 73, 0.08);
    background: #ffffff;
}

.service-select-card.is-selected {
    border-color: #223249;
    background: #eef6ff;
    box-shadow: 0 10px 26px rgba(34, 50, 73, 0.12);
}

.service-select-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.table-modern thead th {
    background: #f3f7fc;
    color: #30415b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #dbe4ef;
    white-space: nowrap;
}

.table-modern tbody tr:nth-child(even) {
    background: #fbfdff;
}

.table-modern tbody td {
    border-color: #edf2f8;
}

.order-history-table td,
.order-history-table th {
    vertical-align: top;
}

.order-history-table .order-history-col-ref {
    width: 14%;
}

.order-history-table .order-history-col-date {
    width: 14%;
}

.order-history-table .order-history-col-order {
    width: 32%;
}

.order-history-table .order-history-col-status {
    width: 12%;
}

.order-history-table .order-history-col-total {
    width: 18%;
}

.order-history-table .order-history-col-detail {
    width: 10%;
}

.order-history-table td:nth-child(3),
.order-history-table td:nth-child(5) {
    overflow-wrap: anywhere;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #d6d3d1;
    background-color: #f5f5f4;
    color: #44403c;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.order-status-badge--pending {
    border-color: #f5c88b;
    background-color: #fff1dc;
    color: #b45309;
}

.order-status-badge--shipped {
    border-color: #9fd4ab;
    background-color: #e7f7ea;
    color: #166534;
}

@media (min-width: 768px) {
    .order-history-table {
        table-layout: fixed;
    }
}

.order-detail-row[hidden] {
    display: none !important;
}

.order-detail-inner {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.18s ease;
}

.order-detail-row.is-open .order-detail-inner {
    max-height: 420px;
    opacity: 1;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 14% 14% 1fr 14% 18% 12%;
}

.order-entry-card {
    overflow: visible;
    overflow-anchor: none;
}

.order-search-sticky {
    position: sticky;
    top: var(--app-nav-height);
    z-index: 50;
    background: #fff;
    border-color: #dbe3ef !important;
    overflow-anchor: none;
}

#catalog-grid {
    overflow-anchor: none;
    min-height: 50vh;
}

@media (min-width: 768px) {
    .order-entry-card {
        min-height: calc(100vh - var(--app-nav-height) - 2rem);
    }

    #catalog-grid {
        min-height: clamp(28rem, calc(100vh - var(--app-nav-height) - 16rem), 52rem);
        align-content: start;
    }
}

.order-search-input-wrap {
    position: relative;
}

.order-search-input {
    min-height: 44px;
    padding-right: 2.6rem;
}

.order-search-clear-btn {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5f6e84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.order-search-clear-btn:hover {
    background: #eef3fb;
    color: #253247;
}

.order-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.order-filter-panel {
    background: #fafcff;
    border-color: #dbe4ef !important;
}

.order-filter-btn {
    width: 10.5rem;
    min-width: 10.5rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    border-width: 1px;
    background: #fff;
}

.order-filter-btn.is-active {
    background: #1f2a3d;
    border-color: #1f2a3d;
    color: #fff;
}

.order-filter-btn:focus-visible {
    outline: 2px solid #93a8c3;
    outline-offset: 2px;
}

.order-subfilter-btn {
    border-color: #b8cbe6;
    color: #4c6482;
    background: #f4f7fb;
}

.order-subfilter-btn.is-active {
    background: #6f88a8;
    border-color: #6f88a8;
    color: #fff;
}

.order-subfilter-btn:focus-visible {
    outline: 2px solid #b8cbe6;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .order-filter-btn:hover {
        background: #1f2a3d;
        border-color: #1f2a3d;
        color: #fff;
    }

    .order-subfilter-btn:hover {
        background: #6f88a8;
        border-color: #6f88a8;
        color: #fff;
    }
}

.order-filter-mobile .form-label {
    color: #455770;
    font-weight: 600;
}

.order-mobile-filter-btn {
    white-space: nowrap;
}

.order-tablet-cart-btn {
    white-space: nowrap;
}

.order-tablet-cart-btn .badge {
    min-width: 1.5rem;
}

.order-clear-filter-btn {
    white-space: nowrap;
}

.order-filter-offcanvas {
    width: min(88vw, 360px);
}

.order-cart-offcanvas {
    width: min(92vw, 420px);
}

.order-filter-offcanvas.is-opening #mobile-gamme-filters .order-filter-btn,
.order-filter-offcanvas.is-opening #mobile-rule-filters .order-filter-btn {
    pointer-events: none;
}

.order-mobile-cart-fab {
    position: fixed;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1045;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.72rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
    touch-action: manipulation;
}

.order-mobile-cart-fab .badge {
    min-width: 1.5rem;
}

.order-mobile-cart-fab-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.order-filter-offcanvas .order-filter-btn {
    min-width: 0;
    width: 100%;
}

#mobile-gamme-filters,
#mobile-rule-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.order-product-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.order-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.order-product-image-wrap {
    position: relative;
    background: linear-gradient(165deg, #f5f8fc 0%, #fbfdff 100%);
    min-height: 182px;
}

.order-product-image-btn {
    border: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    min-height: 182px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.order-product-image {
    max-width: 100%;
    max-height: 162px;
    object-fit: contain;
}

.order-product-body {
    gap: 0.5rem;
}

.order-product-skeleton {
    pointer-events: none;
}

.order-product-skeleton-media,
.order-skeleton-line,
.order-skeleton-qty {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #edf2f7 0%, #f8fbff 45%, #edf2f7 100%);
    background-size: 200% 100%;
    animation: order-skeleton-shimmer 1.15s linear infinite;
}

.order-product-skeleton-media {
    min-height: 182px;
}

.order-skeleton-line {
    border-radius: 999px;
    height: 0.78rem;
}

.order-skeleton-line-title {
    width: 88%;
    height: 0.92rem;
    align-self: center;
    margin-top: 0.1rem;
}

.order-skeleton-line-code {
    width: 42%;
    align-self: center;
}

.order-skeleton-line-price {
    width: 34%;
    align-self: center;
    margin-top: 0.25rem;
}

.order-skeleton-qty {
    width: 100%;
    height: 2.45rem;
    border-radius: 999px;
    margin-top: 0.35rem;
}

@keyframes order-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.order-product-heading {
    position: relative;
    min-height: 2.5em;
    width: 100%;
}

.order-product-badge-engraved {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 2;
}

.order-product-badge-news {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0.08rem 0.48rem;
    border-radius: 999px;
    background: #b91c1c;
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 2;
}

.order-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    min-height: 2.5em;
    text-align: center;
    margin: 0;
    width: 100%;
    padding: 0 1.8rem 0 0;
}

.order-product-info-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.order-product-info-btn:focus-visible {
    outline: 2px solid #93a8c3;
    outline-offset: 2px;
}

.order-product-price {
    font-weight: 700;
    color: #0f766e;
    text-align: center;
}

.order-info-popover {
    --bs-popover-max-width: 260px;
    --bs-popover-border-color: #dbe4ef;
    --bs-popover-header-bg: #f5f8fc;
    --bs-popover-body-color: #30415b;
    --bs-popover-font-size: 0.88rem;
}

.order-qty-control {
    margin-top: auto;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0.5rem;
}

.order-qty-control .btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    font-weight: 700;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.order-qty-input-card {
    height: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.order-product-modal-img {
    max-height: min(78vh, 820px);
    width: auto;
    object-fit: contain;
    border-radius: 0.6rem;
}

.pack-config-modal-body {
    max-height: min(78vh, 860px);
    overflow-y: auto;
}

.engraving-config-modal-body {
    padding: 1.25rem 1.25rem 0.5rem;
}

.pack-config-sticky-top {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-bottom: 1px solid #e5ecf3;
}

.pack-config-pack-qty-control {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.5rem;
    align-items: center;
}

.engraving-config-qty-control {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.5rem;
    align-items: center;
}

.pack-config-pack-qty-control .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.engraving-config-qty-control .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.pack-config-list {
    border-radius: 0;
    overflow: hidden;
}

.pack-config-status {
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
}

.pack-config-status--limits {
    color: #526273;
    background: #f4f7fa;
    border: 1px solid #dde5ee;
    margin-bottom: 0.5rem;
}

.pack-config-status--summary {
    color: #1f3248;
    background: #eef3f8;
    border: 1px solid #d2dde9;
}

.pack-config-status--summary.pack-config-status--ok {
    color: #0f5132;
    background: #e8f6ee;
    border-color: #a8d5b9;
}

.pack-config-status--summary.pack-config-status--invalid {
    color: #7a241c;
    background: #fff4f2;
    border-color: #f0b8ae;
}

.pack-config-status--warning {
    color: #7a241c;
    background: #fff0ec;
    border: 2px solid #e6a091;
    box-shadow: 0 8px 18px rgba(173, 68, 45, 0.08);
}

.pack-config-feedback-pulse {
    animation: pack-config-feedback-pulse 0.42s ease;
    transform-origin: center;
}

@keyframes pack-config-feedback-pulse {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.035);
    }
    100% {
        transform: scale(1);
    }
}

.pack-config-section-title {
    padding: 1rem 1rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f2942;
    background: linear-gradient(180deg, #d4e4f5 0%, #e6f0fa 100%);
    border-top: 2px solid #8aa9c8;
    border-bottom: 2px solid #b6cbe1;
    box-shadow: inset 4px 0 0 #3a628c;
}

.pack-config-section-title:first-child {
    border-top: 0;
}

.pack-config-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid #dfe6ee;
}

.pack-config-row:nth-child(odd) {
    background: #f5f7fa;
}

.pack-config-row:nth-child(even) {
    background: #ffffff;
}

.pack-config-row-label {
    padding-left: 0.75rem;
}

.pack-config-row-actions {
    display: inline-grid;
    grid-template-columns: 40px 72px 40px;
    align-items: center;
    gap: 0.4rem;
    padding-right: 0.75rem;
}

.pack-config-row-actions .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.pack-config-row-qty {
    height: 40px;
    font-weight: 700;
}

.order-cart-sticky {
    position: sticky;
    top: calc(var(--app-nav-height) + 12px);
}

#order-cart-host:empty,
#order-mobile-cart-host:empty {
    display: none;
}

#cart-items .list-group-item {
    padding-left: 0;
    padding-right: 0;
}

.order-pack-cart-details {
    border-top: 1px solid #e6edf5;
    padding-top: 0.55rem;
}

.order-pack-cart-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #52637b;
    margin-bottom: 0.25rem;
}

.order-pack-cart-list {
    display: grid;
    gap: 0.2rem;
    font-size: 0.88rem;
    padding-left: 0.7rem;
}

.order-pack-cart-note {
    font-size: 0.88rem;
    color: #2b3c51;
    padding-left: 0.7rem;
}

.order-pack-cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.25rem auto;
    align-items: baseline;
    gap: 0.25rem;
}

.order-pack-cart-item {
    min-width: 0;
}

.order-pack-cart-sep::before {
    content: "";
    display: inline-block;
    width: 100%;
}

.order-pack-cart-qty {
    font-weight: 700;
    color: #233247;
    white-space: nowrap;
}

.checkout-summary-table th {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5d6d84;
    white-space: nowrap;
}

.checkout-summary-table td {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.checkout-qty-cell,
.checkout-amount-cell {
    white-space: nowrap;
}

.checkout-line-note {
    margin-top: 0.28rem;
    font-size: 0.86rem;
    color: #5d6d84;
}

.checkout-pack-lines {
    display: grid;
    gap: 0.18rem;
    font-size: 0.88rem;
    color: #4a5a70;
    padding-left: 0.7rem;
}

.checkout-pack-row td {
    padding-top: 0.2rem;
    padding-bottom: 0.9rem;
    border-top: 0;
}

.checkout-pack-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.checkout-summary-totals {
    background: #f8fafc;
    border-color: #dce5ef !important;
}

.checkout-vat-breakdown {
    background: #fbfcfe;
    border-color: #dce5ef !important;
}

.checkout-vat-breakdown-list {
    display: grid;
    gap: 0.85rem;
}

.checkout-vat-group + .checkout-vat-group {
    padding-top: 0.85rem;
    border-top: 1px solid #e6edf5;
}

.checkout-vat-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: #223249;
}

.checkout-vat-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.92rem;
    color: #4a5a70;
    padding-left: 0.7rem;
}

.checkout-vat-detail + .checkout-vat-detail {
    margin-top: 0.18rem;
}

.checkout-vat-detail-label {
    min-width: 0;
}

.checkout-vat-detail-qty {
    color: #607189;
    font-weight: 600;
    margin-left: 0.25rem;
}

.checkout-vat-detail-formula {
    white-space: nowrap;
    color: #223249;
}

.checkout-vat-sources {
    margin-top: 0.25rem;
    padding-left: 0.8rem;
    display: grid;
    gap: 0.12rem;
}

.checkout-vat-source-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    color: #607189;
}

.invoice-actions-cell {
    width: 1%;
    white-space: nowrap;
}

.invoice-table tbody tr:nth-child(even) > td {
    background: #f3f5f8;
}

.invoice-actions {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

.invoice-action-btn {
    white-space: nowrap;
}

.form-control,
.form-select {
    border-color: #d8e0eb;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 118, 110, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.channel-option {
    cursor: pointer;
    background: #fff;
}

.channel-option:hover {
    border-color: #cfd9e6 !important;
}

@media (max-width: 1199.98px) {
    .order-cart-sticky {
        position: static;
        top: auto;
    }
}

@media (max-width: 991.98px) {
    .order-filter-btn {
        width: 9rem;
        min-width: 9rem;
    }
}

@media (max-width: 767.98px) {
    .checkout-summary-table {
        font-size: 0.9rem;
    }

    .checkout-summary-table th,
    .checkout-summary-table td {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .checkout-summary-table th {
        font-size: 0.7rem;
    }

    .checkout-qty-cell {
        width: 1%;
    }

    .checkout-amount-cell {
        font-size: 0.84rem;
        letter-spacing: -0.01em;
    }

    .checkout-vat-detail {
        display: block;
        padding-left: 0;
    }

    .checkout-vat-detail-formula {
        display: block;
        margin-top: 0.1rem;
        white-space: normal;
        font-size: 0.84rem;
    }

    .checkout-vat-sources {
        padding-left: 0;
    }

    .checkout-vat-source-line {
        display: block;
    }

    .news-card-media {
        min-height: 150px;
    }

    .dashboard-section {
        padding: 0.85rem;
    }

    .order-filter-panel {
        display: none;
    }

    .order-search-clear-btn {
        width: 2.25rem;
        height: 2.25rem;
    }

    .order-product-image-wrap,
    .order-product-image-btn {
        min-height: 156px;
    }

    .order-filter-btn {
        width: 100%;
        min-width: 0;
    }

    .app-main {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .app-shell {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .invoice-actions-cell {
        width: auto;
        white-space: normal;
    }

    .invoice-actions {
        display: flex;
        width: 100%;
        align-items: stretch;
    }

    .pack-config-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
        padding: 0.6rem 0.5rem;
    }

    .pack-config-row-label,
    .pack-config-row-actions {
        padding-left: 0;
        padding-right: 0;
    }

    .pack-config-row-label {
        min-width: 0;
    }

    .pack-config-row-label .fw-semibold {
        font-size: 0.88rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pack-config-row-actions {
        grid-template-columns: 34px 58px 34px;
        gap: 0.3rem;
    }

    .pack-config-row-actions .btn,
    .pack-config-row-qty {
        height: 34px;
    }

    .pack-config-row-actions .btn {
        width: 34px;
        font-size: 1rem;
    }

    .pack-config-row-actions {
        justify-content: end;
    }
}

@media (min-width: 768px) {
    .order-mobile-cart-fab {
        display: none !important;
    }
}
