@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Roboto:wght@400;500;700;900&display=swap");

:root {
    --oman-bg: #f4f7f8;
    --oman-ink: #0f252b;
    --oman-brand: #007f73;
    --oman-brand-dark: #04564f;
    --oman-accent: #f08b2f;
    --sh-logo-blue: #1f4f96;
    --sh-logo-blue-dark: #183d74;
    --sh-logo-gold: #e3aa21;
    --sh-logo-gold-soft: #f4cf6a;
    --oman-white: #ffffff;
    --oman-muted: #627579;
}

body {
    background: radial-gradient(circle at 8% -10%, #d7efeb 0%, transparent 45%), var(--oman-bg);
}

/* Full-width layout */
.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 767px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.header {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border-bottom: 1px solid #dae5f5;
    box-shadow: 0 4px 18px rgba(24, 61, 116, 0.08);
}

.header .topbar {
    background: linear-gradient(90deg, var(--sh-logo-blue-dark) 0%, var(--sh-logo-blue) 100%);
    color: #fff;
}

.header .topbar .btn,
.header .topbar .input-group-text,
.header .topbar a,
.header .topbar span {
    color: #fff !important;
}

.header .topbar .btn:hover {
    color: var(--sh-logo-gold-soft) !important;
}

.header .navbar {
    background: transparent;
}

.header .navbar-brand {
    padding: 0.65rem 0;
}

.header .logo-img {
    max-height: 76px;
    width: auto;
}

.header .toolbar .cart-btn {
    border: 1px solid #c7d8f0;
    background: #fff;
    border-radius: 10px;
    color: var(--sh-logo-blue-dark);
}

.header .toolbar .oman-header-locale-btn {
    border: 1px solid #c7d8f0;
    background: #fff;
    border-radius: 10px;
    color: var(--sh-logo-blue-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    line-height: 1.2;
}

.header .toolbar .oman-header-locale-btn:hover {
    border-color: var(--sh-logo-blue);
    background: #f2f7ff;
}

.header .toolbar .cart-btn:hover {
    border-color: var(--sh-logo-blue);
    background: #f2f7ff;
}

.header .toolbar .badge-info {
    background: var(--sh-logo-gold);
    color: #14263f;
}

.header .search .form-control {
    border: 1px solid #c9d9ee;
    border-radius: 10px;
    background: #fff;
}

.header .search .btn {
    border: 1px solid #c9d9ee;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: var(--sh-logo-blue-dark);
    background: #fff;
}

html[dir="rtl"] .header .search .btn {
    border-right: 1px solid #c9d9ee;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.main-navbar-wrapper {
    border-top: 1px solid #dbe6f4;
    border-bottom: 1px solid #dbe6f4;
    background: #fff;
}

.main-navbar-wrapper .navbar-nav .nav-link,
.main-navbar-wrapper .navbar-nav .nav-link a,
.main-navbar-wrapper .dropdown-toggle {
    color: var(--sh-logo-blue-dark) !important;
    font-weight: 700;
}

.main-navbar-wrapper .navbar-nav .nav-link:hover,
.main-navbar-wrapper .navbar-nav .nav-link:focus,
.main-navbar-wrapper .dropdown-toggle:hover {
    color: var(--sh-logo-blue) !important;
}

.main-navbar-wrapper .navbar-nav .active > .nav-link,
.main-navbar-wrapper .navbar-nav .active > a.nav-link {
    color: var(--sh-logo-gold) !important;
}

.master-breadcrumb {
    background: linear-gradient(90deg, rgba(31, 79, 150, 0.08) 0%, rgba(227, 170, 33, 0.1) 100%);
    border-top: 1px solid #dbe6f4;
    border-bottom: 1px solid #dbe6f4;
}

html.lang-ar,
body.lang-ar,
html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
    font-family: "Cairo", sans-serif !important;
    text-align: right;
}

html.lang-en,
body.lang-en,
html[dir="ltr"],
html[dir="ltr"] body {
    direction: ltr;
    font-family: "Roboto", sans-serif !important;
}

html[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

.primary-content {
    padding-top: 1.25rem;
}

.oman-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 2rem;
    background: linear-gradient(120deg, #153b72 0%, #1f4f96 55%, #2f66b8 100%);
}

.oman-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 10%, rgba(227, 170, 33, 0.45), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.16), transparent 30%);
}

