html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    background: #f7f7f6;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.sfa-home {
    min-height: calc(100vh - 120px);
    background: #f7f7f6;
    padding-bottom: 96px;
    direction: rtl;
}

.sfa-container {
    width: min(100% - 24px, 1280px);
    margin: 0 auto;
    padding: 18px 0 32px;
}

.sfa-search-wrapper {
    max-width: 760px;
    margin: 0 auto 16px;
}

.sfa-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sfa-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 11px 12px;
    font-size: 14px;
    background: transparent;
    text-align: right;
}

.sfa-search button {
    border: 0;
    border-radius: 10px;
    background: #060b14;
    color: #ffffff;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.sfa-search button:hover {
    background: #1f2937;
}

.sfa-hero {
    overflow: hidden;
    border-radius: 18px;
    background: #f2f0ec;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 28px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.sfa-hero-image {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfa-hero-image img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
}

.sfa-hero-image span {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #d1d5db;
}

.sfa-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.sfa-welcome-user,
.sfa-welcome-text {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.sfa-welcome-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
}

.sfa-leaf {
    font-size: 16px;
}

.sfa-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 400;
    line-height: 1;
    color: #030712;
}

.sfa-hero-description {
    max-width: 360px;
    margin: 20px 0 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
}

.sfa-primary-btn {
    display: inline-flex;
    margin-top: 24px;
    border-radius: 10px;
    background: #060b14;
    color: #ffffff;
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    transition: 0.2s ease;
}

.sfa-primary-btn:hover {
    background: #1f2937;
    color: #ffffff;
    transform: translateY(-1px);
}

.sfa-section-title {
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sfa-section-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
}

.sfa-section-title a {
    font-size: 14px;
    font-weight: 900;
    color: #6b7280;
}

.sfa-section-title a:hover {
    color: #111827;
}

.sfa-groups-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.sfa-group-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.sfa-group-card:hover {
    transform: translateY(-2px);
    color: #111827;
}