.oman-hero__content {
    position: relative;
    z-index: 1;
    padding: 3.2rem 2rem;
    color: var(--oman-white);
}

.oman-eyebrow {
    font-family: inherit;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.77rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    opacity: 0.92;
}

.oman-hero h1,
.oman-section h2 {
    font-family: inherit;
    font-weight: 800;
    line-height: 1.1;
}

.oman-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    max-width: 820px;
    margin-bottom: 0.9rem;
}

.oman-hero h1 span,
.oman-highlight h2 span {
    color: var(--oman-accent);
}

.oman-subtitle {
    font-family: inherit;
    font-size: 1.03rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
    margin-bottom: 1.2rem;
}

.oman-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.oman-domain-search-hero {
    margin: 1rem 0 0.9rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    max-width: 860px;
}

.oman-domain-search-hero .form-control {
    height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

.oman-domain-search-hero .form-control::placeholder {
    color: rgba(255, 255, 255, 0.88);
}

.oman-btn {
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    font-family: inherit;
    font-weight: 700;
    transition: all 0.2s ease;
}

.oman-btn--primary {
    background: var(--sh-logo-gold);
    border: 1px solid var(--sh-logo-gold);
    color: #222;
}

.oman-btn--primary:hover {
    transform: translateY(-1px);
    background: var(--sh-logo-gold-soft);
}

.oman-btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.oman-btn--ghost:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.oman-trust {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oman-trust div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.65rem;
}

.oman-trust strong {
    font-family: inherit;
    display: block;
    font-size: 1.1rem;
}

.oman-trust span {
    font-family: inherit;
    font-size: 0.78rem;
    opacity: 0.92;
}

.oman-section {
    margin: 2rem 0;
}

.oman-section__head h2 {
    color: var(--oman-ink);
    margin: 0.15rem 0 0;
}

.oman-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oman-card,
.oman-mini-card {
    border-radius: 18px;
    background: var(--oman-white);
    border: 1px solid #dde5e7;
}

.oman-card {
    padding: 1.1rem;
}

.oman-card i {
    font-size: 1.35rem;
    color: var(--sh-logo-blue);
}

.oman-card h3 {
    font-family: inherit;
    font-size: 1.18rem;
    margin: 0.7rem 0 0.4rem;
    color: var(--oman-ink);
}

.oman-card p,
.oman-highlight p,
.oman-checklist li {
    font-family: inherit;
    color: var(--oman-muted);
    font-size: 0.95rem;
}

.oman-link {
    font-family: inherit;
    font-weight: 700;
    color: var(--sh-logo-blue-dark);
}

.oman-link:hover {
    color: var(--sh-logo-blue);
    text-decoration: none;
}

.oman-section--highlight .oman-highlight {
    border-radius: 22px;
    padding: 1.4rem;
    background: linear-gradient(145deg, #f5f8ff 0%, #edf3ff 100%);
    border: 1px solid #dbe6f6;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 1fr;
}

.oman-checklist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.oman-checklist li {
    margin-bottom: 0.6rem;
}

.oman-checklist i {
    color: var(--sh-logo-blue);
    margin-right: 0.45rem;
}

html[dir="rtl"] .oman-checklist i {
    margin-right: 0;
    margin-left: 0.45rem;
}

.oman-grid--support {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oman-mini-card {
    padding: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--oman-ink);
    font-family: inherit;
    font-weight: 600;
}

.oman-mini-card i {
    color: var(--sh-logo-blue);
}

.oman-mini-card:hover {
    text-decoration: none;
    color: var(--oman-brand-dark);
    border-color: #c4d7dc;
}

@media (max-width: 1199px) {
    .oman-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oman-grid--support {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .header .logo-img {
        max-height: 60px;
    }

    .main-navbar-wrapper {
        border-bottom: 0;
    }

    .oman-hero__content {
        padding: 2rem 1.2rem;
    }

    .oman-trust {
        grid-template-columns: 1fr;
    }

    .oman-domain-search-hero {
        grid-template-columns: 1fr;
    }

    .oman-grid {
        grid-template-columns: 1fr;
    }

    .oman-section--highlight .oman-highlight {
        grid-template-columns: 1fr;
    }
}

/* Client Area Home Modernization */
.tiles .tile {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "stat icon"
        "title title"
        "line line";
    align-items: center;
    gap: 0.25rem 0.75rem;
    min-height: 132px;
    padding: 0.85rem 1rem 0.65rem;
    border: 1px solid #d9e3f3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 6px 16px rgba(19, 56, 107, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tiles .tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(19, 56, 107, 0.15);
}

.tiles .tile i {
    grid-area: icon;
    justify-self: end;
    align-self: center;
    font-size: 3.25rem;
    line-height: 1;
    color: var(--sh-logo-blue);
    text-shadow: 0 0 18px rgba(31, 79, 150, 0.22);
}

.tiles .tile .stat {
    grid-area: stat;
    justify-self: start;
    align-self: center;
    font-size: 2.55rem;
    line-height: 1;
    margin: 0;
    color: var(--sh-logo-blue-dark);
    font-weight: 800;
}

.tiles .tile .title {
    grid-area: title;
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #2d3b4b;
    font-weight: 700;
}

.tiles .tile .highlight {
    grid-area: line;
    align-self: end;
    height: 3px;
    width: 100%;
}

.client-home-cards .card {
    border: 1px solid #d9e3f3;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(19, 56, 107, 0.08);
    overflow: hidden;
}

.client-home-cards .card .card-header {
    background: linear-gradient(90deg, #f8fbff 0%, #f1f7ff 100%);
    border-bottom: 1px solid #d9e3f3;
}

.client-home-cards .card .card-title {
    color: var(--sh-logo-blue-dark);
    font-weight: 800;
}

.client-home-cards .card .card-title i {
    color: var(--sh-logo-blue);
    filter: drop-shadow(0 0 8px rgba(31, 79, 150, 0.25));
}

.client-home-cards .card .list-group-item {
    border-color: #e6edf8;
}

.client-home-cards .card .list-group-item:hover {
    background: #f4f9ff;
}

.client-home-cards .card .card-footer {
    background: #fbfdff;
    border-top: 1px solid #e3ebf7;
}

/* RTL fixes for clientarea cards/panels */
html[dir="rtl"] .tiles .tile,
html[dir="rtl"] .client-home-cards .card,
html[dir="rtl"] .client-home-cards .card * {
    text-align: right;
}

html[dir="rtl"] .client-home-cards .card .card-title .float-right {
    float: left !important;
}

html[dir="rtl"] .client-home-cards .card .list-group-item i,
html[dir="rtl"] .client-home-cards .card .card-title i {
    margin-right: 0;
    margin-left: 0.35rem;
}

html[dir="rtl"] .client-home-cards .card .badge {
    margin-right: 0.3rem;
    margin-left: 0;
}

/* Addon/home panel alignment hardening for Arabic dashboard */
.oman-addon-html {
    max-width: 100%;
    overflow: visible;
    clear: both;
    position: relative;
}

.oman-addon-html * {
    max-width: none;
}

html[dir="rtl"] .tiles .row,
html[dir="rtl"] .client-home-cards .row {
    direction: rtl;
}

html[dir="rtl"] .tiles .tile {
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon stat"
        "title title"
        "line line";
}

html[dir="rtl"] .tiles .tile i {
    justify-self: start;
}

html[dir="rtl"] .tiles .tile .stat {
    justify-self: end;
}

html[dir="rtl"] .client-home-cards .card .card-header,
html[dir="rtl"] .client-home-cards .card .card-body,
html[dir="rtl"] .client-home-cards .card .card-footer,
html[dir="rtl"] .oman-addon-html,
html[dir="rtl"] .oman-addon-html .card,
html[dir="rtl"] .oman-addon-html .panel,
html[dir="rtl"] .oman-addon-html .list-group-item {
    text-align: right !important;
}

html[dir="rtl"] .oman-addon-html .float-left {
    float: right !important;
}

html[dir="rtl"] .oman-addon-html .float-right {
    float: left !important;
}

html[dir="rtl"] .oman-addon-html .pull-left {
    float: right !important;
}

html[dir="rtl"] .oman-addon-html .pull-right {
    float: left !important;
}

html[dir="rtl"] .oman-addon-html .row {
    direction: rtl;
}

.oman-addon-html .card,
.oman-addon-html .panel,
.oman-addon-html .marketconnect-promo,
.oman-addon-html .weebly-sso {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

html[dir="rtl"] .oman-addon-html,
html[dir="rtl"] .oman-addon-html > div,
html[dir="rtl"] .oman-addon-html .marketconnect-promo,
html[dir="rtl"] .oman-addon-html .weebly-sso,
html[dir="rtl"] .oman-addon-html [class*="weebly"],
html[dir="rtl"] .oman-addon-html [class*="promo"] {
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

html[dir="rtl"] .oman-addon-html .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

@media (max-width: 1199px) {
    .tiles .tile i {
        font-size: 2.7rem;
    }

    .tiles .tile .stat {
        font-size: 2.2rem;
    }
}

html[dir="rtl"] .primary-content > h1,
html[dir="rtl"] .primary-content > h2,
html[dir="rtl"] .primary-content > h3,
html[dir="rtl"] .primary-content .h1,
html[dir="rtl"] .primary-content .h2,
html[dir="rtl"] .primary-content .h3 {
    text-align: right;
}

/* Domains Page Redesign */
.oman-domains-page {
    margin-top: 0.75rem;
}

.oman-domains-hero {
    border: 1px solid #d8e5f6;
    border-radius: 16px;
    background: linear-gradient(120deg, #f8fbff 0%, #eef5ff 100%);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.oman-domains-hero h1 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--sh-logo-blue-dark);
    font-weight: 800;
}

.oman-domains-hero p {
    margin: 0.35rem 0 0 0;
    color: #4d5f73;
    font-size: 0.92rem;
}

.oman-domains-hero__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oman-domains-hero__actions .btn {
    border-radius: 999px;
    font-weight: 700;
}

.oman-domain-bulk-actions {
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(24, 61, 116, 0.08);
}

.oman-domain-bulk-actions .btn {
    border: 0;
    border-left: 1px solid #d9e4f5;
    background: #fff;
    color: var(--sh-logo-blue-dark);
    font-weight: 700;
}

html[dir="rtl"] .oman-domain-bulk-actions .btn {
    border-left: 0;
    border-right: 1px solid #d9e4f5;
}

.oman-domain-bulk-actions .btn:hover {
    background: #f4f9ff;
    color: var(--sh-logo-blue);
}

.oman-domains-table-wrap {
    border: 1px solid #d9e4f5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(19, 56, 107, 0.08);
}

#tableDomainsList_wrapper {
    padding: 0.9rem;
}

#tableDomainsList_wrapper .dataTables_filter input {
    border: 1px solid #c8d9f0;
    border-radius: 10px;
    min-width: 260px;
    background: #fff;
}

#tableDomainsList_wrapper .dataTables_length select {
    border: 1px solid #c8d9f0;
    border-radius: 10px;
    background: #fff;
}

#tableDomainsList.table thead th {
    background: #f2f7ff;
    color: #234c82;
    font-weight: 800;
    border-bottom: 1px solid #d7e4f6;
}

#tableDomainsList.table tbody td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

#tableDomainsList.table tbody tr {
    transition: background 0.15s ease;
}

#tableDomainsList.table tbody tr:hover {
    background: #f8fbff;
}

#tableDomainsList.table tbody tr:nth-child(even) {
    background: #fcfdff;
}

#tableDomainsList .status {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
}

#tableDomainsList td a[target="_blank"] {
    font-weight: 700;
}

#tableDomainsList .ssl-info img {
    width: 28px !important;
}

#tableDomainsList th:last-child,
#tableDomainsList td:last-child {
    width: 110px;
    min-width: 110px;
}

#tableDomainsList .btn-group .btn-outline-primary {
    border-color: #c7d9f2;
    color: #204a83;
    background: #fff;
}

#tableDomainsList .btn-group .btn-outline-primary:hover {
    background: #edf4ff;
    border-color: #9cbce6;
}

#tableDomainsList .dropdown-menu {
    border: 1px solid #d7e4f6;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(21, 58, 110, 0.12);
}

#tableDomainsList .dropdown-item {
    font-weight: 600;
}

html[dir="rtl"] #tableDomainsList_wrapper .dataTables_filter {
    text-align: left;
}

html[dir="rtl"] #tableDomainsList_wrapper .dataTables_info,
html[dir="rtl"] #tableDomainsList_wrapper .dataTables_length {
    text-align: right;
}

@media (max-width: 991px) {
    .oman-domains-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    html[dir="rtl"] .oman-domains-hero {
        align-items: flex-end;
    }

    #tableDomainsList_wrapper .dataTables_filter input {
        min-width: 160px;
    }
}