.sfa-group-image {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.sfa-group-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-group-image span {
    font-size: 18px;
    font-weight: 900;
    color: #d1d5db;
}

.sfa-group-card h3 {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-group-card p {
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.sfa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sfa-product-card {
    display: block;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 14px;
    text-align: center;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.sfa-product-card:hover {
    transform: translateY(-2px);
    color: #111827;
}

.sfa-product-image {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.sfa-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-product-image > span:not(.sfa-status-badge) {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #d1d5db;
}

.sfa-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
}

.sfa-product-card h3 {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-product-unit {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-product-price {
    margin: 10px 0 0;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.sfa-contact {
    margin-top: 34px;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.sfa-contact-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: #111827;
}

.sfa-contact-text {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.sfa-empty-box {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #6b7280;
    font-weight: 800;
}

@media (max-width: 992px) {
    .sfa-groups-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sfa-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sfa-container {
        width: min(100% - 18px, 1280px);
        padding-top: 12px;
    }

    .sfa-hero {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 10px;
        padding: 16px;
        border-radius: 14px;
    }

    .sfa-hero-image {
        min-height: 122px;
    }

    .sfa-hero-image span {
        font-size: 36px;
        letter-spacing: 5px;
    }

    .sfa-welcome-user,
    .sfa-welcome-text {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .sfa-hero h1 {
        font-size: 42px;
    }

    .sfa-hero-description {
        max-width: 190px;
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.7;
    }

    .sfa-primary-btn {
        margin-top: 12px;
        padding: 10px 20px;
        font-size: 11px;
        border-radius: 8px;
    }

    .sfa-section-title {
        margin-top: 24px;
    }

    .sfa-section-title h2 {
        font-size: 18px;
    }

    .sfa-section-title a {
        font-size: 12px;
    }

    .sfa-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .sfa-product-card {
        border-radius: 14px;
        padding: 8px;
    }

    .sfa-product-image {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        padding: 8px;
    }

    .sfa-product-image > span:not(.sfa-status-badge) {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .sfa-status-badge {
        top: 6px;
        right: 6px;
        padding: 2px 6px;
        font-size: 8px;
    }

    .sfa-product-card h3 {
        margin-top: 8px;
        font-size: 12px;
    }

    .sfa-product-unit {
        font-size: 10px;
    }

    .sfa-product-price {
        margin-top: 5px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sfa-groups-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .sfa-group-card {
        border-radius: 14px;
        padding: 8px;
    }

    .sfa-group-image {
        border-radius: 12px;
        padding: 8px;
    }

    .sfa-group-card h3 {
        font-size: 12px;
    }

    .sfa-group-card p {
        font-size: 10px;
    }
}

/* Product group page visual pass */
.sfa-products-page {
    background: #ffffff;
    padding-bottom: 120px;
}

.sfa-products-mobile-bar {
    display: none;
}

.sfa-products-shell {
    width: min(100% - 64px, 1240px);
    padding: 36px 0 40px;
}

.sfa-products-header {
    margin: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: block;
    text-align: center;
    box-shadow: none;
}

.sfa-products-header span,
.sfa-products-header p,
.sfa-products-header-actions {
    display: none;
}

.sfa-products-header h1 {
    margin: 0;
    color: #050505;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.3;
}

.sfa-products-toolbar {
    position: static;
    z-index: auto;
    margin: 8px 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    box-shadow: none;
}

.sfa-products-toolbar input {
    grid-column: 3;
    justify-self: end;
    width: min(100%, 360px);
    height: 46px;
    border-color: #e6e6e6;
    border-radius: 13px;
    background: #ffffff;
    padding: 0 44px 0 16px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
}

.sfa-products-toolbar::after {
    content: "";
    grid-column: 3;
    justify-self: end;
    width: 22px;
    height: 22px;
    margin-left: 326px;
    pointer-events: none;
    background: currentColor;
    color: #050505;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-toolbar select {
    grid-column: 1;
    justify-self: start;
    width: 112px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #050505;
    padding: 0 30px 0 0;
    font-size: 14px;
    font-weight: 700;
    appearance: none;
    cursor: pointer;
}

.sfa-products-toolbar label {
    grid-column: 1;
    justify-self: start;
    width: 112px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 34px 0 0;
    color: #050505;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.sfa-products-toolbar label input {
    display: none;
}

.sfa-products-toolbar label::before,
.sfa-products-toolbar select::before {
    content: "";
}

.sfa-products-toolbar label::after {
    content: "";
    position: absolute;
    width: 23px;
    height: 23px;
    transform: translateX(34px);
    background: #050505;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5h16l-6.2 7.2v5.2l-3.6 1.8v-7L4 5Z'/%3E%3Ccircle cx='18' cy='18' r='2.5' fill='white' stroke='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5h16l-6.2 7.2v5.2l-3.6 1.8v-7L4 5Z'/%3E%3Ccircle cx='18' cy='18' r='2.5' fill='white' stroke='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.sfa-products-card {
    min-height: 202px;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #ffffff;
    padding: 22px 18px;
    box-shadow: none;
}

.sfa-products-card:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.sfa-products-card-grid {
    min-height: 158px;
    direction: ltr;
    grid-template-columns: 42% 1fr;
    gap: 24px;
    align-items: center;
}

.sfa-products-card-image {
    height: 158px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.sfa-products-card-image img {
    max-height: 154px;
}

.sfa-products-stock-state {
    top: 0;
    left: 0;
    right: auto;
    border-radius: 14px;
    background: #dcfce7;
    color: #14532d;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    z-index: 4;
}

.sfa-products-stock-state:has(+ img),
.sfa-products-stock-state {
    box-shadow: none;
}

.sfa-products-card-info {
    direction: rtl;
    align-items: flex-start;
    align-self: stretch;
    justify-content: center;
    text-align: right;
}

.sfa-products-card-info h2 {
    color: #050505;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
}

.sfa-products-card-info p {
    margin-top: 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
}

.sfa-products-card-info b {
    margin-top: 18px;
    color: #050505;
    font-size: 21px;
    font-weight: 900;
}

.sfa-products-card-info small {
    font-size: 15px;
    font-weight: 800;
}

.sfa-products-stock {
    display: none;
}

.sfa-products-cart-control {
    position: relative;
    z-index: 6;
    width: 146px;
    height: 46px;
    margin-top: 18px;
    border-color: #e5e7eb;
    border-radius: 14px;
    box-shadow: none;
}

.sfa-products-cart-control button {
    font-size: 24px;
}

.sfa-products-cart-control span {
    font-size: 21px;
    font-weight: 900;
}

.sfa-product-favorite-form {
    top: 10px;
    right: 10px;
    left: auto;
}

.sfa-product-favorite-button {
    width: 34px;
    height: 34px;
    border-color: #ececec;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.sfa-product-favorite-button svg {
    width: 18px;
    height: 18px;
}

.sfa-products-floating-cart {
    inset-inline: 32px;
    bottom: 30px;
    display: flex;
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    border-radius: 10px;
    background: #030b16;
    padding: 0 30px;
    font-size: 20px;
    box-shadow: 0 18px 32px rgba(3, 11, 22, 0.18);
}

.sfa-products-floating-cart[hidden] {
    display: none;
}

.sfa-products-floating-cart strong {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 900;
}

.sfa-products-floating-cart svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .sfa-products-page {
        padding-bottom: 112px;
    }

    .sfa-products-mobile-bar {
        height: 76px;
        padding: 0 20px;
        background: #ffffff;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
    }

    .sfa-products-mobile-bar a {
        width: 44px;
        height: 44px;
        color: #050505;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sfa-products-mobile-bar svg {
        width: 29px;
        height: 29px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .sfa-products-mobile-bar h1 {
        margin: 0;
        color: #050505;
        text-align: center;
        font-size: 20px;
        font-weight: 900;
    }

    .sfa-products-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 0;
    }

    .sfa-products-header {
        display: none;
    }

    .sfa-products-toolbar {
        margin: 0 0 14px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sfa-products-toolbar input,
    .sfa-products-toolbar::after,
    .sfa-products-toolbar select,
    .sfa-products-toolbar label {
        display: none;
    }

    .sfa-products-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sfa-products-card {
        min-height: 177px;
        border-radius: 14px;
        padding: 14px 10px;
    }

    .sfa-products-card-grid {
        min-height: 148px;
        grid-template-columns: 52% 48%;
        gap: 0;
    }

    .sfa-products-card-image {
        height: 148px;
    }

    .sfa-products-card-image img {
        max-height: 144px;
    }

    .sfa-products-stock-state {
        top: 2px;
        left: 4px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .sfa-products-card-info {
        justify-content: flex-start;
        padding-top: 6px;
    }

    .sfa-products-card-info h2 {
        font-size: 18px;
        line-height: 1.45;
    }

    .sfa-products-card-info p {
        margin-top: 9px;
        font-size: 15px;
    }

    .sfa-products-card-info b {
        margin-top: 15px;
        font-size: 19px;
    }

    .sfa-products-card-info small {
        font-size: 14px;
    }

    .sfa-products-cart-control {
        width: 132px;
        height: 40px;
        margin-top: 12px;
        border-radius: 13px;
        grid-template-columns: 40px 1fr 40px;
    }

    .sfa-products-cart-control span {
        font-size: 19px;
    }

    .sfa-product-favorite-form {
        top: 48px;
        right: auto;
        left: 8px;
    }

    .sfa-product-favorite-button {
        width: 30px;
        height: 30px;
    }

    .sfa-products-floating-cart {
        inset-inline: 12px;
        bottom: 24px;
        height: 66px;
        border-radius: 11px;
        padding: 0 20px;
        font-size: 18px;
    }

    .sfa-products-floating-cart strong {
        font-size: 18px;
    }

    .sfa-products-floating-cart svg {
        width: 28px;
        height: 28px;
    }
}

/* Final-final: product page search is the only visible filter control. */
.sfa-products-toolbar {
    width: min(100%, 760px);
    margin: 8px auto 26px;
    display: block;
    position: relative;
}

.sfa-products-toolbar input {
    display: block;
    width: 100%;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 0 48px 0 16px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sfa-products-toolbar input::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.sfa-products-toolbar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 22px;
    height: 22px;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
    background: #111827;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-toolbar select,
.sfa-products-toolbar label {
    display: none !important;
}

@media (max-width: 768px) {
    .sfa-products-toolbar {
        display: block;
        width: 100%;
        margin: 0 0 14px;
    }

    .sfa-products-toolbar input {
        display: block;
        height: 46px;
        border-radius: 13px;
        font-size: 13px;
    }

    .sfa-products-toolbar::after {
        display: block;
    }
}

/* Final admin image upload behavior: click the image area, not a visible button. */
.sfa-products-card-image .sfa-image-upload-form,
.sfa-detail-image-upload {
    position: absolute;
    inset: 0;
    z-index: 9;
    margin: 0;
}

.sfa-products-groups-screen a {
    position: relative;
}

.sfa-products-groups-screen a > .sfa-image-upload-form {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    aspect-ratio: 1 / 1;
    z-index: 9;
    margin: 0;
}

.sfa-products-card-image .sfa-image-upload-form label,
.sfa-products-groups-screen a > .sfa-image-upload-form label,
.sfa-detail-image-upload label {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #ffffff;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
}

.sfa-detail-image-upload label {
    border-radius: 0;
}

.sfa-products-card-image .sfa-image-upload-form label:hover,
.sfa-products-groups-screen a > .sfa-image-upload-form label:hover,
.sfa-detail-image-upload label:hover {
    background: rgba(3, 11, 22, 0.32);
    border-color: transparent;
    color: #ffffff;
}

.sfa-products-card-image .sfa-image-upload-form span,
.sfa-products-groups-screen a > .sfa-image-upload-form span,
.sfa-detail-image-upload span {
    opacity: 0;
    border-radius: 999px;
    background: rgba(3, 11, 22, 0.82);
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 900;
    transition: opacity 0.16s ease;
}

.sfa-products-card-image .sfa-image-upload-form label:hover span,
.sfa-products-groups-screen a > .sfa-image-upload-form label:hover span,
.sfa-detail-image-upload label:hover span {
    opacity: 1;
}

/* Final search-only product filtering override */
.sfa-products-toolbar {
    width: min(100%, 760px);
    margin: 8px auto 26px;
    display: block;
    position: relative;
}

.sfa-products-toolbar input {
    width: 100%;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 0 48px 0 16px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sfa-products-toolbar input::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.sfa-products-toolbar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 22px;
    height: 22px;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
    background: #111827;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-toolbar select,
.sfa-products-toolbar label {
    display: none !important;
}

@media (max-width: 768px) {
    .sfa-products-toolbar {
        display: block;
        width: 100%;
        margin: 0 0 14px;
    }

    .sfa-products-toolbar input {
        display: block;
        height: 46px;
        border-radius: 13px;
        font-size: 13px;
    }

    .sfa-products-toolbar::after {
        display: block;
    }
}

/* Product list search-only filtering */
.sfa-products-toolbar {
    width: min(100%, 760px);
    margin: 8px auto 26px;
    display: block;
    position: relative;
}

.sfa-products-toolbar input {
    width: 100%;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 0 48px 0 16px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sfa-products-toolbar input::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.sfa-products-toolbar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 22px;
    height: 22px;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
    background: #111827;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-toolbar select,
.sfa-products-toolbar label {
    display: none !important;
}

@media (max-width: 768px) {
    .sfa-products-toolbar {
        display: block;
        width: 100%;
        margin: 0 0 14px;
    }

    .sfa-products-toolbar input {
        display: block;
        height: 46px;
        border-radius: 13px;
        font-size: 13px;
    }

    .sfa-products-toolbar::after {
        display: block;
    }
}

/* Product card second matching pass */
.sfa-products-toolbar {
    margin-top: 2px;
    margin-bottom: 28px;
}

.sfa-products-toolbar input {
    width: min(100%, 375px);
    border-color: #e3e8ef;
    color: #64748b;
}

.sfa-products-toolbar label {
    width: 128px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    justify-content: center;
    padding: 0 42px 0 16px;
    color: #111827;
}

.sfa-products-toolbar label::after {
    right: 16px;
    width: 22px;
    height: 22px;
}

.sfa-products-card {
    min-height: 252px;
    border-color: #e4e7ec;
    border-radius: 13px;
    padding: 24px 22px;
}

.sfa-products-card-grid {
    min-height: 204px;
    grid-template-columns: 45% 1fr;
    gap: 22px;
}

.sfa-products-card-image {
    height: 204px;
}

.sfa-products-card-image img {
    max-height: 200px;
}

.sfa-products-card > .sfa-product-favorite-form {
    display: none;
}

.sfa-products-card-info {
    justify-content: flex-start;
    padding-top: 8px;
}

.sfa-products-card-info h2 {
    font-size: 20px;
}

.sfa-products-card-info p {
    margin-top: 17px;
    color: #334155;
    font-size: 15px;
}

.sfa-products-card-info b {
    margin-top: 18px;
    font-size: 21px;
}

.sfa-products-stock {
    position: relative;
    z-index: 6;
    width: fit-content;
    margin-top: 16px;
    border: 0;
    border-radius: 7px;
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 32px 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}

.sfa-products-stock::before {
    content: "";
    position: absolute;
    right: 8px;
    width: 17px;
    height: 17px;
    background: #111827;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 3.5 20 8v8l-8 4.5L4 16V8l8-4.5Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 8l8 4.5L20 8M12 12.5v8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 3.5 20 8v8l-8 4.5L4 16V8l8-4.5Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 8l8 4.5L20 8M12 12.5v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-stock strong {
    order: -1;
    color: #059669;
    font-weight: 900;
}

.sfa-product-favorite-inline {
    position: relative;
    z-index: 6;
    width: 174px;
    margin: 10px 0 0;
}

.sfa-product-favorite-inline button {
    width: 100%;
    height: 40px;
    border: 1px solid #9ca3af;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.sfa-product-favorite-inline button.is-favorite {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.sfa-product-favorite-inline svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-product-favorite-inline button.is-favorite svg {
    fill: currentColor;
}

.sfa-products-cart-control {
    width: 174px;
    height: 39px;
    margin-top: 10px;
    border-radius: 9px;
    grid-template-columns: 50px 1fr 50px;
}

.sfa-products-cart-control span {
    font-size: 19px;
}

@media (max-width: 768px) {
    .sfa-products-card {
        min-height: 236px;
        padding: 14px;
    }

    .sfa-products-card-grid {
        min-height: 206px;
        grid-template-columns: 48% 52%;
    }

    .sfa-products-card-image {
        height: 206px;
    }

    .sfa-products-card-image img {
        max-height: 196px;
    }

    .sfa-products-card-info h2 {
        font-size: 17px;
    }

    .sfa-products-card-info p {
        margin-top: 10px;
        font-size: 14px;
    }

    .sfa-products-card-info b {
        margin-top: 12px;
        font-size: 18px;
    }

    .sfa-products-stock {
        margin-top: 12px;
        padding: 4px 29px 4px 8px;
        font-size: 10px;
    }

    .sfa-product-favorite-inline,
    .sfa-products-cart-control {
        width: 146px;
    }

    .sfa-product-favorite-inline button {
        height: 35px;
        font-size: 12px;
        gap: 8px;
    }

    .sfa-products-cart-control {
        height: 34px;
        grid-template-columns: 42px 1fr 42px;
    }

    .sfa-products-cart-control span {
        font-size: 17px;
    }
}

.sfa-products-toolbar select {
    display: none;
}

.sfa-products-toolbar label {
    pointer-events: auto;
    cursor: pointer;
}

.sfa-image-upload-form {
    position: relative;
    z-index: 8;
    margin: 12px 0 0;
}

.sfa-products-card-image .sfa-image-upload-form,
.sfa-detail-image-upload {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
}

.sfa-image-upload-form input[type="file"] {
    display: none;
}

.sfa-image-upload-form label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.sfa-image-upload-form label:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.sfa-setup-hero-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #94a3b8;
    cursor: pointer;
}

.sfa-setup-hero-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfa-setup-hero-upload > span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    color: #cbd5e1;
}

.sfa-setup-hero-upload em {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.88);
    color: #ffffff;
    padding: 7px 12px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.sfa-setup-hero-upload input[type="file"] {
    display: none;
}

.sfa-products-groups-screen .sfa-image-upload-form {
    position: relative;
    z-index: 3;
}

.sfa-detail-image,
.sfa-detail-mobile-image {
    position: relative;
}

@media (max-width: 768px) {
    .sfa-products-card-image .sfa-image-upload-form {
        right: 8px;
        bottom: 8px;
    }

    .sfa-image-upload-form label {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }
}

/* Image upload should behave like clicking the image itself in admin mode. */
.sfa-products-card-image .sfa-image-upload-form,
.sfa-detail-image-upload {
    position: absolute;
    inset: 0;
    z-index: 9;
    margin: 0;
}

.sfa-products-groups-screen a {
    position: relative;
}

.sfa-products-groups-screen a > .sfa-image-upload-form {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    aspect-ratio: 1 / 1;
    z-index: 9;
    margin: 0;
}

.sfa-products-card-image .sfa-image-upload-form label,
.sfa-products-groups-screen a > .sfa-image-upload-form label,
.sfa-detail-image-upload label {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #ffffff;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
}

.sfa-detail-image-upload label {
    border-radius: 0;
}

.sfa-products-card-image .sfa-image-upload-form label:hover,
.sfa-products-groups-screen a > .sfa-image-upload-form label:hover,
.sfa-detail-image-upload label:hover {
    background: rgba(3, 11, 22, 0.32);
    border-color: transparent;
    color: #ffffff;
}

.sfa-products-card-image .sfa-image-upload-form span,
.sfa-products-groups-screen a > .sfa-image-upload-form span,
.sfa-detail-image-upload span {
    opacity: 0;
    border-radius: 999px;
    background: rgba(3, 11, 22, 0.82);
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 900;
    transition: opacity 0.16s ease;
}

.sfa-products-card-image .sfa-image-upload-form label:hover span,
.sfa-products-groups-screen a > .sfa-image-upload-form label:hover span,
.sfa-detail-image-upload label:hover span {
    opacity: 1;
}

.sfa-app-body {
    padding-bottom: 0;
}

.sfa-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid #f3f4f6;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.sfa-topbar-inner {
    width: min(100% - 32px, 1280px);
    height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.sfa-logo {
    justify-self: start;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1;
    font-weight: 400;
}

.sfa-logo:hover {
    color: #111827;
}

.sfa-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 800;
}

.sfa-desktop-nav a {
    color: #374151;
}

.sfa-desktop-nav > a {
    order: 10;
}

.sfa-desktop-nav > a:nth-child(1) {
    order: 1;
}

.sfa-desktop-nav > a:nth-child(2) {
    order: 2;
}

.sfa-desktop-nav > .sfa-favorites-nav-link {
    order: 3;
}

.sfa-desktop-nav > a:nth-child(3) {
    order: 4;
}

.sfa-desktop-nav > a:nth-child(4) {
    order: 5;
}

.sfa-desktop-nav a:hover,
.sfa-desktop-nav .sfa-admin-link {
    color: #047857;
}

.sfa-topbar-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfa-topbar-actions > a[href*="Favorites"] {
    display: none;
}

.sfa-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sfa-nav-cart-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.sfa-nav-user-circle-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.sfa-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 900;
}

.sfa-mobile-head {
    display: none;
}

.sfa-mobile-nav {
    display: none;
}

.sfa-auth-page {
    min-height: calc(100vh - 74px);
    background: #f6f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.sfa-auth-card {
    width: min(100%, 430px);
    border-radius: 24px;
    background: #ffffff;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sfa-auth-card h1 {
    margin: 8px 0 10px;
    font-size: 32px;
    font-weight: 900;
}

.sfa-auth-card p {
    color: #6b7280;
    font-weight: 700;
}

.sfa-auth-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.sfa-auth-form label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 900;
}

.sfa-auth-form input,
.sfa-auth-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    outline: 0;
    padding: 13px 14px;
    font-size: 16px;
    font-weight: 800;
}

.sfa-auth-form input {
    height: 52px;
}

.sfa-auth-form textarea {
    min-height: 96px;
    resize: vertical;
}

.sfa-auth-form input:focus,
.sfa-auth-form textarea:focus {
    border-color: #111827;
}

.sfa-auth-form button {
    border: 0;
    border-radius: 16px;
    background: #101827;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-auth-error {
    margin-top: 20px;
    border-radius: 16px;
    background: #fef2f2;
    color: #b91c1c;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
}

.sfa-auth-link {
    margin-top: 20px;
    display: block;
    text-align: center;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
}

.sfa-account-page {
    min-height: 100vh;
    background: #f6f7f9;
    padding-bottom: 96px;
}

.sfa-account-shell {
    width: min(100% - 32px, 1100px);
    margin: 0 auto;
    padding: 28px 0;
}

.sfa-account-header {
    margin-bottom: 24px;
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    padding: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.sfa-account-header span {
    color: #047857;
    font-size: 14px;
    font-weight: 900;
}

.sfa-account-header h1 {
    margin: 8px 0 0;
    color: #030712;
    font-size: 36px;
    font-weight: 900;
}

.sfa-account-header p {
    margin: 8px 0 0;
    color: #6b7280;
    font-weight: 700;
}

.sfa-account-header button {
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #ffffff;
    color: #dc2626;
    padding: 11px 18px;
    font-weight: 900;
}

.sfa-account-empty {
    border-radius: 24px;
    background: #ffffff;
    padding: 28px;
    color: #6b7280;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sfa-account-orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sfa-account-orders a {
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    padding: 22px;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.sfa-account-orders h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.sfa-account-orders p {
    margin: 10px 0;
    color: #6b7280;
    font-weight: 800;
}

.sfa-account-orders strong {
    font-size: 24px;
    font-weight: 900;
}

.sfa-account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sfa-account-profile-grid > div {
    border: 1px solid #f1f1f1;
    border-radius: 22px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sfa-account-profile-grid span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.sfa-account-profile-grid strong {
    color: #030712;
    font-size: 16px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.sfa-account-profile-wide {
    grid-column: 1 / -1;
}

.sfa-account-track-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 20px;
    border-radius: 16px;
    background: #060b14;
    color: #ffffff;
    padding: 0 22px;
    font-weight: 900;
    text-decoration: none;
}

.sfa-account-track-link:hover {
    color: #ffffff;
}

.sfa-track-page {
    min-height: calc(100vh - 80px);
    background: #f7f7f6;
    padding: 26px 16px 96px;
}

.sfa-track-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.sfa-track-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 24px;
    border-radius: 28px;
    background: #f2f0ec;
    padding: 30px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.sfa-track-hero h1 {
    margin: 12px 0 14px;
    color: #030712;
    font-size: 46px;
    font-weight: 950;
    line-height: 1.15;
}

.sfa-track-hero p {
    margin: 0;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.sfa-track-login,
.sfa-track-section-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 22px;
    border-radius: 14px;
    background: #060b14;
    color: #ffffff;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.sfa-track-login:hover,
.sfa-track-section-head a:hover {
    color: #ffffff;
}

.sfa-track-search {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    padding: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sfa-track-search label {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 950;
}

.sfa-track-search > div {
    display: flex;
    gap: 12px;
}

.sfa-track-search input {
    flex: 1;
    min-height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #030712;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 850;
    outline: none;
}

.sfa-track-search input:focus {
    border-color: #030712;
}

.sfa-track-search button {
    min-width: 110px;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    background: #030712;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.sfa-track-search p,
.sfa-track-message {
    margin-top: 14px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #065f46;
    padding: 14px;
    font-size: 14px;
    font-weight: 850;
}

.sfa-track-message {
    background: #fffbeb;
    color: #92400e;
}

.sfa-track-my-orders,
.sfa-track-details-grid {
    margin-top: 30px;
}

.sfa-track-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sfa-track-section-head h2 {
    margin: 0;
    color: #030712;
    font-size: 28px;
    font-weight: 950;
}

.sfa-track-section-head p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 850;
}

.sfa-track-section-head a {
    margin-top: 22px;
}

.sfa-track-empty {
    border-radius: 22px;
    background: #ffffff;
    color: #4b5563;
    padding: 20px;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.sfa-track-order-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sfa-track-order-card {
    display: block;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    color: inherit;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.sfa-track-order-card:hover {
    color: inherit;
    transform: translateY(-2px);
}

.sfa-track-order-card.is-selected {
    border-color: #030712;
}

.sfa-track-order-card > div:first-child {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sfa-track-order-card > div:first-child span {
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 950;
}

.sfa-track-order-card small {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 950;
}

.sfa-track-order-card h3 {
    margin: 20px 0 14px;
    color: #030712;
    font-size: 21px;
    font-weight: 950;
}

.sfa-track-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sfa-track-mini-grid span,
.sfa-track-info-grid span {
    border-radius: 16px;
    background: #f7f7f6;
    padding: 12px;
}

.sfa-track-mini-grid em,
.sfa-track-info-grid em {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

.sfa-track-mini-grid strong,
.sfa-track-info-grid strong {
    display: block;
    margin-top: 6px;
    color: #030712;
    font-size: 16px;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.sfa-track-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.sfa-track-panel {
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.sfa-track-panel > p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 950;
}

.sfa-track-panel h2 {
    margin: 8px 0 18px;
    color: #030712;
    font-size: 30px;
    font-weight: 950;
}

.sfa-track-info-grid,
.sfa-track-history {
    display: grid;
    gap: 12px;
}

.sfa-track-success,
.sfa-track-error {
    border-radius: 16px;
    margin-top: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-track-success {
    background: #ecfdf5;
    color: #047857;
}

.sfa-track-error {
    background: #fef2f2;
    color: #b91c1c;
}

.sfa-track-history div {
    border-radius: 18px;
    background: #f7f7f6;
    padding: 16px;
}

.sfa-track-history strong {
    display: block;
    color: #030712;
    font-size: 15px;
    font-weight: 950;
}

.sfa-track-history span,
.sfa-track-history p {
    display: block;
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.sfa-admin-orders-page {
    min-height: 100vh;
    background: #f9fafb;
    color: #030712;
    padding: 32px 20px 96px;
}

.sfa-admin-orders-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.sfa-admin-orders-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.sfa-admin-orders-header p {
    margin: 0;
    color: #047857;
    font-size: 14px;
    font-weight: 850;
}

.sfa-admin-orders-header h1 {
    margin: 8px 0;
    color: #030712;
    font-size: 34px;
    font-weight: 950;
}

.sfa-admin-orders-header span {
    color: #4b5563;
    font-weight: 700;
}

.sfa-admin-orders-header > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sfa-admin-orders-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #030712;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.sfa-admin-orders-header a:first-child {
    border-color: #030712;
    background: #030712;
    color: #fff;
}

.sfa-admin-order-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.sfa-admin-order-stats div {
    background: #fff;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sfa-admin-order-stats span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.sfa-admin-order-stats strong {
    display: block;
    margin-top: 8px;
    color: #030712;
    font-size: 30px;
    font-weight: 950;
}

.sfa-admin-order-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sfa-admin-order-filters label {
    display: grid;
    gap: 8px;
    color: #030712;
    font-size: 14px;
    font-weight: 850;
}

.sfa-admin-order-filters input,
.sfa-admin-order-filters select {
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #030712;
    padding: 0 12px;
    font-weight: 700;
    outline: none;
}

.sfa-admin-order-filters input:focus,
.sfa-admin-order-filters select:focus {
    border-color: #030712;
}

.sfa-admin-order-server-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
    gap: 12px;
    margin-bottom: 12px;
}

.sfa-admin-order-server-filter input,
.sfa-admin-order-server-filter select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-height: 48px;
    padding: 0 12px;
    font-weight: 800;
}

.sfa-admin-order-server-filter button,
.sfa-admin-order-pages a {
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    padding: 12px 14px;
    font-weight: 900;
    text-decoration: none;
}

.sfa-admin-order-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    color: #374151;
    font-weight: 850;
}

.sfa-admin-orders-table-card {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sfa-admin-orders-count {
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 850;
}

.sfa-admin-orders-message {
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 850;
}

.sfa-admin-bulk-toolbar {
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 16px;
}

.sfa-admin-bulk-approve {
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    padding: 10px 14px;
    font-weight: 900;
}

.sfa-admin-bulk-approve:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.sfa-admin-order-select,
[data-admin-order-select-all] {
    width: 18px;
    height: 18px;
    accent-color: #111827;
}

.sfa-admin-backups-page {
    min-height: 100vh;
    background: #f9fafb;
    padding: 30px 16px;
}

.sfa-admin-backups-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.sfa-admin-backups-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.sfa-admin-backups-header p,
.sfa-admin-backups-header h1 {
    margin: 0;
}

.sfa-admin-backups-header p {
    color: #047857;
    font-weight: 900;
}

.sfa-admin-backups-header h1 {
    margin-top: 6px;
    color: #030712;
}

.sfa-admin-backups-header span {
    display: block;
    margin-top: 8px;
    color: #4b5563;
    font-weight: 700;
}

.sfa-admin-backups-header a,
.sfa-admin-backup-table a {
    color: #111827;
    font-weight: 900;
}

.sfa-admin-backup-alert {
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    font-weight: 850;
}

.sfa-admin-backup-alert.is-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.sfa-admin-backup-alert.is-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.sfa-admin-backup-card {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
    padding: 18px;
}

.sfa-admin-backup-card h2 {
    margin: 0 0 8px;
    color: #030712;
    font-size: 20px;
}

.sfa-admin-backup-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-weight: 700;
}

.sfa-admin-backup-card button {
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    padding: 11px 16px;
    font-weight: 900;
}

.sfa-admin-backup-path-form {
    display: flex;
    gap: 10px;
}

.sfa-admin-backup-path-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 750;
}

.sfa-admin-backup-restore-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfa-admin-backup-restore-form input {
    width: 130px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 750;
}

.sfa-admin-backup-restore-form button {
    background: #991b1b;
    padding: 8px 11px;
}

.sfa-admin-backup-empty {
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    padding: 24px;
    text-align: center;
    font-weight: 850;
}

.sfa-admin-backup-table-wrap {
    overflow-x: auto;
}

.sfa-admin-backup-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: right;
}

.sfa-admin-backup-table th,
.sfa-admin-backup-table td {
    border-top: 1px solid #f3f4f6;
    padding: 13px 12px;
}

.sfa-admin-backup-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 900;
}

.sfa-admin-orders-empty {
    padding: 42px 16px;
    color: #6b7280;
    text-align: center;
    font-weight: 850;
}

.sfa-admin-orders-table-wrap {
    overflow-x: auto;
}

.sfa-admin-orders-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.sfa-admin-orders-table th {
    background: #f3f4f6;
    color: #374151;
    padding: 14px 16px;
    font-weight: 900;
}

.sfa-admin-orders-table td {
    border-top: 1px solid #f3f4f6;
    color: #1f2937;
    padding: 14px 16px;
    vertical-align: top;
    font-weight: 700;
}

.sfa-admin-badge {
    display: block;
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.sfa-admin-badge + .sfa-admin-badge {
    margin-top: 8px;
}

.sfa-admin-badge.is-blue { background: #eff6ff; color: #1d4ed8; }
.sfa-admin-badge.is-amber { background: #fffbeb; color: #b45309; }
.sfa-admin-badge.is-purple { background: #faf5ff; color: #7e22ce; }
.sfa-admin-badge.is-cyan { background: #ecfeff; color: #0e7490; }
.sfa-admin-badge.is-indigo { background: #eef2ff; color: #4338ca; }
.sfa-admin-badge.is-green { background: #ecfdf5; color: #047857; }
.sfa-admin-badge.is-red { background: #fef2f2; color: #b91c1c; }
.sfa-admin-badge.is-gray { background: #f3f4f6; color: #374151; }

.sfa-admin-order-open {
    border: 0;
    border-radius: 10px;
    background: #030712;
    color: #fff;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 900;
}

.sfa-admin-order-dialog {
    width: min(100% - 28px, 1040px);
    max-height: min(92vh, 920px);
    border: 0;
    border-radius: 14px;
    padding: 0;
    background: transparent;
}

.sfa-admin-order-dialog::backdrop {
    background: rgba(3, 7, 18, 0.46);
}

.sfa-admin-order-modal {
    max-height: min(92vh, 920px);
    overflow-y: auto;
    border-radius: 14px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.sfa-admin-order-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 18px;
}

.sfa-admin-order-modal-head p {
    margin: 0;
    color: #047857;
    font-size: 14px;
    font-weight: 850;
}

.sfa-admin-order-modal-head h2 {
    margin: 6px 0;
    color: #030712;
    font-size: 28px;
    font-weight: 950;
}

.sfa-admin-order-modal-head span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 750;
}

.sfa-admin-order-modal-head button {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #030712;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 850;
}

.sfa-admin-order-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    margin-top: 22px;
}

.sfa-admin-order-main {
    display: grid;
    gap: 18px;
}

.sfa-admin-order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-radius: 10px;
    background: #f9fafb;
    padding: 16px;
}

.sfa-admin-order-info-grid p,
.sfa-admin-order-note p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 750;
}

.sfa-admin-order-info-grid strong,
.sfa-admin-order-note strong {
    color: #030712;
    font-weight: 900;
}

.sfa-admin-order-note {
    border-radius: 10px;
    background: #f9fafb;
    padding: 16px;
}

.sfa-admin-order-note p {
    margin-top: 8px;
}

.sfa-admin-order-items {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.sfa-admin-order-items h3 {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #030712;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 900;
}

.sfa-admin-order-items > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 100px 110px;
    gap: 10px;
    border-top: 1px solid #f3f4f6;
    padding: 14px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 750;
}

.sfa-admin-order-items p {
    margin: 0;
}

.sfa-admin-order-items p strong,
.sfa-admin-order-items p span {
    display: block;
}

.sfa-admin-order-items p span {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.sfa-admin-order-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.sfa-admin-order-side section {
    border-radius: 10px;
    background: #f9fafb;
    padding: 16px;
}

.sfa-admin-order-side h3 {
    margin: 0 0 12px;
    color: #030712;
    font-size: 16px;
    font-weight: 900;
}

.sfa-admin-order-side form {
    display: grid;
    gap: 10px;
}

.sfa-admin-order-side select,
.sfa-admin-order-side textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #030712;
    padding: 12px;
    font-weight: 750;
    outline: none;
}

.sfa-admin-order-side textarea {
    min-height: 82px;
    resize: vertical;
}

.sfa-admin-order-side button {
    border: 0;
    border-radius: 10px;
    background: #030712;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-admin-order-side form[action$="ApproveToAmin"] button {
    background: #047857;
}

.sfa-admin-order-side button:disabled {
    background: #9ca3af;
}

.sfa-admin-order-success,
.sfa-admin-order-error {
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    font-weight: 850;
}

.sfa-admin-order-success {
    background: #ecfdf5;
    color: #047857;
}

.sfa-admin-order-error {
    background: #fef2f2;
    color: #b91c1c;
}

.sfa-admin-order-history {
    display: grid;
    gap: 10px;
}

.sfa-admin-order-history div {
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.sfa-admin-order-history strong,
.sfa-admin-order-history span,
.sfa-admin-order-history p {
    display: block;
}

.sfa-admin-order-history strong {
    color: #030712;
    font-size: 14px;
    font-weight: 900;
}

.sfa-admin-order-history span,
.sfa-admin-order-history p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 750;
}

.sfa-old-home {
    min-height: 100vh;
    background: #f7f7f6;
    padding-bottom: 96px;
}

.sfa-old-container {
    width: min(100% - 24px, 1280px);
    margin: 0 auto;
    padding: 12px 0 32px;
}

.sfa-home-search {
    max-width: 760px;
    margin: 0 auto 12px;
    position: relative;
}

.sfa-home-search form {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    padding: 0 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sfa-home-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

.sfa-search-icon {
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sfa-search-svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sfa-home-search-results {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    padding: 8px;
    text-align: right;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.sfa-home-search-results.is-open {
    display: block;
}

.sfa-home-search-results section > p {
    margin: 0;
    padding: 8px 12px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 900;
}

.sfa-home-search-results a {
    display: none;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 8px;
    color: #111827;
}

.sfa-home-search-results a:hover {
    background: #f9fafb;
}

.sfa-home-search-results a > div {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.sfa-home-search-results img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-home-search-results strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-home-search-results small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.sfa-search-empty {
    display: none;
    padding: 18px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.sfa-old-hero {
    overflow: hidden;
    border-radius: 14px;
    background: #f2f0ec;
    padding: 28px 48px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.sfa-old-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 24px;
}

.sfa-old-hero-media {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfa-old-hero-media img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.sfa-old-hero-media span {
    color: #d1d5db;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
}

.sfa-old-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.sfa-old-welcome,
.sfa-welcome-line {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.sfa-welcome-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
}

.sfa-welcome-line img {
    width: 18px;
    height: 18px;
}

.sfa-old-hero-copy h1 {
    margin: 18px 0 0;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1;
}

.sfa-old-desc {
    max-width: 330px;
    margin: 20px 0 0;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.sfa-old-cta {
    margin-top: 24px;
    display: inline-flex;
    border-radius: 8px;
    background: #060b14;
    color: #ffffff;
    padding: 13px 32px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.sfa-old-cta:hover {
    color: #ffffff;
    background: #1f2937;
}

.sfa-old-section-title {
    margin: 30px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sfa-old-section-title h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.sfa-old-section-title a {
    color: #6b7280;
    font-size: 14px;
    font-weight: 900;
}

.sfa-old-groups-wrap {
    position: relative;
}

.sfa-old-groups-wrap:not(.is-ready) .sfa-group-arrow,
.sfa-group-arrow[hidden] {
    display: none !important;
}

.sfa-old-groups-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sfa-old-groups-strip::-webkit-scrollbar {
    display: none;
}

.sfa-group-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.sfa-group-arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.sfa-group-next::before {
    transform: rotate(-135deg);
}

.sfa-group-prev::before {
    transform: rotate(45deg);
}

.sfa-group-next {
    left: -12px;
}

.sfa-group-prev {
    right: -12px;
}

.sfa-old-groups-strip a {
    min-width: 18%;
    scroll-snap-align: start;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.sfa-old-groups-strip div,
.sfa-old-mobile-groups div {
    aspect-ratio: 1;
    border-radius: 20px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.sfa-old-groups-strip img,
.sfa-old-mobile-groups img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-old-groups-strip span,
.sfa-old-mobile-groups span {
    color: #d1d5db;
    font-weight: 900;
}

.sfa-old-groups-strip h3,
.sfa-old-mobile-groups h3 {
    margin: 14px 0 0;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-old-groups-strip p,
.sfa-old-mobile-groups p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.sfa-old-mobile-groups {
    display: none;
}

.sfa-old-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sfa-old-products-grid a {
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
    text-align: center;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.sfa-old-products-grid a:hover {
    transform: translateY(-2px);
    color: #111827;
}

.sfa-old-product-image {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.sfa-old-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-old-product-image strong {
    color: #d1d5db;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 4px;
}

.sfa-old-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
}

.sfa-old-products-grid h3 {
    margin: 14px 0 0;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-old-products-grid p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-old-products-grid b {
    display: block;
    margin-top: 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.sfa-inline-cart-control {
    position: relative;
    z-index: 2;
    width: 150px;
    max-width: 100%;
    height: 40px;
    margin: 12px auto 0;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.sfa-inline-cart-control form {
    height: 100%;
}

.sfa-inline-cart-control button {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.sfa-inline-cart-control button:disabled {
    color: #d1d5db;
}

.sfa-inline-cart-control span {
    text-align: center;
    color: #111827;
    font-weight: 900;
}

.sfa-products-page {
    min-height: 100vh;
    background: #f7f7f6;
    padding-bottom: 112px;
    direction: rtl;
}

.sfa-products-shell {
    width: min(100% - 24px, 1280px);
    margin: 0 auto;
    padding: 18px 0 32px;
}

.sfa-products-header {
    margin-bottom: 22px;
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    padding: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.sfa-products-header span {
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 900;
}

.sfa-products-header h1 {
    margin: 12px 0 0;
    color: #030712;
    font-size: 40px;
    font-weight: 900;
}

.sfa-products-header p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.sfa-products-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfa-products-header-actions a {
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-products-message {
    margin-bottom: 18px;
    border: 1px solid #fde68a;
    border-radius: 20px;
    background: #fffbeb;
    color: #92400e;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 800;
}

.sfa-products-message a {
    margin-inline-start: 12px;
    color: #78350f;
    font-weight: 900;
}

.sfa-products-message-admin {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.sfa-products-toolbar {
    position: sticky;
    top: 86px;
    z-index: 30;
    margin-bottom: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 190px 160px;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.sfa-products-toolbar input,
.sfa-products-toolbar select {
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    outline: 0;
    padding: 0 14px;
    font-weight: 800;
}

.sfa-products-toolbar label {
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #374151;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-products-groups-screen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sfa-products-groups-screen a {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    padding: 16px;
    text-align: center;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.sfa-products-groups-screen a:hover {
    color: #111827;
    transform: translateY(-2px);
}

.sfa-products-groups-screen div {
    aspect-ratio: 1;
    border-radius: 22px;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.sfa-products-groups-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-products-groups-screen div span {
    color: #d1d5db;
    font-size: 36px;
    font-weight: 900;
}

.sfa-products-groups-screen strong {
    margin-top: 12px;
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 900;
}

.sfa-products-groups-screen h2 {
    margin: 12px 0 0;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.sfa-products-groups-screen p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.sfa-products-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sfa-products-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.sfa-products-card:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.sfa-products-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sfa-product-favorite-form {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    margin: 0;
}

.sfa-product-favorite-button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sfa-product-favorite-button:hover {
    color: #be123c;
    transform: translateY(-1px);
}

.sfa-product-favorite-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.sfa-product-favorite-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-product-favorite-button.is-favorite {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.sfa-product-favorite-button.is-favorite svg {
    fill: currentColor;
}

.sfa-products-card-grid {
    min-height: 178px;
    display: grid;
    grid-template-columns: 32% 1fr;
    gap: 20px;
}

.sfa-products-card-image {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    background: #fbfaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
}

.sfa-products-card-image img {
    width: 100%;
    height: 100%;
    max-height: 150px;
    object-fit: contain;
}

.sfa-products-card-image strong {
    color: #d1d5db;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
}

.sfa-products-stock-state {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
}

.sfa-products-card-info {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.sfa-products-card-info h2 {
    width: 100%;
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-products-card-info p {
    width: 100%;
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.sfa-products-card-info b {
    margin-top: 12px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.sfa-products-card-info small {
    font-size: 12px;
    font-weight: 800;
}

.sfa-products-stock {
    margin-top: 12px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
}

.sfa-products-stock strong {
    color: #059669;
}

.sfa-products-cart-control {
    width: 150px;
    height: 40px;
    margin-top: auto;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.sfa-products-cart-control button {
    height: 100%;
    border: 0;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.sfa-products-cart-control button:disabled {
    color: #d1d5db;
}

.sfa-products-cart-control span {
    text-align: center;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.sfa-products-floating-cart {
    position: fixed;
    inset-inline: 16px;
    bottom: 88px;
    z-index: 1045;
    height: 56px;
    border-radius: 12px;
    background: #07101f;
    color: #ffffff;
    padding: 0 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.25);
}

.sfa-products-floating-cart:hover {
    color: #ffffff;
}

.sfa-cart-page {
    min-height: 100vh;
    background: #f6f7f9;
    padding-bottom: 96px;
    direction: rtl;
}

.sfa-cart-shell {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.sfa-cart-header {
    margin-bottom: 24px;
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    padding: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.sfa-cart-header span {
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-cart-header h1 {
    margin: 18px 0 0;
    color: #030712;
    font-size: 40px;
    font-weight: 900;
}

.sfa-cart-header p {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
}

.sfa-cart-header a {
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    padding: 12px 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
}

.sfa-cart-empty {
    border-radius: 28px;
    background: #ffffff;
    padding: 42px 24px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sfa-cart-empty p {
    margin: 0;
    color: #030712;
    font-size: 28px;
    font-weight: 900;
}

.sfa-cart-empty span {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-weight: 700;
}

.sfa-cart-empty a {
    margin-top: 24px;
    display: inline-flex;
    border-radius: 16px;
    background: #101827;
    color: #ffffff;
    padding: 13px 24px;
    font-weight: 900;
}

.sfa-cart-empty a:hover {
    color: #ffffff;
}

.sfa-cart-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
}

.sfa-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sfa-cart-item {
    border: 1px solid #f3f4f6;
    border-radius: 26px;
    background: #ffffff;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.sfa-cart-item-main {
    min-width: 0;
}

.sfa-cart-item-main p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.sfa-cart-item-main h2 {
    margin: 6px 0 0;
    color: #030712;
    font-size: 26px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-cart-item-main div {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
}

.sfa-cart-item-main b {
    color: #111827;
}

.sfa-cart-quantity {
    border-radius: 16px;
    background: #f9fafb;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfa-cart-quantity button {
    width: 44px;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.sfa-cart-quantity span {
    width: 40px;
    text-align: center;
    color: #030712;
    font-size: 22px;
    font-weight: 900;
}

.sfa-cart-item-total {
    min-width: 110px;
    text-align: left;
}

.sfa-cart-item-total strong {
    display: block;
    color: #030712;
    font-size: 26px;
    font-weight: 900;
}

.sfa-cart-item-total button {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 14px;
    font-weight: 800;
}

.sfa-cart-summary {
    height: fit-content;
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    padding: 26px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.sfa-cart-summary h2 {
    margin: 0 0 24px;
    color: #030712;
    font-size: 26px;
    font-weight: 900;
}

.sfa-cart-summary div {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-weight: 700;
}

.sfa-cart-summary div:first-of-type {
    border-top: 0;
}

.sfa-cart-summary b {
    color: #111827;
}

.sfa-cart-summary strong {
    color: #030712;
    font-size: 30px;
    font-weight: 900;
}

.sfa-cart-summary a,
.sfa-cart-summary button {
    width: 100%;
    border-radius: 16px;
    padding: 15px 20px;
    text-align: center;
    font-weight: 900;
}

.sfa-cart-summary a {
    margin-top: 18px;
    display: block;
    background: #101827;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.sfa-cart-summary a:hover {
    color: #ffffff;
}

.sfa-cart-summary button {
    margin-top: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.sfa-old-contact {
    margin-top: 34px;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.sfa-old-contact p {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.sfa-old-contact span {
    display: block;
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.sfa-detail-page {
    min-height: 100vh;
    background: #f7f7f5;
    padding-bottom: 64px;
}

.sfa-detail-container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 24px 0 36px;
}

.sfa-detail-actions {
    direction: ltr;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sfa-detail-actions > div {
    display: flex;
    gap: 12px;
}

.sfa-detail-round {
    width: 48px;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.sfa-detail-favorite-form {
    margin: 0;
}

.sfa-detail-favorite-form + a.sfa-detail-round {
    display: none;
}

.sfa-favorite-button {
    cursor: pointer;
}

.sfa-favorite-button.is-favorite {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.sfa-favorite-button.is-favorite svg {
    fill: currentColor;
}

.sfa-detail-action-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sfa-favorites-page {
    min-height: 100vh;
    background: #f6f7f9;
    padding-bottom: 110px;
}

.sfa-favorites-shell {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 28px 0 40px;
}

.sfa-favorites-header {
    margin-bottom: 22px;
    border: 1px solid #f3f4f6;
    border-radius: 26px;
    background: #ffffff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.sfa-favorites-header span {
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}

.sfa-favorites-header h1 {
    margin: 6px 0 0;
    color: #111827;
    font-size: 34px;
    font-weight: 900;
}

.sfa-favorites-header p {
    margin: 8px 0 0;
    color: #6b7280;
    font-weight: 800;
}

.sfa-favorites-header a,
.sfa-favorites-empty a {
    border-radius: 14px;
    background: #101827;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sfa-favorite-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    padding: 16px;
    display: grid;
    grid-template-columns: 34% 1fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.sfa-favorite-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sfa-favorite-image {
    position: relative;
    z-index: 2;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #fbfaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.sfa-favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-favorite-image strong {
    color: #d1d5db;
    font-size: 28px;
    font-weight: 900;
}

.sfa-favorite-card section {
    position: relative;
    z-index: 2;
    min-width: 0;
    text-align: right;
}

.sfa-favorite-card h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-favorite-card p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.sfa-favorite-card b {
    display: block;
    margin-top: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.sfa-favorite-remove {
    position: relative;
    z-index: 3;
    margin: 0;
}

.sfa-favorite-remove button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sfa-favorite-remove svg {
    width: 20px;
    height: 20px;
}

.sfa-favorites-empty {
    border: 1px dashed #d1d5db;
    border-radius: 24px;
    background: #ffffff;
    padding: 38px 20px;
    text-align: center;
}

.sfa-favorites-empty h2 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
}

.sfa-favorites-empty p {
    margin: 12px 0 22px;
    color: #6b7280;
    font-weight: 800;
}

.sfa-detail-back-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.sfa-button-cart-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sfa-detail-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
}

.sfa-detail-card,
.sfa-related-card {
    overflow: hidden;
    border: 1px solid #eee9df;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 70px rgba(72, 64, 48, 0.1);
}

.sfa-detail-card {
    display: grid;
    min-height: 680px;
    grid-template-columns: 0.92fr 1.08fr;
}

.sfa-detail-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 56px;
    text-align: center;
}

.sfa-detail-chip {
    display: inline-flex;
    align-self: flex-start;
    border-radius: 10px;
    background: #eef4e9;
    color: #50613f;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.sfa-detail-chip.is-unavailable,
.sfa-detail-mobile-status.is-unavailable {
    background: #f3f4f6;
    color: #6b7280;
}

.sfa-detail-title-block {
    width: 100%;
    margin-top: 40px;
}

.sfa-detail-title-block h1 {
    color: #181818;
    font-family: "Traditional Arabic", "Arabic Typesetting", "Noto Naskh Arabic", serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.15;
}

.sfa-detail-title-block p {
    margin-top: 14px;
    color: #7b776d;
    font-size: 17px;
    font-weight: 700;
}

.sfa-detail-separator {
    margin: 34px 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #63704f;
}

.sfa-detail-separator span {
    height: 1px;
    flex: 1;
    background: #e7e0d6;
}

.sfa-detail-separator img {
    width: 28px;
    height: 28px;
}

.sfa-detail-price {
    color: #202018;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.sfa-detail-price small {
    font-size: 16px;
    font-weight: 700;
}

.sfa-detail-stock {
    margin: 20px auto 0;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #eef4e9;
    color: #6d7563;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
}

.sfa-box-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #111827;
}

.sfa-detail-stock b {
    color: #3f7b59;
}

.sfa-detail-cart-form {
    margin: 32px auto 0;
    max-width: 360px;
}

.sfa-detail-qty {
    height: 44px;
    max-width: 220px;
    margin: 0 auto;
    border: 1px solid #e8e2d9;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.sfa-detail-qty span,
.sfa-detail-qty button {
    width: 56px;
    color: #161616;
    font-size: 24px;
    font-weight: 900;
}

.sfa-detail-qty button {
    height: 100%;
    border: 0;
    background: #ffffff;
}

.sfa-detail-qty button:disabled {
    color: #d1d5db;
}

.sfa-detail-qty input {
    width: 64px;
    height: 100%;
    border: 0;
    border-left: 1px solid #eee9df;
    border-right: 1px solid #eee9df;
    text-align: center;
    font-weight: 900;
}

.sfa-detail-cart-form > button,
.sfa-mobile-add {
    margin-top: 20px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #52613f;
    color: #ffffff;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(82, 97, 63, 0.22);
}

.sfa-detail-units {
    margin-top: 34px;
}

.sfa-detail-units > p {
    margin-bottom: 12px;
    color: #4c493f;
    text-align: right;
    font-size: 14px;
    font-weight: 900;
}

.sfa-detail-units > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sfa-detail-units form {
    min-width: 0;
}

.sfa-detail-units button {
    width: 100%;
    min-height: 78px;
    border: 1px solid #eee9df;
    border-radius: 10px;
    background: #ffffff;
    color: #4c493f;
    padding: 12px 8px;
}

.sfa-detail-units button.active {
    border-color: #52613f;
    color: #1c1c16;
    box-shadow: 0 8px 18px rgba(82, 97, 63, 0.12);
}

.sfa-detail-units span,
.sfa-detail-units b {
    display: block;
}

.sfa-detail-units span {
    font-size: 14px;
    font-weight: 900;
}

.sfa-detail-units b {
    margin-top: 4px;
    color: #7b776d;
    font-size: 12px;
}

.sfa-detail-image {
    background: linear-gradient(to bottom, #fbfaf6, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sfa-detail-image img {
    width: 100%;
    height: 100%;
    max-height: 590px;
    object-fit: contain;
}

.sfa-detail-image span,
.sfa-detail-mobile-image span,
.sfa-related-card span {
    color: #d1d5db;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
}

.sfa-related-card {
    padding: 28px;
}

.sfa-related-card h2 {
    color: #201f1a;
    text-align: center;
    font-family: "Traditional Arabic", "Arabic Typesetting", "Noto Naskh Arabic", serif;
    font-size: 28px;
    font-weight: 900;
}

.sfa-related-card > i {
    display: block;
    width: 64px;
    height: 1px;
    margin: 12px auto 28px;
    background: #52613f;
}

.sfa-related-card a:not(.sfa-more-related) {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f0ece4;
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    margin-bottom: 18px;
    color: #202018;
    box-shadow: 0 12px 30px rgba(72, 64, 48, 0.06);
}

.sfa-related-card a > div {
    width: 64px;
    height: 80px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fbfaf6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sfa-related-card a > div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-related-card a > div span {
    font-size: 18px;
    letter-spacing: 2px;
}

.sfa-related-card section {
    min-width: 0;
    flex: 1;
    text-align: right;
}

.sfa-related-card section p {
    margin: 0;
    color: #202018;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-related-card section b {
    display: block;
    margin-top: 8px;
    color: #202018;
    font-size: 18px;
}

.sfa-related-card a > img {
    width: 20px;
    opacity: 0.7;
}

.sfa-no-related {
    border: 1px solid #f0ece4;
    border-radius: 14px;
    background: #fbfaf6;
    padding: 20px;
    color: #7b776d;
    text-align: center;
    font-weight: 800;
}

.sfa-more-related {
    margin: 28px auto 0;
    width: fit-content;
    display: flex;
    border: 1px solid #e5ded3;
    border-radius: 999px;
    color: #5e5a50;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 900;
}

.sfa-detail-mobile {
    display: none;
}

.sfa-kicker {
    color: #047857 !important;
    font-size: 14px;
    font-weight: 900 !important;
}

.sfa-floating-cart {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 210px;
    border-radius: 14px;
    background: #07101f;
    color: #ffffff;
    padding: 14px 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.sfa-floating-cart:hover {
    color: #ffffff;
    background: #111827;
}

@media (min-width: 769px) {
    .sfa-floating-cart:not([hidden]) {
        display: none;
    }

    .sfa-products-items-body .sfa-floating-cart:not([hidden]),
    .sfa-favorites-body .sfa-floating-cart:not([hidden]) {
        display: flex;
    }

    .sfa-products-items-body .sfa-floating-cart {
        --sfa-products-shell-width: min(calc(100vw - 64px), 1240px);
        --sfa-products-aside-width: 300px;
        --sfa-products-column-gap: 18px;
        --sfa-products-main-left: calc((100vw - var(--sfa-products-shell-width)) / 2 + var(--sfa-products-aside-width) + var(--sfa-products-column-gap));
        --sfa-products-main-width: calc(var(--sfa-products-shell-width) - var(--sfa-products-aside-width) - var(--sfa-products-column-gap));
        --sfa-products-cart-width: min(var(--sfa-products-main-width), 760px);
        left: calc(var(--sfa-products-main-left) + (var(--sfa-products-main-width) - var(--sfa-products-cart-width)) / 2);
        right: auto;
        bottom: 22px;
        width: var(--sfa-products-cart-width);
        max-width: 760px;
        min-width: 0;
        height: 50px;
        padding: 0 18px;
        border-radius: 14px;
        transform: none;
    }

    .sfa-favorites-body .sfa-floating-cart {
        --sfa-favorites-cart-width: min(calc(100vw - 32px), 760px);
        left: calc((100vw - var(--sfa-favorites-cart-width)) / 2);
        right: auto;
        bottom: 22px;
        width: var(--sfa-favorites-cart-width);
        max-width: 760px;
        min-width: 0;
        height: 50px;
        padding: 0 18px;
        border-radius: 14px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .sfa-products-page {
        padding-bottom: 132px;
    }

    .sfa-products-shell {
        width: min(100% - 18px, 1280px);
        padding-top: 12px;
    }

    .sfa-products-header {
        border-radius: 22px;
        padding: 18px;
        display: block;
    }

    .sfa-products-header h1 {
        font-size: 30px;
    }

    .sfa-products-header-actions {
        margin-top: 16px;
    }

    .sfa-products-toolbar {
        top: 78px;
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 12px;
    }

    .sfa-products-toolbar label {
        display: none;
    }

    .sfa-products-groups-screen {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sfa-products-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sfa-products-card {
        border-radius: 13px;
        padding: 12px;
    }

    .sfa-products-card-grid {
        min-height: 122px;
        grid-template-columns: 38% 1fr;
        gap: 12px;
    }

    .sfa-products-card-image {
        border-radius: 12px;
        padding: 8px;
    }

    .sfa-products-card-image img {
        max-height: 104px;
    }

    .sfa-products-card-image strong {
        font-size: 24px;
    }

    .sfa-products-stock-state {
        top: 7px;
        right: 7px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .sfa-products-card-info h2 {
        font-size: 14px;
        line-height: 1.6;
    }

    .sfa-products-card-info p {
        font-size: 11px;
    }

    .sfa-products-card-info b {
        margin-top: 8px;
        font-size: 16px;
    }

    .sfa-products-stock {
        margin-top: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .sfa-products-cart-control {
        width: 126px;
        height: 36px;
        grid-template-columns: 40px 1fr 40px;
    }

    .sfa-products-floating-cart {
        display: flex;
    }

    .sfa-cart-page {
        padding-bottom: 132px;
    }

    .sfa-cart-shell {
        width: min(100% - 18px, 1280px);
        padding-top: 14px;
    }

    .sfa-cart-header {
        display: block;
        border-radius: 22px;
        padding: 20px;
    }

    .sfa-cart-header h1 {
        font-size: 30px;
    }

    .sfa-cart-header a {
        margin-top: 18px;
        display: inline-flex;
    }

    .sfa-cart-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sfa-cart-item {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 16px;
        border-radius: 22px;
        padding: 18px;
    }

    .sfa-cart-item-main h2 {
        font-size: 22px;
    }

    .sfa-cart-quantity {
        width: fit-content;
    }

    .sfa-cart-item-total {
        min-width: 0;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sfa-account-shell {
        width: min(100% - 18px, 1100px);
        padding-top: 16px;
    }

    .sfa-account-header {
        display: block;
        border-radius: 22px;
        padding: 20px;
    }

    .sfa-account-header form {
        margin-top: 16px;
    }

    .sfa-account-orders {
        grid-template-columns: 1fr;
    }

    .sfa-account-profile-grid,
    .sfa-track-hero,
    .sfa-track-order-grid,
    .sfa-track-details-grid {
        grid-template-columns: 1fr;
    }

    .sfa-track-page {
        padding: 14px 10px 96px;
    }

    .sfa-track-hero {
        border-radius: 24px;
        padding: 20px;
    }

    .sfa-track-hero h1 {
        font-size: 34px;
    }

    .sfa-track-search > div,
    .sfa-track-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .sfa-track-search button,
    .sfa-track-section-head a {
        width: 100%;
    }

    .sfa-admin-orders-page {
        padding: 18px 10px 96px;
    }

    .sfa-admin-orders-header,
    .sfa-admin-order-modal-head {
        display: block;
    }

    .sfa-admin-orders-header > div:last-child,
    .sfa-admin-order-modal-head button {
        margin-top: 14px;
    }

    .sfa-admin-order-stats,
    .sfa-admin-order-filters,
    .sfa-admin-order-modal-grid,
    .sfa-admin-order-info-grid {
        grid-template-columns: 1fr;
    }

    .sfa-admin-order-items > div {
        grid-template-columns: 1fr 60px 80px 90px;
        min-width: 620px;
    }

    .sfa-admin-order-items {
        overflow-x: auto;
    }

    .sfa-app-body {
        padding-bottom: 84px;
    }

    .sfa-topbar-inner {
        display: none;
    }

    .sfa-mobile-head {
        height: 74px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 18px;
        position: relative;
    }

    .sfa-mobile-head .sfa-logo {
        font-size: 28px;
        margin-left: 20px;
    }

    .sfa-mobile-head .sfa-icon-btn {
        position: absolute;
        left: 18px;
    }

    .sfa-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
        border-top: 1px solid #f3f4f6;
        border-radius: 24px 24px 0 0;
        background: #ffffff;
        padding: 8px 10px 18px;
        box-shadow: 0 -14px 35px rgba(15, 23, 42, 0.12);
    }

    .sfa-mobile-nav a {
        position: relative;
        color: #6b7280;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 900;
    }

    .sfa-mobile-nav span {
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #111827;
    }

    .sfa-mobile-nav-icon {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
    }

    .sfa-mobile-nav strong {
        font-size: 11px;
    }

    .sfa-mobile-cart-item em {
        position: absolute;
        top: -5px;
        right: 18px;
        min-width: 18px;
        height: 18px;
        border-radius: 999px;
        background: #111827;
        color: #ffffff;
        font-style: normal;
        font-size: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sfa-floating-cart {
        display: flex;
        left: 16px;
        right: 16px;
        bottom: 88px;
    }

    .sfa-old-home {
        padding-bottom: 132px;
    }

    .sfa-old-container {
        width: min(100% - 18px, 1280px);
        padding-top: 10px;
    }

    .sfa-home-search {
        margin-bottom: 10px;
    }

    .sfa-home-search form {
        height: 44px;
        border-radius: 16px;
    }

    .sfa-old-hero {
        border-radius: 14px;
        padding: 16px;
    }

    .sfa-old-hero-grid {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 10px;
    }

    .sfa-old-hero-media {
        min-height: 122px;
    }

    .sfa-old-hero-media img {
        max-height: 148px;
    }

    .sfa-old-hero-media span {
        font-size: 36px;
        letter-spacing: 5px;
    }

    .sfa-old-welcome,
    .sfa-welcome-line {
        font-size: 13px;
    }

    .sfa-welcome-line img {
        width: 14px;
        height: 14px;
    }

    .sfa-old-hero-copy h1 {
        margin-top: 6px;
        font-size: 32px;
    }

    .sfa-old-desc {
        max-width: 176px;
        margin-top: 8px;
        font-size: 11px;
        line-height: 1.7;
    }

    .sfa-old-cta {
        margin-top: 12px;
        padding: 10px 20px;
        font-size: 11px;
    }

    .sfa-old-section-title {
        margin-top: 24px;
    }

    .sfa-old-section-title h2 {
        font-size: 18px;
    }

    .sfa-old-section-title a {
        font-size: 12px;
    }

    .sfa-old-groups-strip {
        display: none;
    }

    .sfa-group-arrow {
        display: none;
    }

    .sfa-old-mobile-groups {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .sfa-old-mobile-groups a {
        border-radius: 14px;
        background: #ffffff;
        padding: 8px;
        text-align: center;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .sfa-old-mobile-groups div {
        border-radius: 12px;
        padding: 8px;
    }

    .sfa-old-mobile-groups h3 {
        font-size: 12px;
        margin-top: 8px;
    }

    .sfa-old-mobile-groups p {
        font-size: 10px;
        margin-top: 4px;
    }

    .sfa-old-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .sfa-old-products-grid a {
        border-radius: 14px;
        padding: 8px;
    }

    .sfa-old-product-image {
        aspect-ratio: 1;
        border-radius: 12px;
        padding: 8px;
    }

    .sfa-old-product-image strong {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .sfa-old-badge {
        top: 6px;
        right: 6px;
        padding: 2px 6px;
        font-size: 8px;
    }

    .sfa-old-products-grid h3 {
        margin-top: 8px;
        font-size: 12px;
    }

    .sfa-old-products-grid p {
        font-size: 10px;
    }

    .sfa-old-products-grid b {
        margin-top: 5px;
        font-size: 12px;
    }

    .sfa-detail-page {
        background: #ffffff;
        padding-bottom: 120px;
    }

    .sfa-detail-container {
        width: min(100% - 28px, 430px);
        padding-top: 12px;
    }

    .sfa-detail-actions {
        margin-bottom: 12px;
    }

    .sfa-detail-round {
        width: 40px;
        height: 40px;
        border: 0;
        box-shadow: none;
    }

    .sfa-detail-desktop {
        display: none;
    }

    .sfa-detail-mobile {
        display: grid;
        gap: 22px;
    }

    .sfa-favorites-shell {
        width: min(100% - 18px, 1180px);
        padding-top: 16px;
    }

    .sfa-favorites-header {
        display: block;
        border-radius: 22px;
        padding: 20px;
    }

    .sfa-favorites-header h1 {
        font-size: 30px;
    }

    .sfa-favorites-header a {
        margin-top: 16px;
        display: inline-flex;
    }

    .sfa-favorites-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sfa-favorite-card {
        grid-template-columns: 34% 1fr 42px;
        gap: 12px;
        border-radius: 18px;
        padding: 12px;
    }

    .sfa-favorite-card h2 {
        font-size: 14px;
    }

    .sfa-favorite-card p {
        font-size: 11px;
    }

    .sfa-favorite-card b {
        font-size: 16px;
    }

    .sfa-detail-mobile-image {
        min-height: 245px;
        border-radius: 26px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .sfa-detail-mobile-image img {
        width: 100%;
        max-height: 250px;
        object-fit: contain;
    }

    .sfa-detail-mobile-image span {
        font-size: 60px;
    }

    .sfa-detail-mobile-info > div:first-child {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        direction: ltr;
    }

    .sfa-detail-mobile-info > div:first-child > span {
        flex: 0 0 auto;
        border-radius: 999px;
        background: #ecfdf5;
        color: #047857;
        padding: 4px 12px;
        font-size: 11px;
        font-weight: 900;
    }

    .sfa-detail-mobile-info section {
        direction: rtl;
        text-align: right;
        min-width: 0;
    }

    .sfa-detail-mobile-info h1 {
        color: #111827;
        font-size: 21px;
        font-weight: 900;
        line-height: 1.35;
    }

    .sfa-detail-mobile-info p {
        margin-top: 8px;
        color: #6b7280;
        font-size: 14px;
        font-weight: 800;
    }

    .sfa-detail-mobile-info b {
        display: block;
        margin-top: 10px;
        color: #111827;
        font-size: 28px;
        font-weight: 900;
    }

    .sfa-detail-mobile-info b small {
        font-size: 14px;
    }

    .sfa-detail-mobile-units {
        margin-top: 18px;
    }

    .sfa-detail-mobile-units > p {
        margin: 0 0 10px;
        color: #4b5563;
        font-size: 13px;
    }

    .sfa-detail-mobile-units > div {
        grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
        gap: 8px;
    }

    .sfa-detail-mobile-units button {
        min-height: 64px;
        padding: 10px 6px;
    }

    .sfa-detail-mobile-info .sfa-detail-mobile-units span {
        font-size: 13px;
    }

    .sfa-detail-mobile-info .sfa-detail-mobile-units b {
        margin-top: 4px;
        color: #7b776d;
        font-size: 11px;
    }

    .sfa-detail-stock.mobile {
        margin: 16px 0 0;
        border-radius: 8px;
        background: #f9fafb;
        box-shadow: 0 0 0 1px #f3f4f6;
        font-size: 12px;
    }

    .sfa-detail-stock.mobile b {
        display: inline;
        margin-top: 22px;
        color: #059669;
        font-size: 12px;
        font-weight: 900;
    }

    .sfa-mobile-add {
        margin-top: 18px;
        border-radius: 12px;
        background: #07101f;
    }

    .sfa-inline-cart-control {
        width: 126px;
        height: 36px;
        grid-template-columns: 38px 1fr 38px;
        margin-top: 8px;
    }

    .sfa-inline-cart-control button {
        font-size: 20px;
    }
}

/* Final product group page override */
.sfa-products-page {
    background: #ffffff;
    padding-bottom: 120px;
}

.sfa-products-mobile-bar {
    display: none;
}

.sfa-products-shell {
    width: min(100% - 64px, 1240px);
    padding: 36px 0 40px;
}

.sfa-products-header {
    margin: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: block;
    text-align: center;
    box-shadow: none;
}

.sfa-products-header span,
.sfa-products-header p,
.sfa-products-header-actions {
    display: none;
}

.sfa-products-header h1 {
    margin: 0;
    color: #050505;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.3;
}

.sfa-products-toolbar {
    position: static;
    z-index: auto;
    margin: 8px 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    box-shadow: none;
}

.sfa-products-toolbar input {
    grid-column: 3;
    justify-self: end;
    width: min(100%, 360px);
    height: 46px;
    border-color: #e6e6e6;
    border-radius: 13px;
    background: #ffffff;
    padding: 0 44px 0 16px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
}

.sfa-products-toolbar::after {
    content: "";
    grid-column: 3;
    justify-self: end;
    width: 22px;
    height: 22px;
    margin-left: 326px;
    pointer-events: none;
    background: currentColor;
    color: #050505;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-toolbar select {
    grid-column: 1;
    justify-self: start;
    width: 112px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    padding: 0;
    appearance: none;
    cursor: pointer;
}

.sfa-products-toolbar label {
    position: relative;
    grid-column: 1;
    justify-self: start;
    width: 112px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 34px 0 0;
    color: #050505;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.sfa-products-toolbar label input {
    display: none;
}

.sfa-products-toolbar label::after {
    content: "";
    position: absolute;
    right: 0;
    width: 23px;
    height: 23px;
    background: #050505;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5h16l-6.2 7.2v5.2l-3.6 1.8v-7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='1.9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5h16l-6.2 7.2v5.2l-3.6 1.8v-7L4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sfa-products-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.sfa-products-card {
    min-height: 202px;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #ffffff;
    padding: 22px 18px;
    box-shadow: none;
}

.sfa-products-card:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.sfa-products-card-grid {
    min-height: 158px;
    direction: ltr;
    grid-template-columns: 42% 1fr;
    gap: 24px;
    align-items: center;
}

.sfa-products-card-image {
    height: 158px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.sfa-products-card-image img {
    max-height: 154px;
}

.sfa-products-stock-state {
    top: 0;
    left: 0;
    right: auto;
    border-radius: 14px;
    background: #dcfce7;
    color: #14532d;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    z-index: 4;
}

.sfa-products-card-info {
    direction: rtl;
    align-items: flex-start;
    align-self: stretch;
    justify-content: center;
    text-align: right;
}

.sfa-products-card-info h2 {
    color: #050505;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
}

.sfa-products-card-info p {
    margin-top: 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
}

.sfa-products-card-info b {
    margin-top: 18px;
    color: #050505;
    font-size: 21px;
    font-weight: 900;
}

.sfa-products-card-info small {
    font-size: 15px;
    font-weight: 800;
}

.sfa-products-stock {
    display: none;
}

.sfa-products-cart-control {
    position: relative;
    z-index: 6;
    width: 146px;
    height: 46px;
    margin-top: 18px;
    border-color: #e5e7eb;
    border-radius: 14px;
    box-shadow: none;
}

.sfa-products-cart-control button {
    font-size: 24px;
}

.sfa-products-cart-control span {
    font-size: 21px;
    font-weight: 900;
}

.sfa-product-favorite-form {
    top: 10px;
    right: 10px;
    left: auto;
}

.sfa-product-favorite-button {
    width: 34px;
    height: 34px;
    border-color: #ececec;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.sfa-product-favorite-button svg {
    width: 18px;
    height: 18px;
}

.sfa-products-floating-cart {
    inset-inline: 32px;
    bottom: 30px;
    display: flex;
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    border-radius: 10px;
    background: #030b16;
    padding: 0 30px;
    font-size: 20px;
    box-shadow: 0 18px 32px rgba(3, 11, 22, 0.18);
}

.sfa-products-floating-cart[hidden] {
    display: none;
}

.sfa-products-floating-cart strong {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 900;
}

.sfa-products-floating-cart svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .sfa-products-page {
        padding-bottom: 112px;
    }

    .sfa-products-mobile-bar {
        height: 76px;
        padding: 0 20px;
        background: #ffffff;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
    }

    .sfa-products-mobile-bar a {
        width: 44px;
        height: 44px;
        color: #050505;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sfa-products-mobile-bar svg {
        width: 29px;
        height: 29px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .sfa-products-mobile-bar h1 {
        margin: 0;
        color: #050505;
        text-align: center;
        font-size: 20px;
        font-weight: 900;
    }

    .sfa-products-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 0;
    }

    .sfa-products-header {
        display: none;
    }

    .sfa-products-toolbar {
        display: none;
    }

    .sfa-products-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sfa-products-card {
        min-height: 177px;
        border-radius: 14px;
        padding: 14px 10px;
    }

    .sfa-products-card-grid {
        min-height: 148px;
        grid-template-columns: 52% 48%;
        gap: 0;
    }

    .sfa-products-card-image {
        height: 148px;
    }

    .sfa-products-card-image img {
        max-height: 144px;
    }

    .sfa-products-stock-state {
        top: 2px;
        left: 4px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .sfa-products-card-info {
        justify-content: flex-start;
        padding-top: 6px;
    }

    .sfa-products-card-info h2 {
        font-size: 18px;
        line-height: 1.45;
    }

    .sfa-products-card-info p {
        margin-top: 9px;
        font-size: 15px;
    }

    .sfa-products-card-info b {
        margin-top: 15px;
        font-size: 19px;
    }

    .sfa-products-card-info small {
        font-size: 14px;
    }

    .sfa-products-cart-control {
        width: 132px;
        height: 40px;
        margin-top: 12px;
        border-radius: 13px;
        grid-template-columns: 40px 1fr 40px;
    }

    .sfa-products-cart-control span {
        font-size: 19px;
    }

    .sfa-product-favorite-form {
        top: 48px;
        right: auto;
        left: 8px;
    }

    .sfa-product-favorite-button {
        width: 30px;
        height: 30px;
    }

    .sfa-products-floating-cart {
        inset-inline: 12px;
        bottom: 24px;
        height: 66px;
        border-radius: 11px;
        padding: 0 20px;
        font-size: 18px;
    }

    .sfa-products-floating-cart strong {
        font-size: 18px;
    }

    .sfa-products-floating-cart svg {
        width: 28px;
        height: 28px;
    }
}
.sfa-admin-catalog {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #f6f8fb;
    color: #111827;
}

.sfa-admin-catalog-main {
    min-width: 0;
    padding: 30px 32px 60px;
}

.sfa-admin-catalog-message {
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 8px;
    background: #e7f8ef;
    color: #047857;
    font-weight: 900;
}


.sfa-admin-catalog-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.sfa-admin-catalog-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-weight: 900;
    text-decoration: none;
}
.sfa-admin-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fff;
}

.sfa-admin-catalog-searchbox {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 0 12px;
    background: #f8fafc;
}

.sfa-admin-catalog-searchbox svg,
.sfa-admin-catalog-icon-form svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-admin-catalog-searchbox input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-weight: 750;
}

.sfa-admin-catalog-segment {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
}

.sfa-admin-catalog-segment button {
    min-height: 40px;
    border: 0;
    border-left: 1px solid #d7dee8;
    background: transparent;
    color: #475569;
    padding: 8px 13px;
    font-weight: 900;
    cursor: pointer;
}

.sfa-admin-catalog-segment button:last-child {
    border-left: 0;
}

.sfa-admin-catalog-segment button.is-active {
    background: #0b56b3;
    color: #fff;
}

.sfa-admin-catalog-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sfa-admin-catalog-stats article,
.sfa-admin-catalog-section {
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.sfa-admin-catalog-stats article {
    padding: 15px;
}

.sfa-admin-catalog-stats span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.sfa-admin-catalog-stats strong {
    display: block;
    margin-top: 7px;
    font-size: 26px;
    font-weight: 950;
}

.sfa-admin-catalog-section {
    margin-top: 14px;
    padding: 18px;
}

.sfa-admin-catalog-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.sfa-admin-catalog-section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.sfa-admin-catalog-section-head p {
    margin: 6px 0 0;
    color: #64748b;
}

.sfa-admin-catalog-section-head > span {
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 900;
}

.sfa-admin-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sfa-admin-catalog-grid.is-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sfa-admin-catalog-card {
    overflow: hidden;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fff;
}

.sfa-admin-catalog-card.is-hidden {
    background: #fbfcfe;
    opacity: 0.72;
}

.sfa-admin-catalog-card[hidden] {
    display: none;
}

.sfa-admin-catalog-image {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
    color: #64748b;
    font-weight: 950;
}

.sfa-admin-catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sfa-admin-catalog-icon-form {
    position: absolute;
    z-index: 3;
    margin: 0;
}

.sfa-admin-catalog-icon-form.is-image {
    top: 10px;
    left: 10px;
}

.sfa-admin-catalog-icon-form.is-visibility {
    top: 10px;
    right: 10px;
}

.sfa-admin-catalog-icon-form label,
.sfa-admin-catalog-icon-form button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.sfa-admin-catalog-card.is-hidden .sfa-admin-catalog-icon-form.is-visibility button {
    color: #b91c1c;
}

.sfa-admin-catalog-icon-form input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sfa-admin-catalog-info {
    padding: 12px;
}

.sfa-admin-catalog-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.sfa-admin-catalog-title-row h3 {
    margin: 0;
    min-width: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.45;
}

.sfa-admin-catalog-info p,
.sfa-admin-catalog-info small {
    display: block;
    overflow: hidden;
    margin: 0;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfa-admin-catalog-info small {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-badge.is-success {
    background: #dcfce7;
    color: #166534;
}

.sfa-admin-badge.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 1180px) {
    .sfa-admin-catalog-grid,
    .sfa-admin-catalog-grid.is-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {


    .sfa-admin-catalog-main {
        padding: 22px 14px 42px;
    }
    .sfa-admin-catalog-toolbar,
    .sfa-admin-catalog-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-admin-catalog-stats,
    .sfa-admin-catalog-grid,
    .sfa-admin-catalog-grid.is-products {
        grid-template-columns: 1fr;
    }
}
.sfa-admin-logs-page {
    min-height: 100vh;
    background: #f8fafc;
    color: #111827;
}

.sfa-admin-logs-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.sfa-admin-logs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.sfa-admin-logs-header p {
    margin: 0 0 8px;
    color: #047857;
    font-size: 14px;
    font-weight: 800;
}

.sfa-admin-logs-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
}

.sfa-admin-logs-header span {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

.sfa-admin-logs-header a {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 18px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    background: #fff;
}

.sfa-admin-logs-message {
    margin-bottom: 16px;
    border-radius: 14px;
    background: #fffbeb;
    color: #92400e;
    padding: 14px 16px;
    font-weight: 700;
}

.sfa-admin-logs-list {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.sfa-admin-logs-empty {
    padding: 34px;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}

.sfa-admin-log-card {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sfa-admin-log-card:last-child {
    border-bottom: 0;
}

.sfa-admin-log-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.sfa-admin-log-top strong {
    color: #0f172a;
}

.sfa-admin-log-top time {
    color: #64748b;
    font-size: 13px;
}

.sfa-admin-log-card p {
    margin: 10px 0 0;
    color: #334155;
    font-weight: 700;
}

.sfa-admin-log-card.is-error p {
    color: #b91c1c;
}

.sfa-admin-log-card pre {
    margin: 14px 0 0;
    overflow: auto;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    padding: 12px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .sfa-admin-logs-header,
    .sfa-admin-log-top {
        align-items: stretch;
        flex-direction: column;
    }
}

.sfa-store-options-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #f6f8fb;
    color: #121826;
}

.sfa-store-options-main {
    min-width: 0;
    padding: 30px 32px 60px;
}

.sfa-store-options-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.sfa-store-options-header p,
.sfa-store-options-panel-head p {
    margin: 0 0 5px;
    color: #0b6bcb;
    font-size: 13px;
    font-weight: 900;
}

.sfa-store-options-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
}

.sfa-store-options-header span {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

.sfa-store-options-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.sfa-store-options-status,
.sfa-store-options-panel-head > span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

.sfa-store-options-status.is-ready,
.sfa-store-options-panel-head > span.is-green {
    background: #e7f8ef;
    color: #047857;
}

.sfa-store-options-primary,
.sfa-store-options-secondary {
    min-height: 40px;
    border-radius: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.sfa-store-options-primary {
    background: #0b56b3;
    color: #fff;
}

.sfa-store-options-secondary {
    background: #fff;
    border-color: #d7dee8;
    color: #0f172a;
}

.sfa-store-options-secondary:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.sfa-store-options-alert {
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 8px;
    font-weight: 800;
}

.sfa-store-options-alert.is-success {
    background: #e7f8ef;
    color: #047857;
}

.sfa-store-options-alert.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.sfa-store-options-alert.is-warning {
    background: #fff7ed;
    color: #9a3412;
}

.sfa-store-options-alert.is-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.sfa-store-options-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.sfa-store-options-summary article,
.sfa-store-options-panel {
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.sfa-store-options-summary article {
    min-height: 104px;
    padding: 16px;
}

.sfa-store-options-summary span,
.sfa-store-options-sync-grid span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.sfa-store-options-summary strong {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfa-store-options-summary small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfa-store-options-panel {
    margin-top: 14px;
    padding: 20px;
    scroll-margin-top: 18px;
}

.sfa-store-options-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f6;
}

.sfa-store-options-panel-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.sfa-store-options-display-grid {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 20px;
}

.sfa-store-options-label,
.sfa-store-options-field label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.sfa-store-options-hero-upload {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #b8c4d4;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
}

.sfa-store-options-hero-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfa-store-options-hero-upload > span {
    font-size: 34px;
    font-weight: 950;
}

.sfa-store-options-hero-upload em {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    padding: 8px 11px;
    font-style: normal;
    font-weight: 900;
}

.sfa-store-options-hero-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sfa-store-options-fields {
    display: grid;
    align-content: start;
    gap: 12px;
}

.sfa-store-options-field input,
.sfa-store-options-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    padding: 9px 12px;
    font: inherit;
    font-weight: 750;
}

.sfa-store-options-field input + input {
    margin-top: 8px;
}

.sfa-store-options-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sfa-store-options-form-grid.is-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sfa-store-options-segment {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
}

.sfa-store-options-segment span,
.sfa-store-options-segment strong {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 9px 12px;
    font-size: 13px;
}

.sfa-store-options-segment span {
    color: #64748b;
}

.sfa-store-options-segment strong {
    background: #0b56b3;
    color: #fff;
}

.sfa-store-options-toggle {
    cursor: pointer;
    min-height: 70px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    background: #fbfcfe;
}

.sfa-store-options-toggle input {
    position: absolute;
    opacity: 0;
}

.sfa-store-options-toggle > span {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.18s ease;
}

.sfa-store-options-toggle > span::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.sfa-store-options-toggle input:checked + span {
    background: #0b56b3;
}

.sfa-store-options-toggle input:checked + span::after {
    transform: translateX(-20px);
}

.sfa-store-options-toggle strong,
.sfa-store-options-inline-action strong {
    display: block;
    color: #0f172a;
    font-weight: 950;
}

.sfa-store-options-toggle small,
.sfa-store-options-inline-action small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.sfa-store-options-switch-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.sfa-store-options-sync-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sfa-store-options-sync-grid div {
    padding: 15px;
    border-radius: 8px;
    background: #f8fafc;
}

.sfa-store-options-sync-grid strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
}

.sfa-store-options-inline-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.sfa-store-options-dev-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

.sfa-store-options-dev-form button {
    margin-top: 14px;
}

@media (max-width: 1100px) {
    .sfa-store-options-page {
        grid-template-columns: 1fr;
    }


    .sfa-store-options-display-grid,
    .sfa-store-options-summary,
    .sfa-store-options-form-grid,
    .sfa-store-options-form-grid.is-compact,
    .sfa-store-options-sync-grid,
    .sfa-store-options-switch-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sfa-store-options-main {
        padding: 20px 14px 42px;
    }

    .sfa-store-options-header,
    .sfa-store-options-panel-head,
    .sfa-store-options-inline-action {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-store-options-actions {
        justify-content: stretch;
    }

    .sfa-store-options-actions > * {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
/* Admin dashboard redesign */
.sfa-admin-area-body {
    background: #f3f6fa;
}

.sfa-admin-area-body .sfa-topbar,
.sfa-admin-area-body .sfa-mobile-nav,
.sfa-admin-area-body .sfa-floating-cart {
    display: none !important;
}

.sfa-admin-console {
    min-height: 100vh;
    background: #f3f6fa;
    color: #111827;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.sfa-admin-console svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-admin-topbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 46px;
    border-bottom: 1px solid #dbe3ee;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sfa-admin-topnav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.sfa-admin-topnav a,
.sfa-admin-menu-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: #475569;
    text-decoration: none;
    font-size: 16px;
    font-weight: 850;
    padding: 0 4px;
}

.sfa-admin-topnav a.is-active {
    color: #0b63ce;
    border-bottom: 3px solid #0b63ce;
}

.sfa-admin-menu-button {
    color: #263548;
    cursor: default;
}

.sfa-admin-connection {
    min-width: 105px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    border: 1px solid #c8ead5;
    background: #ecfdf3;
    color: #147a3b;
    font-size: 14px;
    font-weight: 900;
}

.sfa-admin-connection > span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.sfa-admin-connection.is-offline {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.sfa-admin-content {
    padding: 28px 36px 38px;
}

.sfa-admin-hero {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.sfa-admin-title-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eaf3ff;
    color: #0b63ce;
}

.sfa-admin-title-icon svg {
    width: 42px;
    height: 42px;
}

.sfa-admin-hero h1 {
    margin: 0;
    color: #0b1220;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 950;
}

.sfa-admin-hero p {
    margin: 8px 0 0;
    color: #5f6f84;
    font-size: 17px;
    font-weight: 750;
}

.sfa-admin-date-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 11px;
}

.sfa-admin-date-line span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe3ee;
    color: #475569;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.sfa-admin-kpi,
.sfa-admin-card {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.sfa-admin-kpi {
    min-height: 122px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
}

.sfa-admin-kpi p,
.sfa-admin-kpi strong,
.sfa-admin-kpi small {
    display: block;
    margin: 0;
    text-align: right;
}

.sfa-admin-kpi p {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.sfa-admin-kpi strong {
    margin-top: 6px;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.sfa-admin-kpi small {
    margin-top: 8px;
    color: #315b96;
    font-size: 13px;
    font-weight: 800;
}

.sfa-admin-kpi small.is-good {
    color: #12823f;
}

.sfa-admin-kpi small.is-wait {
    color: #c46a00;
}

.sfa-admin-kpi-icon,
.sfa-admin-operation-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
}

.sfa-admin-kpi-icon {
    width: 74px;
    height: 74px;
}

.sfa-admin-kpi-icon.is-blue { background: #eaf3ff; color: #0b63ce; }
.sfa-admin-kpi-icon.is-orange { background: #fff0e7; color: #ea5b13; }
.sfa-admin-kpi-icon.is-green { background: #eef9e9; color: #42a322; }
.sfa-admin-kpi-icon.is-yellow { background: #fff5dc; color: #e69a00; }

.sfa-admin-kpi-icon svg {
    width: 36px;
    height: 36px;
}

.sfa-admin-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.sfa-admin-side-stack {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
    gap: 22px;
    align-items: start;
}

.sfa-admin-latest-activity {
    grid-column: 2;
    grid-row: 1;
}

.sfa-admin-amin-posting {
    grid-column: 1;
    grid-row: 1;
}

.sfa-admin-system {
    grid-column: 2;
    grid-row: 2;
}

.sfa-admin-sync-status-card {
    grid-column: 1;
    grid-row: 2;
}

.sfa-admin-card {
    padding: 24px;
    min-width: 0;
}

.sfa-admin-card-title,
.sfa-admin-section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    color: #1f3553;
}

.sfa-admin-card-title h2,
.sfa-admin-section-head h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
}

.sfa-admin-card-title svg,
.sfa-admin-section-head svg {
    width: 24px;
    height: 24px;
}

.sfa-admin-timeline {
    display: grid;
    gap: 0;
}

.sfa-admin-timeline div {
    display: grid;
    grid-template-columns: 82px 28px minmax(0, 1fr);
    gap: 10px;
    min-height: 52px;
    align-items: start;
}

.sfa-admin-timeline time {
    padding-top: 2px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.sfa-admin-timeline span {
    position: relative;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 0 4px #eaf3ff;
}

.sfa-admin-timeline div:not(:last-child) span::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    width: 2px;
    height: 42px;
    background: #d8e1ed;
}

.sfa-admin-timeline div:nth-child(2n) span { background: #22a44f; box-shadow: 0 0 0 4px #e9f8ef; }
.sfa-admin-timeline div:nth-child(3n) span { background: #8b5cf6; box-shadow: 0 0 0 4px #f1eafe; }

.sfa-admin-timeline p {
    margin: 0;
    color: #263548;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

.sfa-admin-timeline small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.sfa-admin-amin-posting-list {
    display: grid;
    gap: 8px;
}

.sfa-admin-amin-posting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid #e8eef6;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
}

.sfa-admin-amin-posting-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.sfa-admin-amin-posting-item > span {
    min-width: 0;
}

.sfa-admin-amin-posting-item strong {
    display: block;
    color: #263548;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.sfa-admin-amin-posting-item small,
.sfa-admin-amin-posting-item em {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfa-admin-amin-posting-item em {
    color: #b91c1c;
}

.sfa-admin-amin-posting-item .sfa-admin-badge {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.sfa-admin-amin-posting-empty {
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}
.sfa-admin-orders-message,
.sfa-admin-order-success,
.sfa-admin-order-error,
.sfa-admin-catalog-message,
.sfa-admin-backup-alert,
.sfa-store-options-alert,
.alert {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}



.sfa-admin-dashboard-message {
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.sfa-admin-sync-status-card {
    padding-bottom: 14px;
}

.sfa-admin-sync-state {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 14px 42px 14px 14px;
    border: 1px solid #d7f0df;
    border-radius: 8px;
    background: #f0fdf4;
    color: #0f7b45;
    text-align: center;
}

.sfa-admin-sync-state strong {
    font-size: 15px;
    font-weight: 950;
}

.sfa-admin-sync-state small {
    font-size: 12px;
    font-weight: 800;
}

.sfa-admin-sync-state i {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 4px #dcfce7;
}

.sfa-admin-sync-state.is-offline {
    border-color: #fee2e2;
    background: #fef2f2;
    color: #b91c1c;
}

.sfa-admin-sync-state.is-offline i {
    background: #ef4444;
    box-shadow: 0 0 0 4px #fee2e2;
}

.sfa-admin-sync-facts {
    display: grid;
    margin: 10px 0 0;
}

.sfa-admin-sync-facts div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    border-bottom: 1px solid #e8eef6;
}

.sfa-admin-sync-facts dt,
.sfa-admin-sync-facts dd {
    margin: 0;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-sync-facts dt {
    color: #64748b;
}

.sfa-admin-sync-facts dd {
    min-width: 0;
    color: #334155;
    overflow-wrap: anywhere;
    text-align: left;
}

.sfa-admin-sync-facts dd.is-ok {
    color: #047857;
}

.sfa-admin-sync-facts dd.is-warn {
    color: #b45309;
}

.sfa-admin-sync-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.sfa-admin-sync-actions a,
.sfa-admin-sync-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid #d8e1ed;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.sfa-admin-sync-actions form {
    margin: 0;
}

.sfa-admin-sync-actions button {
    width: 100%;
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
    cursor: pointer;
}

.sfa-admin-sync-actions button:disabled {
    border-color: #cbd5e1;
    background: #e5e7eb;
    color: #64748b;
    cursor: not-allowed;
}

.sfa-admin-system dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.sfa-admin-system dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 39px;
    border-bottom: 1px solid #e8eef6;
}

.sfa-admin-system dt,
.sfa-admin-system dd {
    margin: 0;
    font-size: 14px;
    font-weight: 850;
}

.sfa-admin-system dt {
    color: #334155;
}

.sfa-admin-system dd {
    position: relative;
    color: #0f7b45;
    padding-right: 22px;
}

.sfa-admin-system dd::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: #22a44f;
}

.sfa-admin-system dd.is-warn {
    color: #b45309;
}

.sfa-admin-system dd.is-warn::before {
    background: #f59e0b;
}

.sfa-admin-storage {
    height: 6px;
    margin-top: 18px;
    border-radius: 999px;
    background: #dfe6ef;
    overflow: hidden;
}

.sfa-admin-storage span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #25b57a;
}

.sfa-admin-operations {
    padding: 24px 28px 28px;
}

.sfa-admin-section-head {
    justify-content: flex-start;
    margin-bottom: 22px;
}

.sfa-admin-section-head span {
    display: grid;
    place-items: center;
    color: #334155;
}

.sfa-admin-operation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sfa-admin-operation {
    position: relative;
    min-height: 218px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 28px 28px 24px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: #111827;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sfa-admin-operation:hover {
    border-color: #b9cef0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.sfa-admin-operation-icon {
    width: 58px;
    height: 58px;
    justify-self: end;
    border-radius: 14px;
}

.sfa-admin-operation-icon.is-blue { background: #eaf3ff; color: #0b63ce; }
.sfa-admin-operation-icon.is-purple { background: #f1dcff; color: #8b24d6; }
.sfa-admin-operation-icon.is-teal { background: #dff8f5; color: #159c91; }
.sfa-admin-operation-icon.is-orange { background: #fff1df; color: #d96800; }

.sfa-admin-operation strong {
    display: block;
    color: #111827;
    font-size: 21px;
    font-weight: 950;
    text-align: right;
}

.sfa-admin-operation p {
    max-width: 260px;
    margin: 0;
    color: #526176;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.7;
    text-align: right;
}

.sfa-admin-operation em {
    position: absolute;
    left: 24px;
    bottom: 24px;
    min-width: 54px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e7f8ec;
    color: #16813c;
    padding: 5px 11px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.sfa-admin-operation em.is-warn {
    background: #fff1df;
    color: #b45309;
}

.sfa-admin-operation b {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 38px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    color: #334155;
    font-size: 22px;
    font-weight: 500;
}

@media (max-width: 1250px) {
    .sfa-admin-kpi-row,
    .sfa-admin-operation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .sfa-admin-topbar {
        height: auto;
        align-items: flex-start;
        flex-direction: column-reverse;
        padding: 14px;
    }

    .sfa-admin-topnav {
        width: 100%;
        gap: 12px;
        overflow-x: auto;
    }

    .sfa-admin-content {
        padding: 18px 12px 28px;
    }

    .sfa-admin-hero {
        align-items: flex-start;
    }

    .sfa-admin-hero h1 {
        font-size: 28px;
    }

    .sfa-admin-kpi-row,
    .sfa-admin-operation-grid {
        grid-template-columns: 1fr;
    }

    .sfa-admin-kpi {
        padding: 18px;
    }

    .sfa-admin-timeline div {
        grid-template-columns: 74px 24px minmax(0, 1fr);
    }
}

/* Admin right sidebar 1:1 pass */
.sfa-admin-console {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    align-items: stretch;
    min-height: 100vh;
    background: #f3f6fa;
}

.sfa-admin-sidebar-menu {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #ffffff;
    border-left: 1px solid #dfe5ee;
    box-shadow: -8px 0 22px rgba(15, 23, 42, 0.025);
    z-index: 5;
}

.sfa-admin-sidebar-brand {
    min-height: 122px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid #e5ebf3;
    text-align: center;
}

.sfa-admin-brand-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    color: #0f2b5b;
}

.sfa-admin-brand-icon svg {
    width: 31px;
    height: 31px;
    stroke-width: 2.35;
}

.sfa-admin-sidebar-brand strong {
    color: #132345;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .2px;
}

.sfa-admin-sidebar-brand small {
    color: #18233c;
    font-size: 15px;
    font-weight: 700;
}

.sfa-admin-sidebar-nav {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px 16px;
    overflow-y: auto;
}

.sfa-admin-sidebar-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 7px;
    color: #1c2946;
    text-decoration: none;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.25;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.sfa-admin-sidebar-nav a svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: #16294f;
    stroke-width: 2;
}

.sfa-admin-sidebar-nav a span {
    min-width: 0;
    text-align: right;
    white-space: nowrap;
}

.sfa-admin-sidebar-nav a.is-active {
    background: linear-gradient(180deg, #115cea 0%, #0755e7 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(8, 91, 231, .24);
}

.sfa-admin-sidebar-nav a.is-active svg {
    color: #ffffff;
}

.sfa-admin-sidebar-nav a:not(.is-active):hover {
    background: #f3f7fd;
    color: #0755e7;
}

.sfa-admin-sidebar-nav a:not(.is-active):hover svg {
    color: #0755e7;
}

.sfa-admin-sidebar-logout {
    padding: 18px 16px 22px;
    border-top: 1px solid #e5ebf3;
}

.sfa-admin-sidebar-logout button {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 7px;
    background: #ffffff;
    color: #17223d;
    padding: 10px 13px;
    font-size: 15px;
    font-weight: 760;
    cursor: pointer;
}

.sfa-admin-sidebar-logout button:hover {
    background: #fff1f2;
    color: #b91c1c;
}

.sfa-admin-sidebar-logout svg {
    width: 22px;
    height: 22px;
}

.sfa-admin-content {
    min-width: 0;
    padding: 28px 36px 38px;
}

.sfa-admin-topbar {
    display: none !important;
}

@media (max-width: 980px) {
    .sfa-admin-console {
        grid-template-columns: 1fr;
    }

    .sfa-admin-sidebar-menu {
        position: relative;
        height: auto;
    }

    .sfa-admin-sidebar-nav {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sfa-admin-sidebar-logout {
        display: none;
    }
}

/* Admin dashboard header refinement */
.sfa-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding: 12px 0 6px;
}

.sfa-admin-hero-main {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.sfa-admin-title-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: #eaf3ff;
    color: #0b63ce;
    box-shadow: none;
}

.sfa-admin-title-icon svg {
    width: 38px;
    height: 38px;
    stroke-width: 2.15;
}

.sfa-admin-title-copy {
    min-width: 0;
    text-align: right;
}

.sfa-admin-hero h1 {
    margin: 0;
    color: #050b18;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.sfa-admin-hero p {
    margin: 9px 0 0;
    color: #536177;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.sfa-admin-date-line {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.sfa-admin-date-line span {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dfeb;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

.sfa-admin-hero-status {
    min-width: 214px;
    display: grid;
    justify-items: start;
    gap: 7px;
    padding: 12px 16px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.sfa-admin-hero-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #147a3b;
    font-size: 14px;
    font-weight: 950;
}

.sfa-admin-hero-status span.is-offline {
    color: #b91c1c;
}

.sfa-admin-hero-status i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

.sfa-admin-hero-status small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .sfa-admin-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-admin-hero-status {
        justify-items: end;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .sfa-admin-hero-main {
        align-items: flex-start;
    }

    .sfa-admin-title-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .sfa-admin-title-icon svg {
        width: 30px;
        height: 30px;
    }

    .sfa-admin-hero h1 {
        font-size: 30px;
    }

    .sfa-admin-hero p {
        font-size: 15px;
    }

    .sfa-admin-date-line {
        justify-content: flex-end;
    }

    .sfa-admin-date-line span {
        min-height: 34px;
        font-size: 12px;
        padding: 6px 11px;
    }
}

/* Admin top strip exact layout pass */
.sfa-admin-content {
    padding: 0 0 38px !important;
    background: #f3f6fa;
}

.sfa-admin-dashboard-topstrip {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px 0 26px;
    border-bottom: 1px solid #dfe5ee;
    background: #ffffff;
}

.sfa-admin-user-cluster {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
}

.sfa-admin-user-avatar,
.sfa-admin-icon-control,
.sfa-admin-square-chip {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #f8fafc;
    color: #132345;
}

.sfa-admin-user-avatar {
    border-radius: 999px;
    background: #f4f7fb;
}

.sfa-admin-user-avatar svg,
.sfa-admin-icon-control svg,
.sfa-admin-square-chip svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.sfa-admin-user-text {
    display: grid;
    gap: 3px;
    min-width: 92px;
    text-align: right;
}

.sfa-admin-user-text strong {
    color: #132345;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
}

.sfa-admin-user-text small {
    color: #66758b;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 750;
}

.sfa-admin-icon-control {
    position: relative;
    border: 0;
    background: transparent;
    color: #536177;
    cursor: default;
}

.sfa-admin-icon-control.has-badge i {
    position: absolute;
    top: -4px;
    left: -2px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ef334e;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
}

.sfa-admin-status-cluster {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 11px;
    direction: ltr;
}

.sfa-admin-square-chip {
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
}

.sfa-admin-status-cluster .sfa-admin-square-chip:first-child {
    border-color: #ccefdc;
    background: #ecfdf5;
    color: #179654;
}

.sfa-admin-sync-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #bfebd0;
    border-radius: 8px;
    background: #eafaf0;
    color: #16813c;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    direction: rtl;
}

.sfa-admin-sync-pill.is-offline {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.sfa-admin-sync-pill i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.sfa-admin-top-date,
.sfa-admin-top-time {
    color: #334155;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.sfa-admin-page-heading {
    min-height: 116px;
    display: grid;
    align-content: center;
    justify-items: end;
    padding: 18px 36px 20px;
    border-bottom: 1px solid #e8edf4;
    background: #f8fafc;
    text-align: right;
}

.sfa-admin-page-heading h1 {
    margin: 0;
    color: #071329;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.sfa-admin-page-heading p {
    margin: 10px 0 0;
    color: #5f6f84;
    font-size: 14px;
    font-weight: 800;
}

.sfa-admin-kpi-row,
.sfa-admin-layout-grid {
    margin-right: 36px;
    margin-left: 36px;
}

.sfa-admin-sidebar-brand {
    min-height: 187px !important;
    border-bottom-color: #dfe5ee;
}

.sfa-admin-brand-icon {
    width: 42px !important;
    height: 42px !important;
}

.sfa-admin-brand-icon svg {
    width: 38px !important;
    height: 38px !important;
}

.sfa-admin-sidebar-brand strong {
    font-size: 34px !important;
}

.sfa-admin-sidebar-brand small {
    margin-top: 3px;
    font-size: 15px !important;
    color: #17223d !important;
}

@media (max-width: 1120px) {
    .sfa-admin-status-cluster {
        position: static;
        transform: none;
        margin-inline-start: auto;
    }

    .sfa-admin-dashboard-topstrip {
        flex-wrap: wrap;
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 760px) {
    .sfa-admin-dashboard-topstrip {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sfa-admin-status-cluster {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .sfa-admin-page-heading {
        min-height: 92px;
        padding: 16px;
    }

    .sfa-admin-page-heading h1 {
        font-size: 28px;
    }

    .sfa-admin-kpi-row,
    .sfa-admin-layout-grid {
        margin-right: 12px;
        margin-left: 12px;
    }
}

/* Admin top strip direction fix */
.sfa-admin-dashboard-topstrip {
    display: grid !important;
    grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    gap: 18px;
    direction: rtl;
}

.sfa-admin-user-cluster {
    grid-column: 3;
    justify-self: end;
    direction: rtl;
}

.sfa-admin-status-cluster {
    grid-column: 2;
    position: static !important;
    left: auto !important;
    transform: none !important;
    justify-self: center;
    direction: rtl !important;
    display: flex;
    flex-direction: row;
}

.sfa-admin-status-cluster .sfa-admin-square-chip:first-child {
    order: 1;
}

.sfa-admin-sync-pill {
    order: 2;
    direction: rtl;
}

.sfa-admin-top-date {
    order: 3;
}

.sfa-admin-top-time {
    order: 4;
}

.sfa-admin-status-cluster .sfa-admin-square-chip:last-child {
    order: 5;
}

.sfa-admin-page-heading {
    justify-items: end;
    text-align: right;
    direction: rtl;
}

.sfa-admin-kpi-row,
.sfa-admin-layout-grid {
    direction: rtl;
}

@media (max-width: 1120px) {
    .sfa-admin-dashboard-topstrip {
        grid-template-columns: 1fr;
    }

    .sfa-admin-user-cluster,
    .sfa-admin-status-cluster {
        grid-column: 1;
    }

    .sfa-admin-user-cluster {
        justify-self: end;
    }

    .sfa-admin-status-cluster {
        justify-self: end;
    }
}

/* Admin sidebar drawer toggle */
.sfa-admin-console {
    transition: grid-template-columns .22s ease;
}

.sfa-admin-sidebar-menu {
    width: 252px;
    transition: transform .22s ease, box-shadow .22s ease;
    will-change: transform;
}

.sfa-admin-sidebar-toggle {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    grid-column: 1;
    justify-self: start;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #ffffff;
    color: #132345;
    cursor: pointer;
}

.sfa-admin-sidebar-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.sfa-admin-sidebar-toggle:hover {
    border-color: #b9cbe5;
    background: #f8fafc;
}

.sfa-admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .36);
    z-index: 40;
    cursor: pointer;
}

.sfa-admin-console.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-menu {
    transform: translateX(105%);
    pointer-events: none;
    box-shadow: none;
}

.sfa-admin-console.is-sidebar-collapsed .sfa-admin-dashboard-topstrip {
    border-right: 0;
}

@media (min-width: 981px) {
    .sfa-admin-console:not(.is-sidebar-collapsed) .sfa-admin-sidebar-menu {
        transform: translateX(0);
    }
}

@media (max-width: 980px) {
    .sfa-admin-console {
        grid-template-columns: 1fr !important;
    }

    .sfa-admin-sidebar-menu {
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh !important;
        transform: translateX(105%);
        z-index: 60;
        box-shadow: -18px 0 40px rgba(15, 23, 42, .18);
    }

    .sfa-admin-console.is-sidebar-open .sfa-admin-sidebar-menu {
        transform: translateX(0);
        pointer-events: auto;
    }

    .sfa-admin-console.is-sidebar-open .sfa-admin-sidebar-overlay {
        display: block;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-menu {
        pointer-events: auto;
    }

    .sfa-admin-sidebar-toggle {
        justify-self: end;
        grid-column: 1;
    }
}

/* Admin sidebar professional collapsed mode */
@media (min-width: 981px) {
    .sfa-admin-console {
        grid-template-columns: 260px minmax(0, 1fr) !important;
    }

    .sfa-admin-sidebar-menu {
        width: 260px !important;
        transform: none !important;
        pointer-events: auto !important;
        overflow: hidden;
    }

    .sfa-admin-console.is-sidebar-collapsed {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-menu {
        width: 72px !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .sfa-admin-sidebar-toggle {
        display: none !important;
    }

    .sfa-admin-sidebar-collapse {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 1px solid #dfe7f1;
        border-radius: 10px;
        background: #fff;
        color: #132345;
        cursor: pointer;
        z-index: 2;
    }

    .sfa-admin-sidebar-collapse svg {
        width: 20px;
        height: 20px;
    }

    .sfa-admin-sidebar-brand {
        position: relative;
        min-height: 150px !important;
        padding-top: 34px !important;
    }

    .sfa-admin-sidebar-group {
        display: grid;
        gap: 7px;
    }

    .sfa-admin-sidebar-group + .sfa-admin-sidebar-group {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #edf2f7;
    }

    .sfa-admin-sidebar-group > p {
        margin: 0 11px 3px;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 950;
        text-align: right;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand {
        min-height: 96px !important;
        padding: 46px 0 14px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand strong,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand small,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-group > p,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav a span,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav {
        padding: 12px 10px;
        gap: 6px;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-group {
        gap: 6px;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-group + .sfa-admin-sidebar-group {
        margin-top: 8px;
        padding-top: 8px;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav a,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout button {
        width: 52px;
        min-height: 46px;
        justify-content: center;
        padding: 10px;
        margin-inline: auto;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav a svg,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout svg {
        width: 23px;
        height: 23px;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-brand-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-brand-icon svg {
        width: 31px !important;
        height: 31px !important;
    }
}

@media (max-width: 980px) {
    .sfa-admin-sidebar-collapse {
        display: none !important;
    }

    .sfa-admin-sidebar-toggle {
        display: inline-grid !important;
    }

    .sfa-admin-sidebar-group > p {
        margin: 0 11px 3px;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 950;
        text-align: right;
    }
}

/* Admin typography system */
@font-face {
    font-family: "TajawalLocal";
    src: url("/fonts/tajawal/Tajawal-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TajawalLocal";
    src: url("/fonts/tajawal/Tajawal-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TajawalLocal";
    src: url("/fonts/tajawal/Tajawal-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TajawalLocal";
    src: url("/fonts/tajawal/Tajawal-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.sfa-admin-area-body,
.sfa-admin-console,
.sfa-admin-console button,
.sfa-admin-console input,
.sfa-admin-console select,
.sfa-admin-console textarea {
    font-family: "TajawalLocal", "Segoe UI", Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

.sfa-admin-console {
    font-weight: 500;
    color: #0f172a;
    background: #f6f8fb;
}

.sfa-admin-page-heading h1 {
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
}

.sfa-admin-page-heading p,
.sfa-admin-top-date,
.sfa-admin-top-time,
.sfa-admin-user-text small,
.sfa-admin-system dt,
.sfa-admin-timeline small,
.sfa-admin-operation p,
.sfa-admin-kpi small {
    color: #64748b;
    font-weight: 500 !important;
}

.sfa-admin-sidebar-nav a,
.sfa-admin-sidebar-logout button,
.sfa-admin-sync-pill,
.sfa-admin-user-text strong,
.sfa-admin-kpi p,
.sfa-admin-card-title h2,
.sfa-admin-section-head h2,
.sfa-admin-operation strong {
    font-weight: 700 !important;
}

.sfa-admin-kpi strong {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.sfa-admin-sidebar-nav a {
    font-size: 15px !important;
}

.sfa-admin-sidebar-group > p {
    font-size: 11px !important;
    font-weight: 800 !important;
}

.sfa-admin-card-title h2,
.sfa-admin-section-head h2 {
    font-size: 18px !important;
}

.sfa-admin-operation strong {
    font-size: 19px !important;
}

.sfa-admin-operation p,
.sfa-admin-timeline p,
.sfa-admin-system dt,
.sfa-admin-system dd {
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.sfa-admin-dashboard-topstrip,
.sfa-admin-page-heading,
.sfa-admin-kpi,
.sfa-admin-card,
.sfa-admin-sidebar-menu {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

/* Admin compact header final pass */
.sfa-admin-dashboard-topstrip {
    min-height: 56px !important;
    height: 56px !important;
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 0 20px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    direction: rtl !important;
}

.sfa-admin-topbar-title {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    min-width: 0;
}

.sfa-admin-topbar-title strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.sfa-admin-topbar-sync {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
}

.sfa-admin-topbar-account {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.sfa-admin-dashboard-topstrip .sfa-admin-sidebar-toggle {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-grid;
    grid-column: auto !important;
    justify-self: auto !important;
}

.sfa-admin-dashboard-topstrip .sfa-admin-sync-pill {
    min-height: 30px;
    padding: 5px 13px;
    font-size: 13px;
}

.sfa-admin-dashboard-topstrip .sfa-admin-top-time {
    min-width: 46px;
    color: #334155;
    font-size: 13px;
    font-weight: 800 !important;
    white-space: nowrap;
}

.sfa-admin-dashboard-topstrip .sfa-admin-user-avatar,
.sfa-admin-dashboard-topstrip .sfa-admin-icon-control {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.sfa-admin-dashboard-topstrip .sfa-admin-user-text {
    min-width: 82px;
}

.sfa-admin-dashboard-topstrip .sfa-admin-user-text strong {
    font-size: 13px;
    font-weight: 800 !important;
}

.sfa-admin-dashboard-topstrip .sfa-admin-user-text small {
    font-size: 11px;
}

.sfa-admin-page-heading {
    min-height: 86px !important;
    display: grid !important;
    align-content: center !important;
    justify-items: end !important;
    gap: 3px !important;
    padding: 14px 32px 15px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e8edf4 !important;
    text-align: right !important;
}

.sfa-admin-page-heading h1 {
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
}

.sfa-admin-page-heading p {
    margin: 0 !important;
    font-size: 13px !important;
}

.sfa-admin-page-heading small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.sfa-admin-sidebar-brand {
    min-height: 96px !important;
    padding: 18px 16px 14px !important;
    gap: 3px !important;
}

.sfa-admin-sidebar-collapse {
    top: 10px !important;
    left: 10px !important;
    width: 30px !important;
    height: 30px !important;
}

.sfa-admin-brand-icon {
    width: 32px !important;
    height: 32px !important;
}

.sfa-admin-brand-icon svg {
    width: 30px !important;
    height: 30px !important;
}

.sfa-admin-sidebar-brand strong {
    font-size: 26px !important;
    line-height: 1 !important;
}

.sfa-admin-sidebar-brand small {
    font-size: 12px !important;
    line-height: 1.1 !important;
}

.sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand {
    min-height: 72px !important;
    padding: 34px 0 8px !important;
}

.sfa-admin-kpi-row {
    margin-top: 22px !important;
}

@media (max-width: 1120px) {
    .sfa-admin-dashboard-topstrip {
        height: auto !important;
        min-height: 56px !important;
        grid-template-columns: 1fr !important;
        padding: 10px 14px !important;
    }

    .sfa-admin-topbar-title,
    .sfa-admin-topbar-sync,
    .sfa-admin-topbar-account {
        grid-column: 1 !important;
        justify-self: stretch !important;
    }

    .sfa-admin-topbar-title,
    .sfa-admin-topbar-account {
        justify-content: flex-end;
    }

    .sfa-admin-topbar-sync {
        justify-content: flex-end;
    }
}

/* Admin topbar date/time image-aligned pass */
.sfa-admin-topbar-sync {
    display: none !important;
}

.sfa-admin-topbar-center {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    direction: rtl;
    white-space: nowrap;
}

.sfa-admin-topbar-center .sfa-admin-sync-pill {
    order: 1;
}

.sfa-admin-topbar-center .sfa-admin-top-date {
    order: 2;
    color: #334155;
    font-size: 13px;
    font-weight: 700 !important;
}

.sfa-admin-topbar-center .sfa-admin-top-time {
    order: 3;
    min-width: auto;
    color: #334155;
    font-size: 13px;
    font-weight: 800 !important;
}

.sfa-admin-calendar-chip {
    order: 4;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    flex: 0 0 auto;
}

.sfa-admin-calendar-chip svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.sfa-admin-topbar-account .sfa-admin-top-time {
    display: none !important;
}

.sfa-admin-page-heading {
    min-height: 78px !important;
}

@media (max-width: 1120px) {
    .sfa-admin-topbar-center {
        grid-column: 1 !important;
        justify-self: end !important;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 620px) {
    .sfa-admin-topbar-center .sfa-admin-top-date {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Admin header/sidebar alignment final override */
.sfa-admin-page-heading {
    justify-items: end !important;
    text-align: right !important;
    padding-right: 32px !important;
    padding-left: 32px !important;
}

.sfa-admin-page-heading h1,
.sfa-admin-page-heading p {
    width: 100% !important;
    text-align: right !important;
}

.sfa-admin-page-heading small {
    display: none !important;
}

.sfa-admin-sidebar-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.sfa-admin-brand-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    direction: ltr !important;
    line-height: 1 !important;
}

.sfa-admin-brand-row .sfa-admin-brand-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 auto !important;
}

.sfa-admin-brand-row strong {
    line-height: 1 !important;
}

.sfa-admin-sidebar-brand > small {
    margin-top: 7px !important;
}

.sfa-admin-console.is-sidebar-collapsed .sfa-admin-brand-row {
    gap: 0 !important;
}

.sfa-admin-console.is-sidebar-collapsed .sfa-admin-brand-row strong,
.sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand > small {
    display: none !important;
}

/* Admin sidebar brand compact spacing */
.sfa-admin-sidebar-brand {
    min-height: 72px !important;
    height: 72px !important;
    padding: 10px 14px !important;
    gap: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.sfa-admin-brand-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    direction: ltr !important;
    line-height: 1 !important;
}

.sfa-admin-brand-row .sfa-admin-brand-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 auto !important;
}

.sfa-admin-brand-row .sfa-admin-brand-icon svg {
    width: 27px !important;
    height: 27px !important;
}

.sfa-admin-brand-row strong {
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.sfa-admin-sidebar-brand > small {
    margin-top: 2px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

.sfa-admin-sidebar-collapse {
    top: 8px !important;
    left: 8px !important;
    width: 28px !important;
    height: 28px !important;
}

@media (min-width: 981px) {
    .sfa-admin-sidebar-brand {
        min-height: 78px !important;
        height: 78px !important;
        padding: 12px 14px 10px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand {
        min-height: 72px !important;
        height: 72px !important;
        padding: 34px 0 8px !important;
    }
}

/* Admin sidebar brand align with topbar baseline */
.sfa-admin-sidebar-brand {
    min-height: 56px !important;
    height: 56px !important;
    padding: 6px 12px !important;
    gap: 1px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.sfa-admin-brand-row {
    gap: 7px !important;
    line-height: 1 !important;
}

.sfa-admin-brand-row .sfa-admin-brand-icon {
    width: 23px !important;
    height: 23px !important;
}

.sfa-admin-brand-row .sfa-admin-brand-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.sfa-admin-brand-row strong {
    font-size: 24px !important;
    line-height: 1 !important;
}

.sfa-admin-sidebar-brand > small {
    margin-top: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.05 !important;
}

.sfa-admin-sidebar-collapse {
    top: 5px !important;
    left: 6px !important;
    width: 26px !important;
    height: 26px !important;
}

@media (min-width: 981px) {
    .sfa-admin-sidebar-brand {
        min-height: 56px !important;
        height: 56px !important;
        padding: 6px 12px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-brand {
        min-height: 56px !important;
        height: 56px !important;
        padding: 15px 0 6px !important;
    }
}

/* Admin sidebar logout compact spacing */
.sfa-admin-sidebar-logout {
    padding: 0 10px 8px !important;
    margin: 0 !important;
    border-top: 1px solid #e5ebf3 !important;
}

.sfa-admin-sidebar-logout button {
    min-height: 34px !important;
    height: 34px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

.sfa-admin-sidebar-logout svg {
    width: 17px !important;
    height: 17px !important;
}

.sfa-admin-sidebar-nav {
    padding-bottom: 8px !important;
}

@media (min-width: 981px) {
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout {
        padding: 0 8px 8px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout button {
        width: 42px !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 7px !important;
    }
}

/* Admin sidebar dense navigation fit */
.sfa-admin-sidebar-menu {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.sfa-admin-sidebar-nav {
    gap: 6px !important;
    padding: 8px 10px 6px !important;
    overflow-y: auto !important;
}

.sfa-admin-sidebar-group {
    gap: 4px !important;
}

.sfa-admin-sidebar-group + .sfa-admin-sidebar-group {
    margin-top: 6px !important;
    padding-top: 6px !important;
}

.sfa-admin-sidebar-group > p {
    margin: 0 8px 2px !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
}

.sfa-admin-sidebar-nav a {
    min-height: 31px !important;
    height: 31px !important;
    padding: 5px 9px !important;
    gap: 8px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.sfa-admin-sidebar-nav a svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 auto !important;
}

.sfa-admin-sidebar-nav a span {
    line-height: 1 !important;
    white-space: nowrap !important;
}

.sfa-admin-sidebar-logout {
    padding: 0 10px 6px !important;
}

.sfa-admin-sidebar-logout button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
}

.sfa-admin-sidebar-logout svg {
    width: 16px !important;
    height: 16px !important;
}

@media (min-width: 981px) {
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav {
        padding: 8px 8px 6px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav a,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout button {
        width: 40px !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 6px !important;
    }
}

/* Admin sidebar professional navigation system */
.sfa-admin-sidebar-menu {
    background: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
}

.sfa-admin-sidebar-nav {
    display: block !important;
    padding: 10px 10px 8px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.sfa-admin-sidebar-group {
    display: grid !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sfa-admin-sidebar-group + .sfa-admin-sidebar-group {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #eef2f7 !important;
}

.sfa-admin-sidebar-group > p {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.sfa-admin-sidebar-nav a {
    min-height: 36px !important;
    height: 36px !important;
    display: grid !important;
    grid-template-columns: 1fr 22px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    color: #17223d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.sfa-admin-sidebar-nav a span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: right !important;
}

.sfa-admin-sidebar-nav a svg {
    width: 19px !important;
    height: 19px !important;
    justify-self: center !important;
    color: #243653 !important;
    stroke-width: 2 !important;
}

.sfa-admin-sidebar-nav a.is-active {
    background: linear-gradient(135deg, #0d63f3, #0b4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(13, 99, 243, .18) !important;
}

.sfa-admin-sidebar-nav a.is-active svg {
    color: #ffffff !important;
}

.sfa-admin-sidebar-nav a:not(.is-active):hover {
    background: #f4f7fb !important;
    color: #0b4ed8 !important;
}

.sfa-admin-sidebar-logout {
    padding: 6px 10px 8px !important;
    margin: 0 !important;
    border-top: 1px solid #eef2f7 !important;
}

.sfa-admin-sidebar-logout button {
    min-height: 34px !important;
    height: 34px !important;
    display: grid !important;
    grid-template-columns: 1fr 20px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

.sfa-admin-sidebar-logout button span {
    text-align: right !important;
    white-space: nowrap !important;
}

.sfa-admin-sidebar-logout svg {
    width: 17px !important;
    height: 17px !important;
    justify-self: center !important;
}

.sfa-admin-sidebar-logout button:hover {
    background: #fff1f2 !important;
    color: #b91c1c !important;
}

@media (min-width: 981px) {
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav {
        padding: 8px 8px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-group + .sfa-admin-sidebar-group {
        margin-top: 7px !important;
        padding-top: 7px !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav a,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout button {
        width: 42px !important;
        height: 36px !important;
        min-height: 36px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        place-items: center !important;
        padding: 0 !important;
        margin-inline: auto !important;
    }

    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-nav a span,
    .sfa-admin-console.is-sidebar-collapsed .sfa-admin-sidebar-logout span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
    }
}




.sfa-admin-workflow-map {
    margin: 0 0 16px;
}

.sfa-admin-workflow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sfa-admin-workflow-head h2,
.sfa-admin-workflow-head p {
    margin: 0;
}

.sfa-admin-workflow-head h2 {
    color: #111827;
    font-size: 18px;
    font-weight: 950;
}

.sfa-admin-workflow-head p {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sfa-admin-workflow-head a {
    padding: 8px 11px;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.sfa-admin-workflow-steps {
    display: grid;
    grid-template-columns: repeat(var(--stage-count), minmax(96px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 4px;
}

.sfa-admin-workflow-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 96px;
    color: #334155;
    text-decoration: none;
}

.sfa-admin-workflow-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 25px;
    right: calc(-50% + 28px);
    width: calc(100% - 48px);
    border-top: 2px dashed #cbd5e1;
}

.sfa-admin-workflow-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    box-shadow: 0 0 0 5px #ffffff, 0 0 0 7px #e5e7eb;
}

.sfa-admin-workflow-node svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sfa-admin-workflow-node.is-blue { background: #eff6ff; color: #1d4ed8; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #bfdbfe; }
.sfa-admin-workflow-node.is-amber { background: #fffbeb; color: #b45309; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #fde68a; }
.sfa-admin-workflow-node.is-purple { background: #faf5ff; color: #7e22ce; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #e9d5ff; }
.sfa-admin-workflow-node.is-cyan { background: #ecfeff; color: #0e7490; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #a5f3fc; }
.sfa-admin-workflow-node.is-indigo { background: #eef2ff; color: #4338ca; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #c7d2fe; }
.sfa-admin-workflow-node.is-green { background: #ecfdf5; color: #047857; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #bbf7d0; }
.sfa-admin-workflow-node.is-red { background: #fef2f2; color: #b91c1c; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #fecaca; }

.sfa-admin-workflow-step strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
}

.sfa-admin-workflow-step small {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.sfa-admin-stage-page {
    min-height: 100vh;
    padding: 22px;
    background: #f5f7fb;
}

.sfa-admin-stage-shell {
    display: grid;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
}

.sfa-admin-stage-editor h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 950;
}

.sfa-admin-stage-editor form,
.sfa-admin-stage-card form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sfa-admin-stage-editor label,
.sfa-admin-stage-card label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-stage-editor input,
.sfa-admin-stage-editor select,
.sfa-admin-stage-card input,
.sfa-admin-stage-card select {
    min-height: 36px;
    border: 1px solid #d8e1ed;
    border-radius: 7px;
    padding: 7px 9px;
    font: inherit;
}

.sfa-admin-stage-check {
    display: flex !important;
    align-items: center;
    grid-template-columns: none !important;
    gap: 8px !important;
}

.sfa-admin-stage-check input {
    min-height: auto;
}

.sfa-admin-stage-editor button,
.sfa-admin-stage-card button {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.sfa-admin-stage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.sfa-admin-stage-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sfa-admin-stage-card-head small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .sfa-admin-stage-editor form,
    .sfa-admin-stage-card form {
        grid-template-columns: 1fr;
    }
}

.sfa-admin-password-panel {
    max-width: 760px;
    margin: 32px auto;
}

.sfa-admin-password-facts {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.sfa-admin-password-facts div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sfa-admin-password-facts dt {
    color: #64748b;
}

.sfa-admin-password-facts dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sfa-admin-password-form {
    display: grid;
    gap: 14px;
}

.sfa-admin-password-form label {
    display: grid;
    gap: 7px;
}

.sfa-admin-password-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
}

.sfa-admin-dashboard-message.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.sfa-admin-account-menu {
    position: relative;
}

.sfa-admin-account-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.sfa-admin-account-menu summary::-webkit-details-marker {
    display: none;
}

.sfa-admin-account-menu summary:hover,
.sfa-admin-account-menu[open] summary {
    background: #f1f5f9;
}

.sfa-admin-account-caret {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
    transition: transform .15s ease;
}

.sfa-admin-account-menu[open] .sfa-admin-account-caret {
    transform: rotate(180deg);
}

.sfa-admin-account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    width: min(280px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.sfa-admin-account-dropdown-head {
    display: grid;
    gap: 2px;
    padding: 9px 10px 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.sfa-admin-account-dropdown-head strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.sfa-admin-account-dropdown-head small {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.sfa-admin-account-dropdown a,
.sfa-admin-account-dropdown button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
}

.sfa-admin-account-dropdown a:hover,
.sfa-admin-account-dropdown button:hover {
    background: #f8fafc;
    color: #0f172a;
}

.sfa-admin-account-dropdown svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sfa-admin-account-dropdown form {
    margin: 0;
}

@media (max-width: 720px) {
    .sfa-admin-account-dropdown {
        left: auto;
        right: 0;
    }
}

.sfa-admin-latest-activity {
    overflow: hidden;
}

.sfa-admin-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sfa-admin-activity-head > a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    color: #1e3a8a;
    background: #ffffff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.sfa-admin-activity-table-wrap {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.sfa-admin-activity-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.sfa-admin-activity-table th,
.sfa-admin-activity-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #334155;
    font-size: 12px;
}

.sfa-admin-activity-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 900;
}

.sfa-admin-activity-table th:nth-child(1),
.sfa-admin-activity-table td:nth-child(1) { width: 64px; }
.sfa-admin-activity-table th:nth-child(2),
.sfa-admin-activity-table td:nth-child(2) { width: 82px; }
.sfa-admin-activity-table th:nth-child(4),
.sfa-admin-activity-table td:nth-child(4) { width: 96px; }

.sfa-admin-activity-table tr:last-child td {
    border-bottom: 0;
}

.sfa-admin-activity-table time {
    color: #475569;
    font-weight: 850;
    white-space: nowrap;
}

.sfa-admin-activity-table p {
    margin: 0;
    color: #334155;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sfa-admin-activity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.sfa-admin-activity-badge.is-green { background: #dcfce7; color: #15803d; }
.sfa-admin-activity-badge.is-blue { background: #dbeafe; color: #1d4ed8; }
.sfa-admin-activity-badge.is-amber { background: #fef3c7; color: #b45309; }
.sfa-admin-activity-badge.is-cyan { background: #cffafe; color: #0e7490; }
.sfa-admin-activity-badge.is-purple { background: #f3e8ff; color: #7e22ce; }
.sfa-admin-activity-badge.is-red { background: #fee2e2; color: #b91c1c; }
.sfa-admin-activity-badge.is-gray { background: #f1f5f9; color: #475569; }

.sfa-admin-activity-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: #475569;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: anywhere;
}

.sfa-admin-activity-user svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.sfa-admin-activity-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 980px) {
    .sfa-admin-side-stack {
        grid-template-columns: 1fr;
    }

    .sfa-admin-latest-activity,
    .sfa-admin-amin-posting,
    .sfa-admin-system,
    .sfa-admin-sync-status-card {
    grid-column: 1;
    grid-row: 2;
}
}
@media (max-width: 720px) {
    .sfa-admin-activity-head {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sfa-admin-activity-head > a {
        width: 100%;
    }

    .sfa-admin-activity-table {
        min-width: 0;
    }

    .sfa-admin-activity-table thead {
        display: none;
    }

    .sfa-admin-activity-table,
    .sfa-admin-activity-table tbody,
    .sfa-admin-activity-table tr,
    .sfa-admin-activity-table td {
        display: block;
        width: 100% !important;
    }

    .sfa-admin-activity-table tr {
        padding: 9px 10px;
        border-bottom: 1px solid #eef2f7;
    }

    .sfa-admin-activity-table td {
        padding: 4px 0;
        border-bottom: 0;
    }
}

.sfa-admin-logs-filters {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.sfa-admin-logs-filters label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-logs-filters input,
.sfa-admin-logs-filters select {
    min-height: 38px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    padding: 7px 9px;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.sfa-admin-logs-filter-actions {
    display: flex;
    gap: 8px;
}

.sfa-admin-logs-filter-actions button,
.sfa-admin-logs-filter-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.sfa-admin-logs-filter-actions button {
    border: 0;
    background: #1d4ed8;
    color: #ffffff;
}

.sfa-admin-logs-filter-actions a {
    border: 1px solid #dbe4ef;
    color: #334155;
    background: #ffffff;
}

.sfa-admin-logs-table-card {
    margin-top: 14px;
}

.sfa-admin-logs-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-weight: 800;
}

.sfa-admin-logs-summary strong {
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
}

.sfa-admin-logs-table {
    min-width: 860px;
}

.sfa-admin-logs-table th:nth-child(1),
.sfa-admin-logs-table td:nth-child(1) { width: 130px; }
.sfa-admin-logs-table th:nth-child(2),
.sfa-admin-logs-table td:nth-child(2) { width: 90px; }
.sfa-admin-logs-table th:nth-child(3),
.sfa-admin-logs-table td:nth-child(3) { width: 160px; }
.sfa-admin-logs-table th:nth-child(5),
.sfa-admin-logs-table td:nth-child(5) { width: 110px; }

.sfa-admin-logs-table code {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 6px;
    color: #334155;
    background: #f1f5f9;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.sfa-admin-log-metadata summary {
    cursor: pointer;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.sfa-admin-log-metadata pre {
    max-width: 420px;
    max-height: 180px;
    overflow: auto;
    margin: 8px 0 0;
    padding: 8px;
    border-radius: 7px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
    white-space: pre-wrap;
}

.sfa-admin-muted {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 750;
}

.sfa-admin-logs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.sfa-admin-logs-pagination a,
.sfa-admin-logs-pagination span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}

.sfa-admin-logs-pagination a {
    border: 1px solid #dbe4ef;
    color: #1d4ed8;
    text-decoration: none;
    background: #ffffff;
}

.sfa-admin-logs-pagination a.is-disabled {
    pointer-events: none;
    color: #94a3b8;
    background: #f8fafc;
}

@media (max-width: 1020px) {
    .sfa-admin-logs-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-logs-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .sfa-admin-logs-filters {
        grid-template-columns: 1fr;
    }
}








/* Professional orders operations page */
.sfa-admin-orders-page {
    background: #f6f8fb;
    color: #0f172a;
}

.sfa-admin-orders-shell {
    max-width: 1420px;
}

.sfa-admin-orders-hero {
    align-items: center;
    min-height: 112px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.sfa-admin-orders-hero p {
    color: #64748b;
    font-size: 13px;
}

.sfa-admin-orders-hero h1 {
    margin: 6px 0;
    color: #0f172a;
    font-size: 32px;
}

.sfa-admin-orders-hero span {
    color: #475569;
}

.sfa-admin-orders-hero a {
    min-height: 38px;
    border-radius: 7px;
    padding: 0 14px;
    font-size: 13px;
}

.sfa-admin-order-stats-pro {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sfa-admin-order-stats-pro div {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 17px;
    box-shadow: none;
}

.sfa-admin-order-stats-pro div::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #94a3b8;
}

.sfa-admin-order-stats-pro .is-blue::before { background: #2563eb; }
.sfa-admin-order-stats-pro .is-amber::before { background: #d97706; }
.sfa-admin-order-stats-pro .is-red::before { background: #dc2626; }
.sfa-admin-order-stats-pro .is-green::before { background: #16a34a; }

.sfa-admin-order-stats-pro span {
    color: #64748b;
    font-size: 12px;
}

.sfa-admin-order-stats-pro strong {
    margin-top: 6px;
    color: #0f172a;
    font-size: 28px;
}

.sfa-admin-order-stats-pro small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.sfa-admin-order-filter-pro {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .8fr) minmax(190px, .9fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.sfa-admin-order-filter-pro label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.sfa-admin-order-filter-pro input,
.sfa-admin-order-filter-pro select {
    min-height: 38px;
    border-radius: 7px;
    font-size: 13px;
}

.sfa-admin-order-filter-actions {
    display: flex;
    gap: 8px;
}

.sfa-admin-order-filter-actions button,
.sfa-admin-order-filter-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.sfa-admin-order-filter-actions button {
    border: 0;
    background: #1d4ed8;
    color: #ffffff;
}

.sfa-admin-order-filter-actions a {
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #334155;
}

.sfa-admin-orders-table-card-pro {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
}

.sfa-admin-orders-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.sfa-admin-orders-card-head h2,
.sfa-admin-orders-card-head p {
    margin: 0;
}

.sfa-admin-orders-card-head h2 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.sfa-admin-orders-card-head p {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-bulk-toolbar-pro {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 0;
    padding: 0;
}

.sfa-admin-bulk-toolbar-pro select {
    min-height: 36px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    padding: 0 10px;
    color: #0f172a;
    font-weight: 850;
}

.sfa-admin-bulk-toolbar-pro .sfa-admin-bulk-approve {
    min-height: 36px;
    border-radius: 7px;
    background: #1d4ed8;
    padding: 0 13px;
    font-size: 12px;
}

.sfa-admin-orders-table-pro {
    min-width: 1080px;
    font-size: 13px;
}

.sfa-admin-orders-table-pro th {
    background: #f8fafc;
    color: #475569;
    padding: 11px 12px;
    font-size: 12px;
}

.sfa-admin-orders-table-pro td {
    padding: 12px;
    vertical-align: middle;
}

.sfa-admin-orders-table-pro tbody tr:hover {
    background: #f8fbff;
}

.sfa-admin-order-number strong,
.sfa-admin-order-customer strong {
    display: block;
    color: #0f172a;
    font-weight: 950;
}

.sfa-admin-order-number small,
.sfa-admin-order-customer small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.sfa-admin-order-money {
    color: #0f172a !important;
    font-weight: 950 !important;
    white-space: nowrap;
}

.sfa-admin-order-inline-error {
    display: block;
    max-width: 220px;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sfa-admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sfa-admin-order-open,
.sfa-admin-order-secondary {
    min-height: 32px;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12px;
}

.sfa-admin-order-open {
    background: #0f172a;
}

.sfa-admin-order-secondary {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
}

.sfa-admin-badge {
    border-radius: 7px;
    padding: 5px 8px;
}

.sfa-admin-order-side form[action*="AdminAminPosting"] button {
    background: #047857;
}

@media (max-width: 1120px) {
    .sfa-admin-order-stats-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-order-filter-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-order-filter-actions {
        grid-column: 1 / -1;
    }

    .sfa-admin-orders-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-admin-bulk-toolbar-pro {
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .sfa-admin-orders-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-admin-order-stats-pro,
    .sfa-admin-order-filter-pro {
        grid-template-columns: 1fr;
    }
}

/* Orders page visual match - reference v1 */
.sfa-admin-orders-page-v2 {
    min-height: 100vh;
    padding: 24px;
    background: #f8fafc;
    color: #111827;
}

.sfa-admin-orders-shell-v2 {
    width: min(100%, 1540px);
    max-width: none;
    margin: 0 auto;
}

.sfa-admin-orders-header-v2 {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.sfa-admin-orders-title-v2 {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.sfa-admin-orders-title-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eef4ff;
    color: #1455d9;
}

.sfa-admin-orders-title-icon svg,
.sfa-admin-stat-icon svg,
.sfa-admin-orders-actions-v2 svg,
.sfa-admin-order-filter-v2 svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-admin-orders-title-v2 h1 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: 0;
}

.sfa-admin-orders-title-v2 p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 15px;
    font-weight: 750;
}

.sfa-admin-orders-actions-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfa-admin-orders-actions-v2 a {
    min-height: 52px;
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d9e2ef;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .03);
}

.sfa-admin-orders-actions-v2 a.is-primary {
    border-color: #155eef;
    background: #155eef;
    color: #ffffff;
}

.sfa-admin-order-stats-v2 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.sfa-admin-order-stats-v2 > div {
    position: relative;
    min-height: 132px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.sfa-admin-order-stats-v2 > div::before {
    display: none;
}

.sfa-admin-stat-icon {
    grid-row: 1 / 4;
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: #eef4ff;
    color: #155eef;
}

.sfa-admin-order-stats-v2 .is-total .sfa-admin-stat-icon { background: #eef2ff; color: #4f46e5; }
.sfa-admin-order-stats-v2 .is-blue .sfa-admin-stat-icon { background: #eef4ff; color: #155eef; }
.sfa-admin-order-stats-v2 .is-amber .sfa-admin-stat-icon { background: #fff7e6; color: #d97706; }
.sfa-admin-order-stats-v2 .is-red .sfa-admin-stat-icon { background: #fff1f2; color: #dc2626; }
.sfa-admin-order-stats-v2 .is-green .sfa-admin-stat-icon { background: #eafaf0; color: #16a34a; }

.sfa-admin-order-stats-v2 p {
    margin: 0;
    color: #374151;
    font-size: 15px;
    font-weight: 850;
}

.sfa-admin-order-stats-v2 strong {
    display: block;
    margin: 5px 0 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.sfa-admin-order-stats-v2 small {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.sfa-admin-order-stats-v2 i {
    position: absolute;
    left: 24px;
    bottom: 13px;
    width: 56px;
    height: 14px;
    border-bottom: 2px solid currentColor;
    border-radius: 50%;
    opacity: .8;
}

.sfa-admin-order-stats-v2 .is-blue i,
.sfa-admin-order-stats-v2 .is-total i { color: #155eef; }
.sfa-admin-order-stats-v2 .is-amber i { color: #f59e0b; }
.sfa-admin-order-stats-v2 .is-red i { color: #ef4444; }
.sfa-admin-order-stats-v2 .is-green i { color: #16a34a; }

.sfa-admin-order-filter-v2 {
    display: grid;
    grid-template-columns: minmax(320px, 1.8fr) minmax(150px, .72fr) minmax(170px, .78fr) minmax(150px, .68fr) minmax(150px, .68fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.sfa-admin-order-filter-v2 label {
    position: relative;
    display: grid;
    gap: 7px;
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.sfa-admin-order-filter-v2 input,
.sfa-admin-order-filter-v2 select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e2ef;
    border-radius: 7px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.sfa-admin-order-filter-v2 .is-search input {
    padding-inline-start: 42px;
}

.sfa-admin-order-filter-v2 .is-search svg {
    position: absolute;
    left: 13px;
    bottom: 11px;
    width: 21px;
    height: 21px;
    color: #64748b;
}

.sfa-admin-order-filter-buttons-v2 {
    display: flex;
    gap: 10px;
}

.sfa-admin-order-filter-buttons-v2 button,
.sfa-admin-order-filter-buttons-v2 a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.sfa-admin-order-filter-buttons-v2 button {
    border: 0;
    background: #155eef;
    color: #ffffff;
}

.sfa-admin-order-filter-buttons-v2 a {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #334155;
}

.sfa-admin-orders-table-card-v2 {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.sfa-admin-bulk-toolbar-v2 {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.sfa-admin-bulk-toolbar-v2 select {
    width: 260px;
    min-height: 44px;
    border: 1px solid #d9e2ef;
    border-radius: 7px;
    padding: 0 12px;
    color: #0f172a;
    font-weight: 850;
}

.sfa-admin-bulk-toolbar-v2 .sfa-admin-bulk-approve {
    min-height: 44px;
    border-radius: 7px;
    background: #155eef;
    padding: 0 18px;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(21, 94, 239, .18);
}

.sfa-admin-orders-table-wrap {
    overflow-x: auto;
}

.sfa-admin-orders-table-v2 {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.sfa-admin-orders-table-v2 th {
    height: 52px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 900;
}

.sfa-admin-orders-table-v2 td {
    min-height: 58px;
    border-top: 1px solid #eef2f7;
    color: #1e293b;
    padding: 13px 16px;
    vertical-align: middle;
    font-weight: 800;
}

.sfa-admin-orders-table-v2 tbody tr:hover {
    background: #f8fbff;
}

.sfa-admin-orders-table-v2 tbody tr.has-error {
    background: #fff7f7;
}

.sfa-admin-order-number strong {
    color: #155eef;
    font-weight: 950;
}

.sfa-admin-order-customer strong {
    color: #0f172a;
    font-weight: 850;
}

.sfa-admin-order-money {
    color: #0f172a !important;
    font-weight: 950 !important;
    white-space: nowrap;
}

.sfa-admin-order-money small,
.sfa-admin-orders-table-v2 time small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.sfa-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.sfa-admin-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.sfa-admin-order-inline-error {
    display: block;
    max-width: 240px;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.sfa-admin-order-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.sfa-admin-order-open,
.sfa-admin-order-secondary,
.sfa-admin-order-more {
    min-height: 36px;
    border-radius: 7px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.sfa-admin-order-open {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #334155;
}

.sfa-admin-order-secondary {
    border: 1px solid #b8ccff;
    background: #ffffff;
    color: #155eef;
}

.sfa-admin-order-more {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #334155;
}

.sfa-admin-orders-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.sfa-admin-orders-footer-v2 .sfa-admin-order-pages {
    margin: 0;
}

.sfa-admin-orders-footer-v2 .sfa-admin-order-pages strong,
.sfa-admin-orders-footer-v2 .sfa-admin-order-pages a {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 900;
}

.sfa-admin-orders-footer-v2 .sfa-admin-order-pages strong {
    background: #155eef;
    color: #ffffff;
}

.sfa-admin-orders-footer-v2 .sfa-admin-order-pages a {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #334155;
}

@media (max-width: 1200px) {
    .sfa-admin-order-stats-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-order-filter-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-order-filter-buttons-v2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .sfa-admin-orders-page-v2 {
        padding: 14px;
    }

    .sfa-admin-orders-header-v2,
    .sfa-admin-orders-footer-v2 {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-admin-orders-actions-v2,
    .sfa-admin-order-filter-buttons-v2 {
        flex-wrap: wrap;
    }

    .sfa-admin-order-stats-v2,
    .sfa-admin-order-filter-v2 {
        grid-template-columns: 1fr;
    }
}

/* Orders page - operational layout */
.sfa-admin-orders-page-v2 {
    padding: 20px;
    background: #f6f8fb;
}

.sfa-admin-orders-shell-v2 {
    width: min(100%, 1480px);
}

.sfa-admin-orders-header-v2 {
    margin-bottom: 14px;
}

.sfa-admin-orders-title-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

.sfa-admin-orders-title-v2 h1 {
    font-size: 26px;
}

.sfa-admin-orders-title-v2 p {
    font-size: 13px;
}

.sfa-admin-orders-actions-v2 a {
    min-height: 42px;
    min-width: 112px;
    padding: 0 14px;
}

.sfa-admin-order-status-tabs-v3 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.sfa-admin-order-status-tabs-v3 a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    padding: 0 14px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}

.sfa-admin-order-status-tabs-v3 a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
}

.sfa-admin-order-status-tabs-v3 a strong {
    min-width: 34px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eef4ff;
    color: #155eef;
    font-size: 13px;
    font-weight: 950;
}

.sfa-admin-order-status-tabs-v3 a.is-active {
    border-color: #155eef;
    background: #f4f7ff;
    color: #123faa;
    box-shadow: inset 0 0 0 1px rgba(21, 94, 239, .18), 0 8px 20px rgba(21, 94, 239, .08);
}

.sfa-admin-order-status-tabs-v3 a.is-danger strong {
    background: #fff1f2;
    color: #dc2626;
}

.sfa-admin-order-status-tabs-v3 a.is-success strong {
    background: #eafaf0;
    color: #16a34a;
}

.sfa-admin-order-stats-v2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.sfa-admin-order-stats-v2 > div {
    min-height: 94px;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}

.sfa-admin-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.sfa-admin-stat-icon svg {
    width: 21px;
    height: 21px;
}

.sfa-admin-order-stats-v2 p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.sfa-admin-order-stats-v2 strong {
    font-size: 24px;
}

.sfa-admin-order-stats-v2 small {
    font-size: 12px;
}

.sfa-admin-order-stats-v2 i {
    display: none;
}

.sfa-admin-order-filter-v2 {
    grid-template-columns: minmax(260px, 1.6fr) minmax(140px, .75fr) minmax(150px, .8fr) minmax(130px, .62fr) minmax(130px, .62fr) auto;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
}

.sfa-admin-order-filter-v2 input,
.sfa-admin-order-filter-v2 select,
.sfa-admin-order-filter-buttons-v2 button,
.sfa-admin-order-filter-buttons-v2 a {
    min-height: 40px;
}

.sfa-admin-orders-table-card-v2 {
    overflow: hidden;
}

.sfa-admin-orders-table-head-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.sfa-admin-orders-table-head-v3 h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.sfa-admin-orders-table-head-v3 p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sfa-admin-orders-table-head-v3 > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d9e2ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.sfa-admin-orders-table-head-v3 strong {
    color: #155eef;
}

.sfa-admin-bulk-toolbar-v2 {
    padding: 12px 18px;
    background: #f8fafc;
}

.sfa-admin-orders-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

.sfa-admin-orders-table-v2 {
    min-width: 0;
    table-layout: fixed;
    font-size: 13px;
}

.sfa-admin-orders-table-v2 th,
.sfa-admin-orders-table-v2 td {
    padding: 11px 12px;
}

.sfa-admin-orders-table-v2 th {
    height: 44px;
    background: #f8fafc;
}

.sfa-admin-orders-table-v2 td {
    height: 60px;
}

.sfa-admin-orders-table-v2 th:first-child,
.sfa-admin-orders-table-v2 td:first-child {
    width: 42px;
}

.sfa-admin-orders-table-v2 th:nth-child(2),
.sfa-admin-orders-table-v2 td:nth-child(2) {
    width: 118px;
}

.sfa-admin-orders-table-v2 th:nth-child(3),
.sfa-admin-orders-table-v2 td:nth-child(3) {
    width: 18%;
}

.sfa-admin-orders-table-v2 th:nth-child(4),
.sfa-admin-orders-table-v2 td:nth-child(4) {
    width: 125px;
}

.sfa-admin-orders-table-v2 th:nth-child(5),
.sfa-admin-orders-table-v2 td:nth-child(5) {
    width: 108px;
}

.sfa-admin-orders-table-v2 th:nth-last-child(3),
.sfa-admin-orders-table-v2 td:nth-last-child(3) {
    width: 160px;
}

.sfa-admin-orders-table-v2 th:nth-last-child(2),
.sfa-admin-orders-table-v2 td:nth-last-child(2) {
    width: 118px;
}

.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 176px;
}

.sfa-admin-orders-table-v2 td,
.sfa-admin-order-customer strong,
.sfa-admin-order-number strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-admin-order-customer strong,
.sfa-admin-order-number strong {
    display: block;
    white-space: nowrap;
}

.sfa-admin-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-admin-order-inline-error {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}

.sfa-admin-order-actions {
    justify-content: flex-start;
    gap: 6px;
}

.sfa-admin-order-open,
.sfa-admin-order-secondary,
.sfa-admin-order-more {
    min-height: 32px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
}

.sfa-admin-order-more {
    width: 34px;
    padding: 0;
}

.sfa-admin-content > .sfa-admin-orders-page-v2 {
    min-height: auto;
    padding: 0;
    background: transparent;
}

.sfa-admin-content > .sfa-admin-orders-page-v2 .sfa-admin-orders-shell-v2 {
    width: 100%;
}

@media (max-width: 1240px) {
    .sfa-admin-order-status-tabs-v3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sfa-admin-order-filter-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sfa-admin-orders-table-v2 th:nth-child(4),
    .sfa-admin-orders-table-v2 td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 900px) {
    .sfa-admin-order-status-tabs-v3,
    .sfa-admin-order-stats-v2,
    .sfa-admin-order-filter-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-orders-table-v2 th:nth-child(5),
    .sfa-admin-orders-table-v2 td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 680px) {
    .sfa-admin-order-status-tabs-v3,
    .sfa-admin-order-stats-v2,
    .sfa-admin-order-filter-v2 {
        grid-template-columns: 1fr;
    }

    .sfa-admin-orders-table-head-v3,
    .sfa-admin-orders-header-v2 {
        align-items: stretch;
        flex-direction: column;
    }

    .sfa-admin-orders-table-v2 th:nth-last-child(3),
    .sfa-admin-orders-table-v2 td:nth-last-child(3) {
        display: none;
    }
}

/* Orders bulk toolbar alignment */
.sfa-admin-bulk-toolbar-v2 {
    justify-content: flex-start;
    flex-direction: row;
}

.sfa-admin-bulk-toolbar-v2 select {
    order: 1;
}

.sfa-admin-bulk-toolbar-v2 .sfa-admin-bulk-approve {
    order: 2;
}

/* Orders action icon buttons */
.sfa-admin-order-actions {
    align-items: center;
}

.sfa-admin-order-open,
.sfa-admin-order-secondary,
.sfa-admin-order-more {
    width: 42px;
    min-width: 42px;
    height: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.sfa-admin-order-open svg,
.sfa-admin-order-secondary svg,
.sfa-admin-order-more svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-admin-order-secondary {
    border-color: #b8ccff;
    background: #ffffff;
    color: #155eef;
}

.sfa-admin-order-secondary:hover {
    background: #eef4ff;
}

.sfa-admin-order-more:hover,
.sfa-admin-order-open:hover {
    background: #f8fafc;
}

/* Orders quick actions */
.sfa-admin-order-actions form {
    display: inline-flex;
    margin: 0;
}

.sfa-admin-order-open,
.sfa-admin-order-secondary,
.sfa-admin-order-more {
    position: relative;
    grid-auto-flow: column;
    gap: 7px;
    overflow: hidden;
    transition: width .18s ease, min-width .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.sfa-admin-order-open span,
.sfa-admin-order-secondary span,
.sfa-admin-order-more span {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
    transition: max-width .18s ease, opacity .18s ease;
}

.sfa-admin-order-open:hover,
.sfa-admin-order-open:focus-visible {
    width: 74px;
    min-width: 74px;
}

.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible {
    width: 112px;
    min-width: 112px;
}

.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible {
    width: 104px;
    min-width: 104px;
}

.sfa-admin-order-secondary.is-retry:hover,
.sfa-admin-order-secondary.is-retry:focus-visible {
    width: 136px;
    min-width: 136px;
}

.sfa-admin-order-open:hover span,
.sfa-admin-order-open:focus-visible span,
.sfa-admin-order-secondary:hover span,
.sfa-admin-order-secondary:focus-visible span,
.sfa-admin-order-more:hover span,
.sfa-admin-order-more:focus-visible span {
    max-width: 110px;
    opacity: 1;
}

.sfa-admin-order-secondary.is-retry {
    border-color: #fecaca;
    background: #fff7f7;
    color: #dc2626;
}

.sfa-admin-order-secondary.is-retry:hover,
.sfa-admin-order-secondary.is-retry:focus-visible {
    background: #fff1f2;
}

.sfa-admin-order-secondary:disabled,
.sfa-admin-order-more:disabled,
.sfa-admin-order-open:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.sfa-admin-mini-dialog {
    width: min(420px, calc(100vw - 32px));
    border: 0;
    border-radius: 10px;
    padding: 0;
    background: transparent;
}

.sfa-admin-mini-dialog::backdrop {
    background: rgba(15, 23, 42, .34);
}

.sfa-admin-mini-dialog-panel {
    display: grid;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
}

.sfa-admin-mini-dialog-panel header,
.sfa-admin-mini-dialog-panel footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sfa-admin-mini-dialog-panel header p,
.sfa-admin-mini-dialog-panel header h3 {
    margin: 0;
}

.sfa-admin-mini-dialog-panel header p {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.sfa-admin-mini-dialog-panel header h3 {
    margin-top: 3px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.sfa-admin-mini-dialog-panel header > button {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 20px;
    line-height: 1;
}

.sfa-admin-mini-dialog-panel label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.sfa-admin-mini-dialog-panel select,
.sfa-admin-mini-dialog-panel textarea {
    width: 100%;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.sfa-admin-mini-dialog-panel footer {
    justify-content: flex-start;
}

.sfa-admin-mini-dialog-panel footer button {
    min-height: 38px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
}

.sfa-admin-mini-dialog-panel footer button[type="button"] {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #334155;
}

.sfa-admin-mini-dialog-panel footer button[type="submit"] {
    border: 0;
    background: #155eef;
    color: #ffffff;
}

/* Orders quick actions - compact icon and inward expansion */
.sfa-admin-orders-table-card-v2,
.sfa-admin-orders-table-wrap {
    overflow: visible;
}

.sfa-admin-orders-table-v2,
.sfa-admin-orders-table-v2 tbody,
.sfa-admin-orders-table-v2 tr,
.sfa-admin-orders-table-v2 td:last-child {
    overflow: visible;
}

.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 132px;
}

.sfa-admin-order-actions {
    position: relative;
    justify-content: flex-end;
    gap: 6px;
    overflow: visible;
    z-index: 1;
}

.sfa-admin-order-actions form {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.sfa-admin-order-open,
.sfa-admin-order-secondary,
.sfa-admin-order-more {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    transform-origin: left center;
    transition: width .16s ease, min-width .16s ease, padding .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.sfa-admin-order-open span,
.sfa-admin-order-secondary span,
.sfa-admin-order-more span {
    display: inline-block;
    max-width: 0;
    margin-inline-start: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sfa-admin-order-open:hover,
.sfa-admin-order-open:focus-visible,
.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible,
.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible {
    position: relative;
    z-index: 20;
    gap: 7px;
    padding-inline: 10px;
    justify-content: center;
}

.sfa-admin-order-open:hover,
.sfa-admin-order-open:focus-visible {
    width: 70px;
    min-width: 70px;
}

.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible {
    width: 108px;
    min-width: 108px;
}

.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible {
    width: 100px;
    min-width: 100px;
}

.sfa-admin-order-secondary.is-retry:hover,
.sfa-admin-order-secondary.is-retry:focus-visible {
    width: 132px;
    min-width: 132px;
}

.sfa-admin-order-open:hover span,
.sfa-admin-order-open:focus-visible span,
.sfa-admin-order-secondary:hover span,
.sfa-admin-order-secondary:focus-visible span,
.sfa-admin-order-more:hover span,
.sfa-admin-order-more:focus-visible span {
    max-width: 108px;
    opacity: 1;
}

/* Orders quick actions - no outward overflow */
.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 128px;
}

.sfa-admin-order-actions {
    width: 120px;
    height: 34px;
    display: grid;
    grid-template-columns: repeat(3, 34px);
    justify-content: end;
    gap: 6px;
}

.sfa-admin-order-actions form {
    position: relative;
    width: 34px;
    height: 34px;
}

.sfa-admin-order-actions > button,
.sfa-admin-order-actions form > button {
    position: relative;
    inset-inline-end: auto;
    overflow: hidden;
}

.sfa-admin-order-actions > button:hover,
.sfa-admin-order-actions > button:focus-visible,
.sfa-admin-order-actions form > button:hover,
.sfa-admin-order-actions form > button:focus-visible {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    z-index: 40;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.sfa-admin-order-open:hover,
.sfa-admin-order-open:focus-visible {
    width: 66px;
    min-width: 66px;
}

.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible {
    width: 104px;
    min-width: 104px;
}

.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible {
    width: 98px;
    min-width: 98px;
}

.sfa-admin-order-secondary.is-retry:hover,
.sfa-admin-order-secondary.is-retry:focus-visible {
    width: 126px;
    min-width: 126px;
}

/* Orders page professional density */
.sfa-admin-content {
    padding: 16px;
}

.sfa-admin-page-heading {
    margin-bottom: 12px;
    padding: 16px 18px;
}

.sfa-admin-page-heading h1 {
    font-size: 24px;
    line-height: 1.2;
}

.sfa-admin-page-heading p {
    margin-top: 4px;
    font-size: 13px;
}

.sfa-admin-content > .sfa-admin-orders-page-v2 {
    padding: 0;
}

.sfa-admin-order-stats-v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.sfa-admin-order-stats-v2 > div {
    min-height: 82px;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px;
}

.sfa-admin-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.sfa-admin-stat-icon svg {
    width: 18px;
    height: 18px;
}

.sfa-admin-order-stats-v2 p {
    font-size: 12px;
}

.sfa-admin-order-stats-v2 strong {
    margin-top: 3px;
    font-size: 21px;
}

.sfa-admin-order-stats-v2 small {
    margin-top: 4px;
    font-size: 11px;
}

.sfa-admin-order-filter-v2 {
    grid-template-columns: minmax(280px, 1.7fr) minmax(130px, .75fr) minmax(145px, .8fr) minmax(120px, .62fr) minmax(120px, .62fr) auto;
    gap: 8px;
    margin-bottom: 10px;
    padding: 12px;
}

.sfa-admin-order-filter-v2 label {
    gap: 5px;
    font-size: 12px;
}

.sfa-admin-order-filter-v2 input,
.sfa-admin-order-filter-v2 select,
.sfa-admin-order-filter-buttons-v2 button,
.sfa-admin-order-filter-buttons-v2 a {
    min-height: 36px;
    border-radius: 6px;
    font-size: 12px;
}

.sfa-admin-order-filter-buttons-v2 {
    gap: 6px;
}

.sfa-admin-order-filter-buttons-v2 button,
.sfa-admin-order-filter-buttons-v2 a {
    padding: 0 14px;
}

.sfa-admin-bulk-toolbar-v2 {
    padding: 10px 14px;
    gap: 8px;
}

.sfa-admin-bulk-toolbar-v2 select,
.sfa-admin-bulk-toolbar-v2 .sfa-admin-bulk-approve {
    min-height: 36px;
    border-radius: 6px;
    font-size: 12px;
}

.sfa-admin-bulk-toolbar-v2 select {
    width: 220px;
}

.sfa-admin-orders-table-card-v2 {
    border-radius: 8px;
}

.sfa-admin-orders-table-wrap {
    overflow-x: hidden;
}

.sfa-admin-orders-table-v2 {
    table-layout: fixed;
    min-width: 0;
    font-size: 12px;
}

.sfa-admin-orders-table-v2 th {
    height: 40px;
    padding: 9px 10px;
    font-size: 12px;
}

.sfa-admin-orders-table-v2 td {
    height: 54px;
    padding: 9px 10px;
}

.sfa-admin-orders-table-v2 th:first-child,
.sfa-admin-orders-table-v2 td:first-child {
    width: 36px;
}

.sfa-admin-orders-table-v2 th:nth-child(2),
.sfa-admin-orders-table-v2 td:nth-child(2) {
    width: 105px;
}

.sfa-admin-orders-table-v2 th:nth-child(3),
.sfa-admin-orders-table-v2 td:nth-child(3) {
    width: 180px;
}

.sfa-admin-orders-table-v2 th:nth-child(4),
.sfa-admin-orders-table-v2 td:nth-child(4) {
    width: 105px;
}

.sfa-admin-orders-table-v2 th:nth-child(5),
.sfa-admin-orders-table-v2 td:nth-child(5) {
    width: 90px;
}

.sfa-admin-orders-table-v2 th:nth-child(6),
.sfa-admin-orders-table-v2 td:nth-child(6) {
    width: 115px;
}

.sfa-admin-orders-table-v2 th:nth-child(7),
.sfa-admin-orders-table-v2 td:nth-child(7) {
    width: 125px;
}

.sfa-admin-orders-table-v2 th:nth-child(8),
.sfa-admin-orders-table-v2 td:nth-child(8) {
    width: 100px;
}

.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 120px;
}

.sfa-admin-order-money small,
.sfa-admin-orders-table-v2 time small {
    font-size: 11px;
}

.sfa-admin-badge {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.sfa-admin-order-inline-error {
    margin-top: 4px;
    font-size: 11px;
    max-width: 120px;
}

.sfa-admin-orders-footer-v2 {
    padding: 10px 14px;
    font-size: 12px;
}

.sfa-admin-order-actions {
    width: 108px;
    grid-template-columns: repeat(3, 32px);
    gap: 5px;
}

.sfa-admin-order-actions form,
.sfa-admin-order-open,
.sfa-admin-order-secondary,
.sfa-admin-order-more {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
}

.sfa-admin-order-open svg,
.sfa-admin-order-secondary svg,
.sfa-admin-order-more svg {
    width: 16px;
    height: 16px;
}

.sfa-admin-order-open:hover,
.sfa-admin-order-open:focus-visible {
    width: 62px;
    min-width: 62px;
}

.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible {
    width: 98px;
    min-width: 98px;
}

.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible {
    width: 90px;
    min-width: 90px;
}

.sfa-admin-order-secondary.is-retry:hover,
.sfa-admin-order-secondary.is-retry:focus-visible {
    width: 118px;
    min-width: 118px;
}

@media (max-width: 1180px) {
    .sfa-admin-orders-table-v2 th:nth-child(4),
    .sfa-admin-orders-table-v2 td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 980px) {
    .sfa-admin-order-filter-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-order-stats-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Orders table row actions: details by row click + inline status menu */
.sfa-admin-orders-table-v2 tbody tr[data-order-details-target] {
    cursor: pointer;
}

.sfa-admin-orders-table-v2 tbody tr[data-order-details-target]:hover {
    background: #f8fafc;
}

.sfa-admin-orders-table-v2 tbody tr[data-order-details-target]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.sfa-admin-order-actions {
    width: 74px;
    grid-template-columns: repeat(2, 32px);
    justify-content: end;
    overflow: visible;
}

.sfa-admin-order-status-menu {
    position: relative;
    width: 32px;
    height: 32px;
}

.sfa-admin-order-status-menu > summary {
    list-style: none;
    cursor: pointer;
}

.sfa-admin-order-status-menu > summary::-webkit-details-marker {
    display: none;
}

.sfa-admin-order-status-options {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 80;
    display: grid;
    gap: 4px;
    min-width: 170px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.sfa-admin-order-status-options form {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
}

.sfa-admin-order-status-options button {
    width: 100%;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    justify-content: flex-start;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-align: start;
}

.sfa-admin-order-status-options button:hover,
.sfa-admin-order-status-options button:focus-visible,
.sfa-admin-order-status-options button.is-active {
    background: #eef2ff;
    color: #1d4ed8;
}

.sfa-admin-order-status-menu[open] .sfa-admin-order-more,
.sfa-admin-order-status-menu .sfa-admin-order-more:hover,
.sfa-admin-order-status-menu .sfa-admin-order-more:focus-visible {
    width: 32px;
    min-width: 32px;
}
/* Final orders actions sizing fix */
.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    overflow: visible;
}

.sfa-admin-order-actions {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 34px) !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: end !important;
    overflow: visible !important;
}

.sfa-admin-order-actions form,
.sfa-admin-order-status-menu {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    overflow: visible !important;
}

.sfa-admin-order-secondary,
.sfa-admin-order-more,
.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible,
.sfa-admin-order-secondary.is-retry:hover,
.sfa-admin-order-secondary.is-retry:focus-visible,
.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible,
.sfa-admin-order-status-menu[open] .sfa-admin-order-more {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    gap: 0 !important;
    overflow: visible !important;
}

.sfa-admin-order-secondary span,
.sfa-admin-order-more span,
.sfa-admin-order-secondary:hover span,
.sfa-admin-order-secondary:focus-visible span,
.sfa-admin-order-more:hover span,
.sfa-admin-order-more:focus-visible span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
}

.sfa-admin-order-secondary::after,
.sfa-admin-order-more::after {
    content: attr(aria-label);
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 120;
    display: none;
    min-width: max-content;
    max-width: 190px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.sfa-admin-order-secondary:hover::after,
.sfa-admin-order-secondary:focus-visible::after,
.sfa-admin-order-more:hover::after,
.sfa-admin-order-more:focus-visible::after {
    display: block;
}

.sfa-admin-order-status-options {
    left: 0 !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    transform: none !important;
}

/* Clean order action icons and status dropdown */
.sfa-admin-orders-table-wrap-v2,
.sfa-admin-orders-table-v2,
.sfa-admin-orders-table-v2 tbody,
.sfa-admin-orders-table-v2 tr,
.sfa-admin-orders-table-v2 td {
    overflow: visible !important;
}

.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    overflow: visible !important;
}

.sfa-admin-order-actions {
    position: relative !important;
    isolation: isolate !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 36px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    overflow: visible !important;
}

.sfa-admin-order-actions form,
.sfa-admin-order-status-menu {
    position: relative !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    overflow: visible !important;
}

.sfa-admin-order-secondary,
.sfa-admin-order-more,
.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible,
.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.sfa-admin-order-secondary svg,
.sfa-admin-order-more svg {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.sfa-admin-order-status-menu.is-open {
    z-index: 200 !important;
}

.sfa-admin-order-status-menu.is-open .sfa-admin-order-more {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.sfa-admin-order-status-options[hidden] {
    display: none !important;
}

.sfa-admin-order-status-menu.is-open .sfa-admin-order-status-options {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: auto !important;
    left: 0 !important;
    z-index: 220 !important;
    display: grid !important;
    min-width: 178px !important;
    max-width: 220px !important;
    padding: 6px !important;
    gap: 4px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22) !important;
}

.sfa-admin-order-status-options form {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.sfa-admin-order-status-options button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    direction: rtl !important;
    text-align: right !important;
}

.sfa-admin-order-status-options button:hover,
.sfa-admin-order-status-options button:focus-visible,
.sfa-admin-order-status-options button.is-active {
    background: #eef2ff !important;
    color: #1d4ed8 !important;
}

.sfa-action-floating-label {
    position: fixed !important;
    z-index: 2147483000 !important;
    display: block !important;
    max-width: min(220px, calc(100vw - 20px)) !important;
    padding: 8px 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22) !important;
    direction: rtl !important;
    text-align: right !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.sfa-action-floating-label[hidden] {
    display: none !important;
}

.sfa-image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    color: #1d4ed8;
    font-weight: 900;
    letter-spacing: 0;
}

.is-image-missing > img {
    display: none !important;
}
/* Detached solid status dropdown above all rows */
.sfa-admin-order-status-options.is-floating {
    position: fixed !important;
    z-index: 2147482500 !important;
    display: grid !important;
    min-width: 190px !important;
    max-width: min(240px, calc(100vw - 20px)) !important;
    padding: 8px !important;
    gap: 4px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.24) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.sfa-admin-order-status-options.is-floating[hidden] {
    display: none !important;
}

.sfa-admin-order-status-options.is-floating form {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.sfa-admin-order-status-options.is-floating button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    direction: rtl !important;
    text-align: right !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

.sfa-admin-order-status-options.is-floating button:hover,
.sfa-admin-order-status-options.is-floating button:focus-visible,
.sfa-admin-order-status-options.is-floating button.is-active {
    background: #eef2ff !important;
    color: #1d4ed8 !important;
}
/* Professional stable order action buttons */
.sfa-admin-orders-table-v2 th:last-child,
.sfa-admin-orders-table-v2 td:last-child {
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
    overflow: visible !important;
}

.sfa-admin-orders-table-wrap-v2,
.sfa-admin-orders-table-v2,
.sfa-admin-orders-table-v2 tbody,
.sfa-admin-orders-table-v2 tr,
.sfa-admin-orders-table-v2 td {
    overflow: visible !important;
}

.sfa-admin-order-actions {
    position: relative !important;
    z-index: 5 !important;
    isolation: isolate !important;
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
    min-height: 36px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: visible !important;
    direction: rtl !important;
}

.sfa-admin-order-actions form,
.sfa-admin-order-status-menu {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.sfa-admin-order-secondary,
.sfa-admin-order-more,
.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible,
.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible,
.sfa-admin-order-status-menu.is-open .sfa-admin-order-more {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    min-width: 68px !important;
    max-width: 82px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    direction: rtl !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease !important;
}

.sfa-admin-order-secondary:hover,
.sfa-admin-order-secondary:focus-visible,
.sfa-admin-order-more:hover,
.sfa-admin-order-more:focus-visible,
.sfa-admin-order-status-menu.is-open .sfa-admin-order-more {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10) !important;
}

.sfa-admin-order-secondary svg,
.sfa-admin-order-more svg {
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.sfa-admin-order-secondary span,
.sfa-admin-order-more span,
.sfa-admin-order-secondary:hover span,
.sfa-admin-order-secondary:focus-visible span,
.sfa-admin-order-more:hover span,
.sfa-admin-order-more:focus-visible span,
.sfa-admin-order-status-menu.is-open .sfa-admin-order-more span {
    display: inline-block !important;
    max-width: 58px !important;
    opacity: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transition: none !important;
}

.sfa-admin-order-secondary::after,
.sfa-admin-order-more::after,
.sfa-action-floating-label {
    display: none !important;
}

.sfa-admin-order-secondary:disabled,
.sfa-admin-order-secondary[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.sfa-admin-order-status-options.is-floating {
    position: fixed !important;
    z-index: 2147482500 !important;
    display: grid !important;
    min-width: 190px !important;
    max-width: min(240px, calc(100vw - 20px)) !important;
    padding: 8px !important;
    gap: 4px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.24) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.sfa-admin-order-status-options.is-floating[hidden] {
    display: none !important;
}

.sfa-admin-order-status-options.is-floating form {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.sfa-admin-order-status-options.is-floating button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    direction: rtl !important;
    text-align: right !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

.sfa-admin-order-status-options.is-floating button:hover,
.sfa-admin-order-status-options.is-floating button:focus-visible,
.sfa-admin-order-status-options.is-floating button.is-active {
    background: #eef2ff !important;
    color: #1d4ed8 !important;
}


/* Admin logs maintenance actions */
.sfa-admin-logs-maintenance {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.sfa-admin-logs-maintenance h2,
.sfa-admin-logs-maintenance p {
    margin: 0;
}

.sfa-admin-logs-maintenance h2 {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}

.sfa-admin-logs-maintenance p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.sfa-admin-logs-maintenance form {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 0;
}

.sfa-admin-logs-maintenance label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.sfa-admin-logs-maintenance input {
    height: 38px;
    min-width: 150px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 0 10px;
    color: #0f172a;
    font-weight: 800;
}

.sfa-admin-logs-maintenance button {
    height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.sfa-admin-logs-maintenance button.is-warning {
    background: #d97706;
}

.sfa-admin-logs-maintenance button.is-danger {
    background: #dc2626;
}

@media (max-width: 900px) {
    .sfa-admin-logs-maintenance {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sfa-admin-logs-maintenance form {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .sfa-admin-logs-maintenance label,
    .sfa-admin-logs-maintenance input,
    .sfa-admin-logs-maintenance button {
        width: 100%;
    }
}

/* Unified admin logs controls */
.sfa-admin-logs-control-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.sfa-admin-logs-control-card .sfa-admin-logs-filters {
    margin: 0;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    grid-template-columns: minmax(230px, 1.35fr) 150px minmax(180px, 0.95fr) 150px 150px auto;
}

.sfa-admin-logs-control-card .sfa-admin-logs-maintenance {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto auto;
    align-items: end;
    gap: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sfa-admin-logs-control-card .sfa-admin-logs-maintenance-copy h2,
.sfa-admin-logs-control-card .sfa-admin-logs-maintenance-copy p {
    margin: 0;
}

.sfa-admin-logs-control-card .sfa-admin-logs-maintenance-copy h2 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.sfa-admin-logs-control-card .sfa-admin-logs-maintenance-copy p {
    margin-top: 4px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.65;
}

.sfa-admin-logs-control-card .sfa-admin-logs-maintenance form {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 0;
}

.sfa-admin-logs-control-card .sfa-admin-logs-maintenance label {
    min-width: 150px;
}

@media (max-width: 1180px) {
    .sfa-admin-logs-control-card .sfa-admin-logs-filters,
    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfa-admin-logs-control-card .sfa-admin-logs-filter-actions,
    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .sfa-admin-logs-control-card .sfa-admin-logs-filters,
    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance {
        grid-template-columns: 1fr;
    }

    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance form,
    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance label,
    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance input,
    .sfa-admin-logs-control-card .sfa-admin-logs-maintenance button {
        width: 100%;
    }
}

/* Keep Amin posting cards inside the dashboard column */
.sfa-admin-amin-posting,
.sfa-admin-amin-posting * {
    min-width: 0;
    box-sizing: border-box;
}

.sfa-admin-amin-posting-list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.sfa-admin-amin-posting-item {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.sfa-admin-amin-posting-item > span {
    display: grid;
    min-width: 0;
    gap: 3px;
    overflow: hidden;
}

.sfa-admin-amin-posting-item strong,
.sfa-admin-amin-posting-item small,
.sfa-admin-amin-posting-item em {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfa-admin-amin-posting-item strong,
.sfa-admin-amin-posting-item small {
    white-space: nowrap;
}

.sfa-admin-amin-posting-item em {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.sfa-admin-amin-posting-item .sfa-admin-badge {
    justify-self: end;
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .sfa-admin-amin-posting-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .sfa-admin-amin-posting-item .sfa-admin-badge {
        justify-self: start;
        max-width: 100%;
    }
}

/* Store branding */
.sfa-store-brand-name {
    color: var(--store-name-color, #0f172a) !important;
    font-family: var(--store-name-font-family, Cairo), Tahoma, Arial, sans-serif !important;
    font-weight: var(--store-name-font-weight, 700) !important;
    letter-spacing: 0;
}

.sfa-logo.sfa-store-brand-name {
    min-width: auto;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--store-name-color, #0f172a) !important;
    border-color: color-mix(in srgb, var(--store-primary-color, #2563eb) 30%, transparent);
}

.sfa-store-branding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 18px;
    align-items: stretch;
}

.sfa-store-branding-preview {
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
}

.sfa-store-branding-preview span {
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
}

.sfa-store-branding-preview strong {
    color: var(--store-name-color, #0f172a);
    font-family: var(--store-name-font-family, Cairo), Tahoma, Arial, sans-serif;
    font-weight: var(--store-name-font-weight, 700);
    font-size: 2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sfa-store-branding-preview small {
    color: #475569;
    border-right: 4px solid var(--store-primary-color, #2563eb);
    padding-right: 10px;
}

.sfa-store-options-field input[type="color"] {
    min-height: 48px;
    padding: 6px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .sfa-store-branding-grid {
        grid-template-columns: 1fr;
    }
}

/* Store identity controls */
.sfa-store-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    line-height: 1.08;
    text-decoration: none;
}

.sfa-store-brand-name,
.sfa-store-brand-name > span {
    color: var(--store-name-color, #0f172a) !important;
    font-family: var(--store-name-font-family, Cairo), Tahoma, Arial, sans-serif !important;
    font-weight: var(--store-name-font-weight, 700) !important;
    letter-spacing: 0;
}

.sfa-store-brand-name > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--store-name-size, 1.3rem);
}

.sfa-store-brand-name > small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--store-tagline-color, #64748b);
    font-family: var(--store-tagline-font-family, Cairo), Tahoma, Arial, sans-serif;
    font-size: var(--store-tagline-size, .78rem);
    font-weight: var(--store-tagline-font-weight, 500);
}

.sfa-logo.sfa-store-brand {
    min-height: 46px;
    max-width: min(280px, 36vw);
    align-items: flex-start;
}

.sfa-store-branding-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    align-items: start;
}

.sfa-store-branding-sections {
    display: grid;
    gap: 16px;
}

.sfa-store-branding-fieldset {
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.sfa-store-branding-fieldset legend {
    width: auto;
    float: none;
    padding: 0 8px;
    margin: 0;
    color: #0f172a;
    font-size: .9rem;
    font-weight: 800;
}

.sfa-store-options-form-grid.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sfa-store-options-field.is-wide {
    grid-column: span 2;
}

.sfa-store-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfa-store-color-row input[type="color"] {
    width: 48px;
    min-width: 48px;
    height: 42px;
    padding: 4px;
}

.sfa-store-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sfa-store-color-swatches button {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 2px #fff;
}

.sfa-store-brand-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sfa-store-brand-presets button {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    padding: 9px 14px;
    font-weight: 800;
}

.sfa-store-currency-grid {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
    gap: 16px;
    align-items: stretch;
}

.sfa-store-options-field small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.7;
}

.sfa-store-currency-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
}

.sfa-store-currency-panel > span {
    color: #334155;
    font-size: .86rem;
    font-weight: 900;
}

.sfa-store-currency-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfa-store-currency-presets button {
    min-width: 58px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    padding: 9px 12px;
    font: inherit;
    font-weight: 900;
    line-height: 1;
}

.sfa-store-currency-presets button:hover,
.sfa-store-currency-presets button:focus-visible {
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.sfa-store-currency-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
}

.sfa-store-currency-preview small {
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
}

.sfa-store-currency-preview strong {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
}

.sfa-store-currency-preview em {
    color: #2563eb;
    font-style: normal;
    font-size: .95rem;
    font-weight: 900;
}

.sfa-store-options-toggle.is-inline {
    grid-column: span 2;
    min-height: 64px;
}

.sfa-store-branding-preview {
    position: sticky;
    top: 18px;
}

.sfa-store-branding-preview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 140px;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--store-primary-color, #2563eb) 28%, #dbe4f0);
    border-radius: 8px;
    padding: 22px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--store-primary-color, #2563eb) 10%, #ffffff), #ffffff 58%),
        #ffffff;
}

.sfa-store-branding-preview strong {
    color: var(--store-name-color, #0f172a);
    font-family: var(--store-name-font-family, Cairo), Tahoma, Arial, sans-serif;
    font-size: var(--store-name-size, 1.35rem);
    font-weight: var(--store-name-font-weight, 700);
    line-height: 1.1;
}

.sfa-store-branding-preview small {
    margin-top: 6px;
    color: var(--store-tagline-color, #64748b);
    font-family: var(--store-tagline-font-family, Cairo), Tahoma, Arial, sans-serif;
    font-size: var(--store-tagline-size, .78rem);
    font-weight: var(--store-tagline-font-weight, 500);
}

.sfa-store-branding-preview small.is-empty {
    display: none;
}

.sfa-store-branding-preview em {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: .84rem;
    font-style: normal;
}

@media (max-width: 980px) {
    .sfa-store-branding-grid,
    .sfa-store-currency-grid,
    .sfa-store-options-form-grid.is-compact {
        grid-template-columns: 1fr;
    }

    .sfa-store-options-field.is-wide,
    .sfa-store-options-toggle.is-inline {
        grid-column: auto;
    }

    .sfa-store-branding-preview {
        position: static;
    }
}


.sfa-store-customer-users-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.sfa-store-customer-users-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.sfa-store-customer-users-table th,
.sfa-store-customer-users-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef6;
    text-align: right;
    vertical-align: middle;
}

.sfa-store-customer-users-table th {
    background: #f8fbff;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.sfa-store-customer-users-table tr:last-child td {
    border-bottom: 0;
}

.sfa-store-customer-users-table td strong,
.sfa-store-customer-users-table td small {
    display: block;
}

.sfa-store-customer-users-table td small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.sfa-store-customer-link-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.sfa-store-customer-link-form select {
    min-height: 42px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}

.sfa-store-customer-link-form button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.sfa-store-customer-current {
    margin-top: 8px;
    color: #047857 !important;
    font-weight: 800;
}

@media (max-width: 720px) {
    .sfa-store-customer-link-form {
        grid-template-columns: 1fr;
    }
}
.sfa-admin-sync-page {
    display: grid;
    gap: 18px;
}

.sfa-admin-sync-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sfa-admin-sync-grid.is-top {
    align-items: stretch;
}

.sfa-admin-sync-card {
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    padding: 20px;
}

.sfa-admin-sync-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.sfa-admin-sync-card-head span {
    display: block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 5px;
}

.sfa-admin-sync-card-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
}

.sfa-admin-sync-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.sfa-admin-sync-badge.is-green {
    background: #dcfce7;
    color: #047857;
}

.sfa-admin-sync-badge.is-amber {
    background: #fef3c7;
    color: #b45309;
}

.sfa-admin-sync-badge.is-red {
    background: #fee2e2;
    color: #b91c1c;
}

.sfa-admin-sync-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.sfa-admin-sync-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 10px;
}

.sfa-admin-sync-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sfa-admin-sync-list dt {
    color: #64748b;
    font-weight: 800;
}

.sfa-admin-sync-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
    text-align: left;
    overflow-wrap: anywhere;
}

.sfa-admin-sync-message {
    margin: 16px 0 0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    padding: 12px 14px;
}

.sfa-admin-sync-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sfa-admin-sync-actions button,
.sfa-admin-sync-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0 18px;
    background: #fff;
    color: #0f172a;
    font-weight: 900;
    text-decoration: none;
}

.sfa-admin-sync-actions button {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.sfa-admin-sync-actions button:disabled {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.sfa-admin-sync-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sfa-admin-sync-metrics div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}

.sfa-admin-sync-metrics span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.sfa-admin-sync-metrics strong {
    color: #0f172a;
    font-size: 1.6rem;
    font-weight: 900;
}

.sfa-admin-sync-empty {
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 14px;
    font-weight: 900;
}

.sfa-admin-sync-log-list {
    display: grid;
    gap: 10px;
}

.sfa-admin-sync-log-list div {
    display: grid;
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.sfa-admin-sync-log-list span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.sfa-admin-sync-log-list strong {
    color: #0f172a;
    font-weight: 900;
}

.sfa-admin-sync-log-list small {
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 960px) {
    .sfa-admin-sync-grid,
    .sfa-admin-sync-metrics {
        grid-template-columns: 1fr;
    }
}

.sfa-admin-card-title-with-action {
    justify-content: space-between;
}

.sfa-admin-card-title-with-action > div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sfa-admin-card-refresh {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sfa-admin-card-refresh svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfa-admin-card-refresh:hover {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
}

.sfa-admin-card-refresh:disabled {
    opacity: .65;
    cursor: wait;
}

.sfa-admin-card-refresh.is-loading svg {
    animation: sfa-sync-refresh-spin .8s linear infinite;
}

@keyframes sfa-sync-refresh-spin {
    to { transform: rotate(360deg); }
}
.sfa-store-customer-link-form {
    grid-template-columns: minmax(260px, 1fr) auto auto;
}

.sfa-store-customer-lookup {
    position: relative;
    min-width: 0;
}

.sfa-store-customer-lookup input[type="search"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    background: #fff;
}

.sfa-store-customer-results {
    position: absolute;
    z-index: 30;
    inset-inline: 0;
    top: calc(100% + 6px);
    max-height: 240px;
    overflow: auto;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.sfa-store-customer-result,
.sfa-store-customer-result-empty {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    text-align: right;
    color: #0f172a;
}

.sfa-store-customer-result:hover {
    background: #eff6ff;
}

.sfa-store-customer-result strong,
.sfa-store-customer-result small {
    display: block;
}

.sfa-store-customer-result small,
.sfa-store-customer-result-empty {
    color: #64748b;
    font-size: 12px;
}

.sfa-store-customer-clear {
    border-color: #cbd5e1 !important;
    background: #fff !important;
    color: #475569 !important;
}
/* Customer linking lookup layout fixes */
.sfa-store-customer-users-table {
    min-width: 1120px;
    table-layout: fixed;
}

.sfa-store-customer-users-table th:nth-child(1),
.sfa-store-customer-users-table td:nth-child(1) {
    width: 24%;
}

.sfa-store-customer-users-table th:nth-child(2),
.sfa-store-customer-users-table td:nth-child(2) {
    width: 16%;
}

.sfa-store-customer-users-table th:nth-child(3),
.sfa-store-customer-users-table td:nth-child(3) {
    width: 18%;
}

.sfa-store-customer-users-table th:nth-child(4),
.sfa-store-customer-users-table td:nth-child(4) {
    width: 42%;
}

.sfa-store-customer-link-form {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 108px 82px;
    gap: 10px;
    align-items: start;
    max-width: 100%;
}

.sfa-store-customer-lookup {
    position: relative;
    min-width: 0;
}

.sfa-store-customer-lookup input[type="search"] {
    width: 100%;
    box-sizing: border-box;
}

.sfa-store-customer-results {
    position: absolute;
    z-index: 80;
    inset-inline: 0;
    top: calc(100% + 4px);
    max-height: 190px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sfa-store-customer-result,
.sfa-store-customer-result-empty {
    min-height: auto;
    white-space: normal;
    line-height: 1.35;
}

.sfa-store-customer-result strong {
    font-size: 14px;
}

.sfa-store-customer-link-form button {
    width: 100%;
    padding-inline: 10px;
    white-space: nowrap;
}

.sfa-store-customer-clear {
    font-size: 13px;
}

@media (max-width: 980px) {
    .sfa-store-customer-link-form {
        grid-template-columns: 1fr;
    }
}
/* Customer linking modal */
.sfa-store-customer-users-table-clean {
    min-width: 920px;
    table-layout: fixed;
}

.sfa-store-customer-users-table-clean th:nth-child(1),
.sfa-store-customer-users-table-clean td:nth-child(1) { width: 28%; }
.sfa-store-customer-users-table-clean th:nth-child(2),
.sfa-store-customer-users-table-clean td:nth-child(2) { width: 16%; }
.sfa-store-customer-users-table-clean th:nth-child(3),
.sfa-store-customer-users-table-clean td:nth-child(3) { width: 20%; }
.sfa-store-customer-users-table-clean th:nth-child(4),
.sfa-store-customer-users-table-clean td:nth-child(4) { width: 24%; }
.sfa-store-customer-users-table-clean th:nth-child(5),
.sfa-store-customer-users-table-clean td:nth-child(5) { width: 12%; }

.sfa-store-customer-linked {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 900;
    white-space: normal;
}

.sfa-store-customer-linked.is-empty {
    background: #f1f5f9;
    color: #64748b;
}

.sfa-store-customer-open {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 900;
    white-space: nowrap;
}

.sfa-store-customer-open:hover {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
}

.sfa-modal-open {
    overflow: hidden;
}

.sfa-store-customer-modal[hidden] {
    display: none !important;
}

.sfa-store-customer-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.sfa-store-customer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
}

.sfa-store-customer-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    padding: 22px;
}

.sfa-store-customer-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sfa-store-customer-modal-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.sfa-store-customer-modal-head p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

.sfa-store-customer-modal-head button {
    width: 38px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.sfa-store-customer-modal .sfa-store-customer-link-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.sfa-store-customer-modal .sfa-store-customer-lookup {
    display: grid;
    gap: 8px;
}

.sfa-store-customer-modal .sfa-store-customer-lookup > span {
    color: #334155;
    font-weight: 900;
}

.sfa-store-customer-modal .sfa-store-customer-results {
    position: absolute;
    z-index: 3;
    inset-inline: 0;
    top: calc(100% + 6px);
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.sfa-store-customer-modal-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.sfa-store-customer-modal-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
}

.sfa-store-customer-modal-actions .sfa-store-customer-clear {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

@media (max-width: 720px) {
    .sfa-store-customer-modal {
        align-items: end;
        padding: 12px;
    }

    .sfa-store-customer-modal-panel {
        width: 100%;
        padding: 18px;
    }

    .sfa-store-customer-modal-actions {
        flex-direction: column;
    }
}
.sfa-auth-success {
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
}

/* Storefront account menu: admin/customer mode switch */
.sfa-store-account-menu summary.sfa-icon-btn {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
}

.sfa-store-account-menu .sfa-admin-account-dropdown {
    right: 0;
    left: auto;
    top: calc(100% + 12px);
}

@media (max-width: 720px) {
    .sfa-store-account-menu .sfa-admin-account-dropdown {
        right: auto;
        left: 0;
    }
}

/* Button audit / product detail header collision fix */
.sfa-detail-container {
    padding-top: max(88px, var(--sfa-detail-safe-top, 88px));
    scroll-margin-top: 96px;
}

.sfa-detail-actions {
    position: relative;
    z-index: 5;
}

@media (max-width: 720px) {
    .sfa-detail-container {
        padding-top: max(76px, var(--sfa-detail-safe-top-mobile, 76px));
        scroll-margin-top: 84px;
    }
}