/* Domain Overview Redesign */
.oman-domain-overview-hero {
    border: 1px solid #d8e5f6;
    border-radius: 14px;
    padding: 0.95rem;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #f8fbff 0%, #eef5ff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.oman-domain-overview-hero h4 {
    margin: 0;
    color: var(--sh-logo-blue-dark);
    font-weight: 800;
}

.oman-domain-overview-hero p {
    margin: 0.35rem 0 0;
    color: #4c6078;
    font-size: 0.92rem;
}

.oman-domain-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.oman-domain-overview-actions .btn {
    border-radius: 999px;
    font-weight: 700;
}

.oman-domain-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.oman-domain-info-card {
    border: 1px solid #dce7f6;
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem 0.85rem;
}

.oman-domain-info-card label {
    display: block;
    margin-bottom: 0.3rem;
    color: #2f568c;
    font-weight: 800;
    font-size: 0.9rem;
}

.oman-domain-info-card div {
    color: #1c2f46;
    font-weight: 600;
}

@media (max-width: 991px) {
    .oman-domain-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Invoices Page Redesign */
.oman-invoices-page {
    margin-top: 0.75rem;
}

.oman-invoices-hero {
    border: 1px solid #d8e5f6;
    border-radius: 16px;
    background: linear-gradient(120deg, #f8fbff 0%, #eef5ff 100%);
    padding: 1rem 1.1rem;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.oman-invoices-hero h1 {
    margin: 0;
    color: var(--sh-logo-blue-dark);
    font-weight: 800;
    font-size: 1.35rem;
}

.oman-invoices-hero p {
    margin: 0.3rem 0 0 0;
    color: #4e647a;
    font-size: 0.92rem;
}

.oman-invoices-hero__action .btn {
    border-radius: 999px;
    font-weight: 700;
}

.oman-invoices-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.oman-invoices-summary__item {
    border: 1px solid #dce7f6;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.oman-invoices-summary__item span {
    display: block;
    color: #57708a;
    font-size: 0.85rem;
}

.oman-invoices-summary__item strong {
    color: #1e4a84;
    font-size: 1.07rem;
}

.oman-invoices-table-wrap {
    border: 1px solid #d9e4f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(19, 56, 107, 0.08);
    overflow: hidden;
}

#tableInvoicesList_wrapper {
    padding: 0.9rem;
}

#tableInvoicesList_wrapper .dataTables_filter input {
    border: 1px solid #c8d9f0;
    border-radius: 10px;
    min-width: 240px;
}

#tableInvoicesList_wrapper .dataTables_length select {
    border: 1px solid #c8d9f0;
    border-radius: 10px;
}

#tableInvoicesList.table thead th {
    background: #f2f7ff;
    color: #234c82;
    font-weight: 800;
    border-bottom: 1px solid #d7e4f6;
}

#tableInvoicesList.table tbody td {
    vertical-align: middle;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

#tableInvoicesList.table tbody tr:nth-child(even) {
    background: #fcfdff;
}

#tableInvoicesList.table tbody tr:hover {
    background: #f8fbff;
}

#tableInvoicesList .status {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .oman-invoices-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    html[dir="rtl"] .oman-invoices-hero {
        align-items: flex-end;
    }

    .oman-invoices-summary {
        grid-template-columns: 1fr;
    }
}

/* RTL Dropdown Alignment Fixes */
html[dir="rtl"] .navbar-nav .dropdown-menu,
html[dir="rtl"] .main-navbar-wrapper .dropdown-menu,
html[dir="rtl"] .topbar .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
    transform: none !important;
}

html[dir="rtl"] .navbar-nav .dropdown-menu .dropdown-item,
html[dir="rtl"] .main-navbar-wrapper .dropdown-menu .dropdown-item {
    text-align: right !important;
}

/* Account menu in topbar */
html[dir="rtl"] .secondary-nav .dropdown-menu,
html[dir="rtl"] .toolbar .dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

/* Ensure nested/right-positioned menus also align in RTL */
html[dir="rtl"] .dropdown-menu-right,
html[dir="rtl"] .dropdown-menu.dropdown-menu-right {
    right: 0 !important;
    left: auto !important;
}

/* Mobile collapsed nav dropdown position */
@media (max-width: 1199px) {
    html[dir="rtl"] #mainNavbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        text-align: right !important;
    }
}

/* Account dropdown on small screens: keep inside viewport */
@media (max-width: 767px) {
    html[dir="rtl"] .secondary-nav .dropdown-menu,
    html[dir="rtl"] .toolbar .dropdown-menu,
    html[dir="rtl"] .navbar-nav .dropdown-menu {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 70vh;
    }
}

/* Desktop RTL fix specifically for account/secondary right-drop menus */
@media (min-width: 1200px) {
    html[dir="rtl"] .main-navbar-wrapper .navbar-nav.ml-auto .dropdown-menu-right {
        right: auto !important;
        left: 0 !important;
        text-align: right !important;
        min-width: 230px;
        max-width: 320px;
    }
}

/* Footer Redesign */
.oman-footer {
    margin-top: 2rem;
    background: linear-gradient(120deg, #153b72 0%, #1f4f96 55%, #2f66b8 100%);
    border-top: 2px solid var(--sh-logo-gold);
    color: #eaf1ff;
}

.oman-footer .container {
    padding-top: 1.5rem;
    padding-bottom: 1.1rem;
}

.oman-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.oman-footer-top h4 {
    margin: 0;
    color: #fff;
    font-weight: 800;
}

.oman-footer-top p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.oman-footer-locale .btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
}

.oman-lang-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e3aa21;
    color: #173866;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.oman-footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.oman-footer-links h5 {
    color: #ffd978;
    font-weight: 800;
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.oman-footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.oman-footer-links a:hover {
    color: #ffd978;
}

.oman-footer .copyright.oman-footer-copy {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
}

@media (max-width: 991px) {
    .oman-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    html[dir="rtl"] .oman-footer-top {
        align-items: flex-end;
    }

    .oman-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .oman-footer-links {
        grid-template-columns: 1fr;
    }
}

/* Order form checkout styling */
html.order-lang-ar #order-standard_cart {
    direction: rtl;
    font-family: "Cairo", sans-serif;
}

html.order-lang-en #order-standard_cart {
    direction: ltr;
    font-family: "Roboto", sans-serif;
}

#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .sidebar-collapsed,
#order-standard_cart .product,
#order-standard_cart .order-summary,
#order-standard_cart .view-cart-items,
#order-standard_cart .view-cart-tabs .tab-content,
#order-standard_cart .view-cart-gateway-checkout {
    border-radius: 14px;
    overflow: hidden;
}

.oman-order-steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px 0;
}

.oman-order-steps__item {
    background: #f2f5f7;
    border: 1px solid #dbe2e7;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    color: #496169;
}

.oman-order-steps__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #d7e4ea;
    color: #12343c;
    font-weight: 700;
    margin-bottom: 6px;
}

.oman-order-steps__item small {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.oman-order-steps__item.is-active {
    background: #0b7a75;
    border-color: #0b7a75;
    color: #fff;
}

.oman-order-steps__item.is-active span {
    background: #f4b74a;
    color: #2c2a20;
}

#order-standard_cart .cart-body .header-lined h1 {
    font-weight: 700;
}

#order-standard_cart .btn.btn-primary,
#order-standard_cart .btn.btn-success {
    border-radius: 10px;
}

#order-standard_cart .view-cart-items-header {
    background: #1f4f96;
    border-radius: 10px 10px 0 0;
}

#order-standard_cart .view-cart-items {
    border: 1px solid #d9e3f1;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

#order-standard_cart .view-cart-items .item {
    border-top: 1px solid #edf2f9;
}

#order-standard_cart .view-cart-tabs .tab-content {
    border: 1px solid #d9e4f3;
    border-radius: 12px;
}

#order-standard_cart .view-cart-tabs .btn,
#order-standard_cart .view-cart-gateway-checkout .btn {
    border-radius: 10px;
}

#order-standard_cart .order-summary {
    border: 1px solid #d3dff0;
    border-bottom-color: #1f4f96;
    border-bottom-width: 4px;
    background-color: #0a5f74;
    box-shadow: 0 8px 18px rgba(25, 57, 106, 0.1);
}

#order-standard_cart .order-summary h2 {
    font-weight: 700;
}

#order-standard_cart .order-summary .btn-checkout {
    background: #e3aa21;
    border-color: #d59f1e;
    color: #1f2b3f;
    font-weight: 800;
}

#order-standard_cart .order-summary .btn-checkout:hover {
    background: #f4cf6a;
}

#order-standard_cart .order-summary .btn-continue-shopping {
    color: #1f4f96;
    font-weight: 700;
}

html.order-lang-ar #order-standard_cart .cart-sidebar,
html.order-lang-ar #order-standard_cart .secondary-cart-body {
    float: right;
}

html.order-lang-ar #order-standard_cart .cart-body,
html.order-lang-ar #order-standard_cart .secondary-cart-sidebar {
    float: left;
}

@media (max-width: 767px) {
    .oman-order-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Checkout payment/TOS control fallback */
form[action*="cart.php"] input[name="paymentmethod"],
form[action*="cart.php"] input[name="accepttos"],
#order-standard_cart input[name="paymentmethod"],
#order-standard_cart input[name="accepttos"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    vertical-align: -4px;
    accent-color: var(--oman-brand);
}

#order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue,
#order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue,
form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue,
form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue {
    position: relative;
    display: inline-block !important;
    width: 20px;
    height: 20px;
    margin: 0 8px 0 0;
    vertical-align: -5px;
    background: #fff !important;
    border: 2px solid #9fb2c8;
    box-shadow: 0 1px 2px rgba(15, 37, 43, 0.08);
}

#order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue,
form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue {
    border-radius: 50%;
}

#order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue,
form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue {
    border-radius: 4px;
}

#order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue.checked,
form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue.checked,
#order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue.checked,
form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue.checked {
    border-color: var(--oman-brand);
    background: var(--oman-brand) !important;
}

#order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue.checked::after,
form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue.checked::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}

#order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue.checked::after,
form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue.checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue.hover,
#order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue.focus,
#order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue.hover,
#order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue.focus,
form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue.hover,
form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue.focus,
form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue.hover,
form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue.focus {
    border-color: var(--oman-brand-dark);
    box-shadow: 0 0 0 3px rgba(0, 127, 115, 0.16);
}

html[dir="rtl"] form[action*="cart.php"] input[name="paymentmethod"],
html[dir="rtl"] form[action*="cart.php"] input[name="accepttos"],
html[dir="rtl"] #order-standard_cart input[name="paymentmethod"],
html[dir="rtl"] #order-standard_cart input[name="accepttos"],
html[dir="rtl"] #order-standard_cart label:has(input[name="paymentmethod"]) .iradio_square-blue,
html[dir="rtl"] #order-standard_cart label:has(input[name="accepttos"]) .icheckbox_square-blue,
html[dir="rtl"] form[action*="cart.php"] label:has(input[name="paymentmethod"]) .iradio_square-blue,
html[dir="rtl"] form[action*="cart.php"] label:has(input[name="accepttos"]) .icheckbox_square-blue {
    margin-right: 0;
    margin-left: 8px;
}
