/* =========================================================
   AL-OQAB ERP - COMMERCIAL ARABIC UI v1.5.0
   ========================================================= */

:root {
    --oq-primary: #123b52;
    --oq-primary-2: #18536f;
    --oq-primary-soft: #eaf2f6;

    --oq-gold: #c79635;
    --oq-gold-dark: #a87920;
    --oq-gold-soft: #fbf5e8;

    --oq-bg: #f4f7f9;
    --oq-surface: #ffffff;
    --oq-surface-2: #f8fafb;

    --oq-text: #17232d;
    --oq-muted: #667784;
    --oq-border: #dce5ea;
    --oq-border-strong: #c9d5dc;

    --oq-success: #18815c;
    --oq-danger: #c44444;
    --oq-warning: #b98016;
    --oq-info: #25739b;

    --oq-radius-sm: 8px;
    --oq-radius: 12px;
    --oq-radius-lg: 18px;

    --oq-shadow-sm: 0 2px 8px rgba(20, 47, 62, .06);
    --oq-shadow: 0 8px 24px rgba(20, 47, 62, .08);
    --oq-shadow-lg: 0 18px 50px rgba(20, 47, 62, .12);

    --oq-transition: 180ms ease;
}

/* ---------- Arabic foundation ---------- */

html {
    direction: rtl;
    scroll-behavior: smooth;
    background: var(--oq-bg);
}

body {
    direction: rtl;
    text-align: right;
    margin: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(199,150,53,.06), transparent 28rem),
        var(--oq-bg);

    color: var(--oq-text);

    font-family:
        "Noto Kufi Arabic",
        "Noto Sans Arabic",
        "IBM Plex Sans Arabic",
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif !important;

    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background: var(--oq-gold);
    color: #fff;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--oq-text);
    font-family: inherit !important;
    font-weight: 800;
    line-height: 1.55;
}

h1 {
    font-size: clamp(25px, 2.1vw, 34px);
}

h2 {
    font-size: clamp(21px, 1.7vw, 28px);
}

h3 {
    font-size: 19px;
}

h4 {
    font-size: 17px;
}

p,
label,
span,
small,
td,
th,
input,
select,
textarea,
button,
a {
    font-family: inherit !important;
}

small,
.text-muted,
.muted {
    color: var(--oq-muted) !important;
}

a {
    color: var(--oq-primary-2);
    text-decoration: none;
    transition: color var(--oq-transition);
}

a:hover {
    color: var(--oq-gold-dark);
}

/* ---------- Main content ---------- */

main,
.main-content,
.content,
.page-content,
.dashboard-content {
    line-height: 1.8;
}

.container,
.container-fluid {
    padding-inline: clamp(16px, 2vw, 30px);
}

/* ---------- Page headings ---------- */

.page-header,
.content-header,
.section-header,
.dashboard-header {
    position: relative;
    margin-bottom: 22px !important;
    padding: 18px 20px !important;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--oq-border);
    border-radius: var(--oq-radius);
    box-shadow: var(--oq-shadow-sm);
}

.page-header::before,
.content-header::before,
.section-header::before {
    content: "";
    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 8px;
    background: linear-gradient(
        to bottom,
        var(--oq-gold),
        var(--oq-primary)
    );
}

/* ---------- Cards and panels ---------- */

.card,
.panel,
.widget,
.stat-card,
.dashboard-card,
.box,
.content-box {
    background: var(--oq-surface) !important;
    border: 1px solid var(--oq-border) !important;
    border-radius: var(--oq-radius) !important;
    box-shadow: var(--oq-shadow-sm) !important;
    overflow: hidden;
}

.card:hover,
.dashboard-card:hover,
.stat-card:hover {
    box-shadow: var(--oq-shadow) !important;
}

.card-header,
.panel-heading,
.box-header {
    background:
        linear-gradient(
            90deg,
            var(--oq-primary-soft),
            rgba(255,255,255,.96)
        ) !important;

    border-bottom: 1px solid var(--oq-border) !important;
    padding: 15px 18px !important;
    color: var(--oq-primary) !important;
    font-weight: 800 !important;
}

.card-body,
.panel-body,
.box-body {
    padding: 18px !important;
}

/* ---------- Section separators ---------- */

section,
.form-section,
.data-section,
.report-section {
    position: relative;
}

section + section,
.form-section + .form-section,
.data-section + .data-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--oq-border);
}

hr {
    border: 0 !important;
    height: 1px !important;
    margin: 25px 0 !important;
    background:
        linear-gradient(
            to left,
            transparent,
            var(--oq-border-strong) 15%,
            var(--oq-border-strong) 85%,
            transparent
        ) !important;
}

/* ---------- Forms ---------- */

label,
.form-label {
    display: block;
    margin-bottom: 7px;
    color: #344650;
    font-size: 14px;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px !important;

    color: var(--oq-text) !important;
    background: #fff !important;

    border: 1px solid var(--oq-border-strong) !important;
    border-radius: var(--oq-radius-sm) !important;

    font-size: 14.5px !important;

    transition:
        border-color var(--oq-transition),
        box-shadow var(--oq-transition),
        background var(--oq-transition);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none !important;
    border-color: var(--oq-primary-2) !important;
    box-shadow:
        0 0 0 3px rgba(24,83,111,.10) !important;
}

input::placeholder,
textarea::placeholder {
    color: #9aa9b2 !important;
    opacity: 1;
}

.form-group,
.mb-3 {
    margin-bottom: 17px !important;
}

/* ---------- Buttons ---------- */

button,
.btn,
input[type="submit"],
input[type="button"] {
    min-height: 42px;
    padding: 8px 17px !important;

    border-radius: 9px !important;
    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--oq-transition),
        box-shadow var(--oq-transition),
        background var(--oq-transition);
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
button.primary,
input[type="submit"] {
    background:
        linear-gradient(
            135deg,
            var(--oq-primary),
            var(--oq-primary-2)
        ) !important;

    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 5px 14px rgba(18,59,82,.17);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(18,59,82,.23);
}

.btn-success {
    background: var(--oq-success) !important;
    border-color: var(--oq-success) !important;
    color: #fff !important;
}

.btn-danger {
    background: var(--oq-danger) !important;
    border-color: var(--oq-danger) !important;
    color: #fff !important;
}

.btn-warning {
    background: var(--oq-warning) !important;
    border-color: var(--oq-warning) !important;
    color: #fff !important;
}

.btn-secondary,
.btn-light {
    color: var(--oq-text) !important;
    background: #fff !important;
    border-color: var(--oq-border-strong) !important;
}

/* ---------- Tables ---------- */

.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--oq-border);
    border-radius: var(--oq-radius);
    background: #fff;
}

table,
.table {
    width: 100%;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;

    background: #fff;
    color: var(--oq-text);
}

table thead th,
.table thead th {
    padding: 13px 12px !important;

    background: #eef4f7 !important;
    color: var(--oq-primary) !important;

    border-bottom: 2px solid #d5e0e6 !important;

    font-size: 13.5px;
    font-weight: 800 !important;
    white-space: nowrap;
    text-align: right !important;
}

table tbody td,
.table tbody td {
    padding: 12px !important;

    border-bottom: 1px solid #edf1f3 !important;

    font-size: 14px;
    vertical-align: middle !important;
    text-align: right;
}

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

table tbody tr:hover,
.table tbody tr:hover {
    background: #f3f8fa !important;
}

/* ---------- Badges ---------- */

.badge,
.status-badge,
.label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;
    padding: 4px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}

/* ---------- Alerts ---------- */

.alert,
.message,
.notification {
    padding: 13px 16px !important;
    margin-bottom: 16px;

    border-radius: var(--oq-radius-sm) !important;
    border: 1px solid transparent;
    border-right-width: 4px !important;
}

.alert-success {
    background: #edf9f4 !important;
    border-color: #b9e7d4 !important;
    color: #176348 !important;
}

.alert-danger,
.alert-error {
    background: #fff1f1 !important;
    border-color: #efcccc !important;
    color: #953434 !important;
}

.alert-warning {
    background: #fff8e9 !important;
    border-color: #eedaa8 !important;
    color: #795b18 !important;
}

.alert-info {
    background: #edf7fb !important;
    border-color: #bfdeeb !important;
    color: #255e76 !important;
}

/* ---------- Sidebar ---------- */

.sidebar,
aside.sidebar,
.nav-sidebar {
    background:
        linear-gradient(
            180deg,
            #123b52 0%,
            #0d3044 100%
        ) !important;

    color: rgba(255,255,255,.88) !important;

    border-left: 1px solid rgba(255,255,255,.06);
    box-shadow: -5px 0 22px rgba(10,30,42,.08);
}

.sidebar a,
.sidebar .nav-link,
.nav-sidebar a {
    color: rgba(255,255,255,.82) !important;

    border-radius: 8px;

    margin: 2px 8px;
    padding: 9px 12px !important;

    transition:
        background var(--oq-transition),
        color var(--oq-transition),
        transform var(--oq-transition);
}

.sidebar a:hover,
.sidebar .nav-link:hover {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
}

.sidebar a.active,
.sidebar .nav-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(199,150,53,.25),
            rgba(255,255,255,.09)
        ) !important;

    color: #fff !important;

    border-right: 3px solid var(--oq-gold);
}

.sidebar .nav-header,
.sidebar .menu-title {
    margin: 18px 15px 6px;
    color: #e0bd75 !important;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .3px;
}

/* ---------- Navbar ---------- */

.navbar,
.topbar,
header.navbar {
    background: rgba(255,255,255,.95) !important;

    border-bottom: 1px solid var(--oq-border) !important;

    box-shadow: 0 3px 14px rgba(22,53,68,.05);

    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--oq-primary) !important;
    font-weight: 900 !important;
}

/* ---------- Statistics ---------- */

.stat-card,
.kpi-card,
.metric-card {
    position: relative;
    padding: 18px !important;

    background:
        linear-gradient(
            145deg,
            #fff 0%,
            #fbfcfd 100%
        ) !important;

    border: 1px solid var(--oq-border) !important;
}

.stat-card::after,
.kpi-card::after,
.metric-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;

    width: 3px;

    background: var(--oq-gold);
    border-radius: 8px;
}

.stat-value,
.kpi-value,
.metric-value {
    color: var(--oq-primary);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.4;
}

/* ---------- Dropdown ---------- */

.dropdown-menu {
    padding: 7px !important;

    background: #fff !important;

    border: 1px solid var(--oq-border) !important;
    border-radius: 10px !important;

    box-shadow: var(--oq-shadow-lg) !important;
}

.dropdown-item {
    padding: 8px 11px !important;
    border-radius: 7px;
}

.dropdown-item:hover {
    background: var(--oq-primary-soft) !important;
}

/* ---------- Modal ---------- */

.modal-content {
    border: 1px solid var(--oq-border) !important;
    border-radius: var(--oq-radius-lg) !important;
    box-shadow: var(--oq-shadow-lg) !important;
}

.modal-header {
    border-bottom: 1px solid var(--oq-border) !important;
}

.modal-footer {
    border-top: 1px solid var(--oq-border) !important;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    padding: 8px 0 !important;
    margin-bottom: 15px !important;

    background: transparent !important;

    color: var(--oq-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    float: right !important;
    padding-left: .5rem;
    padding-right: .5rem;
}

/* ---------- Search ---------- */

.search-box,
.search-container {
    position: relative;
}

.search-box input,
.search-container input {
    background: #fff !important;
}

/* ---------- Scrollbars ---------- */

* {
    scrollbar-width: thin;
    scrollbar-color: #b7c5cd #edf2f5;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #edf2f5;
}

::-webkit-scrollbar-thumb {
    background: #b7c5cd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #93a7b3;
}

/* ---------- Login UI ---------- */

.login-page,
.auth-page,
body.login {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(199,150,53,.13),
            transparent 28rem
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(24,83,111,.12),
            transparent 30rem
        ),
        #eef3f6 !important;
}

.login-card,
.auth-card,
.login-box,
.login-panel {
    width: min(440px, calc(100vw - 32px));

    margin-inline: auto;

    background: rgba(255,255,255,.97) !important;

    border: 1px solid var(--oq-border) !important;
    border-radius: 20px !important;

    box-shadow: var(--oq-shadow-lg) !important;

    overflow: hidden;
}

/* ---------- Better Arabic readability ---------- */

.sidebar,
.sidebar *,
.navbar,
.navbar *,
table,
form,
button,
input,
select,
textarea {
    letter-spacing: 0 !important;
}

td,
th,
label,
button,
.btn,
.nav-link {
    word-spacing: 1px;
}

/* ---------- Mobile ---------- */

@media (max-width: 991px) {

    body {
        font-size: 14.5px;
    }

    .container,
    .container-fluid {
        padding-inline: 13px;
    }

    .card-body,
    .panel-body,
    .box-body {
        padding: 14px !important;
    }

    .page-header,
    .content-header,
    .section-header {
        padding: 14px 15px !important;
        margin-bottom: 15px !important;
    }

    table thead th,
    table tbody td,
    .table thead th,
    .table tbody td {
        padding: 10px !important;
        font-size: 13px;
    }

    button,
    .btn {
        min-height: 41px;
    }
}

@media (max-width: 600px) {

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 20px;
    }

    .stat-value,
    .kpi-value,
    .metric-value {
        font-size: 21px;
    }

    input,
    select,
    textarea,
    .form-control {
        font-size: 16px !important;
    }
}

/* ---------- Print ---------- */

@media print {

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12px;
    }

    .sidebar,
    .navbar,
    .topbar,
    .no-print {
        display: none !important;
    }

    .card,
    .panel,
    .box {
        box-shadow: none !important;
        border: 1px solid #bbb !important;
    }
}

/* =========================================================
   AL-OQAB ERP UI v1.5.1
   Turquoise + Desert Professional Theme
   ========================================================= */

:root {
    --oq-primary: #0f5960;
    --oq-primary-2: #14757b;
    --oq-primary-3: #1a8b8f;

    --oq-primary-soft: #e9f5f4;
    --oq-primary-soft-2: #f2fbfa;

    --oq-gold: #c69b62;
    --oq-gold-dark: #a77a43;
    --oq-gold-soft: #f7efe3;

    --oq-sand: #d7b98d;
    --oq-sand-soft: #f7f1e8;
    --oq-sand-deep: #b98e59;

    --oq-bg: #f3f6f5;
    --oq-surface: #ffffff;
    --oq-surface-2: #f8fbfa;

    --oq-text: #1e2a2b;
    --oq-muted: #687879;

    --oq-border: #d8e3e1;
    --oq-border-strong: #c1d2cf;

    --oq-success: #2d8469;
    --oq-danger: #bd5353;
    --oq-warning: #b88942;
    --oq-info: #28798a;

    --oq-radius-sm: 9px;
    --oq-radius: 14px;
    --oq-radius-lg: 20px;

    --oq-shadow-sm: 0 2px 10px rgba(15,89,96,.055);
    --oq-shadow: 0 10px 28px rgba(15,89,96,.09);
    --oq-shadow-lg: 0 20px 55px rgba(15,89,96,.13);
}

/* ---------- Overall background ---------- */

body {
    background:
        radial-gradient(circle at 100% 0%, rgba(198,155,98,.10), transparent 28rem),
        radial-gradient(circle at 0% 100%, rgba(20,117,123,.07), transparent 30rem),
        linear-gradient(180deg, #f6f8f7 0%, #f1f5f4 100%) !important;
}

/* ---------- Stronger visual hierarchy ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #173c3f !important;
}

h1 {
    font-weight: 900 !important;
}

h2,
h3 {
    font-weight: 850 !important;
}

/* ---------- Page sections ---------- */

.page-header,
.content-header,
.section-header,
.dashboard-header {
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.98),
            rgba(233,245,244,.82)
        ) !important;

    border: 1px solid #d4e3e0 !important;
    border-right: 5px solid var(--oq-primary-2) !important;

    padding: 20px 22px !important;
    margin-bottom: 24px !important;

    box-shadow: 0 6px 20px rgba(15,89,96,.06) !important;
}

.page-header::before,
.content-header::before,
.section-header::before {
    display: none !important;
}

/* ---------- Main section separation ---------- */

section,
.form-section,
.data-section,
.report-section,
.dashboard-section {
    background: rgba(255,255,255,.55);
    border-radius: 16px;
}

section + section,
.form-section + .form-section,
.data-section + .data-section,
.report-section + .report-section,
.dashboard-section + .dashboard-section {
    margin-top: 30px !important;
    padding-top: 30px !important;

    border-top: 2px solid transparent !important;

    background-image:
        linear-gradient(#f5f8f7, #f5f8f7),
        linear-gradient(
            to left,
            transparent,
            rgba(20,117,123,.30) 15%,
            rgba(198,155,98,.38) 50%,
            rgba(20,117,123,.30) 85%,
            transparent
        );

    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ---------- Cards ---------- */

.card,
.panel,
.widget,
.stat-card,
.dashboard-card,
.box,
.content-box {
    border: 1px solid #d8e4e1 !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            150deg,
            #ffffff 0%,
            #fbfdfc 100%
        ) !important;

    box-shadow:
        0 4px 16px rgba(15,89,96,.055) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}

.card:hover,
.dashboard-card:hover,
.stat-card:hover,
.box:hover {
    transform: translateY(-2px);

    border-color: #bfd7d3 !important;

    box-shadow:
        0 10px 28px rgba(15,89,96,.10) !important;
}

.card-header,
.panel-heading,
.box-header {
    background:
        linear-gradient(
            90deg,
            rgba(233,245,244,.96),
            rgba(247,239,227,.65)
        ) !important;

    color: #15575c !important;

    padding: 16px 20px !important;

    border-bottom:
        1px solid #d5e1df !important;

    font-size: 15px !important;
    font-weight: 900 !important;
}

.card-body,
.panel-body,
.box-body {
    padding: 20px !important;
}

/* ---------- Visual separator blocks ---------- */

.card + .card,
.panel + .panel,
.box + .box {
    margin-top: 20px;
}

/* ---------- Sidebar ---------- */

.sidebar,
aside.sidebar,
.nav-sidebar {
    background:
        linear-gradient(
            180deg,
            #0e5b60 0%,
            #0c4c51 48%,
            #093c41 100%
        ) !important;

    border-left:
        1px solid rgba(255,255,255,.07) !important;

    box-shadow:
        -6px 0 24px rgba(9,60,65,.10) !important;
}

.sidebar a,
.sidebar .nav-link,
.nav-sidebar a {
    margin: 3px 9px !important;
    padding: 10px 13px !important;

    border-radius: 9px !important;

    color: rgba(255,255,255,.84) !important;
}

.sidebar a:hover,
.sidebar .nav-link:hover {
    background:
        rgba(255,255,255,.10) !important;

    color: #fff !important;
}

.sidebar a.active,
.sidebar .nav-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(215,185,141,.26),
            rgba(255,255,255,.10)
        ) !important;

    border-right:
        4px solid #ddb878 !important;

    color: #fff !important;
}

.sidebar .nav-header,
.sidebar .menu-title {
    color: #ead0a7 !important;

    margin-top: 22px !important;
    margin-bottom: 7px !important;

    font-size: 11px !important;
    font-weight: 900 !important;
}

/* ---------- Top navbar ---------- */

.navbar,
.topbar,
header.navbar {
    background:
        rgba(255,255,255,.97) !important;

    border-bottom:
        1px solid #d5e3e0 !important;

    box-shadow:
        0 3px 16px rgba(15,89,96,.05) !important;
}

.navbar-brand {
    color: #0f5960 !important;
}

/* ---------- Forms ---------- */

label,
.form-label {
    color: #315557 !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    margin-bottom: 8px !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control {
    min-height: 46px !important;

    border:
        1px solid #cbdad7 !important;

    border-radius:
        10px !important;

    background:
        #ffffff !important;

    color:
        #1f3031 !important;

    padding:
        10px 13px !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color:
        #21838a !important;

    box-shadow:
        0 0 0 4px rgba(32,130,137,.10) !important;
}

/* form grouping visual separation */

.form-group,
.mb-3 {
    position: relative;
    margin-bottom: 20px !important;
}

.form-row,
.row {
    row-gap: 14px;
}

/* ---------- Buttons ---------- */

.btn-primary,
button.primary,
input[type="submit"] {
    background:
        linear-gradient(
            135deg,
            #0f6369,
            #16858a
        ) !important;

    box-shadow:
        0 6px 16px rgba(15,99,105,.18) !important;
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #0d585e,
            #11777d
        ) !important;
}

.btn-secondary,
.btn-light {
    background:
        #fffaf3 !important;

    border-color:
        #dfc8a4 !important;

    color:
        #725632 !important;
}

.btn-warning {
    background:
        #bd9257 !important;

    border-color:
        #bd9257 !important;
}

/* ---------- Tables ---------- */

.table-responsive {
    border:
        1px solid #d6e2df !important;

    border-radius:
        14px !important;

    box-shadow:
        0 3px 13px rgba(15,89,96,.04);

    overflow: auto;
}

table thead th,
.table thead th {
    background:
        linear-gradient(
            180deg,
            #e9f5f3,
            #e3efed
        ) !important;

    color:
        #164f54 !important;

    border-bottom:
        2px solid #bfd3cf !important;

    padding:
        14px 13px !important;
}

table tbody td,
.table tbody td {
    padding:
        13px !important;

    border-bottom:
        1px solid #edf2f1 !important;
}

table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
    background:
        #fafcfb !important;
}

table tbody tr:hover,
.table tbody tr:hover {
    background:
        #eef8f7 !important;
}

/* ---------- Statistics ---------- */

.stat-card,
.kpi-card,
.metric-card {
    padding:
        20px !important;

    border-top:
        3px solid #1c7b80 !important;
}

.stat-card::after,
.kpi-card::after,
.metric-card::after {
    right: 11px !important;
    top: 16px !important;
    bottom: 16px !important;

    width: 3px !important;

    background:
        linear-gradient(
            to bottom,
            #16858a,
            #d2ad75
        ) !important;
}

.stat-value,
.kpi-value,
.metric-value {
    color:
        #0e5b60 !important;
}

/* ---------- Clear horizontal separators ---------- */

hr {
    height:
        2px !important;

    margin:
        28px 0 !important;

    background:
        linear-gradient(
            to left,
            transparent 0%,
            rgba(20,117,123,.16) 10%,
            rgba(20,117,123,.38) 35%,
            rgba(198,155,98,.55) 50%,
            rgba(20,117,123,.38) 65%,
            rgba(20,117,123,.16) 90%,
            transparent 100%
        ) !important;
}

/* ---------- Separate toolbar/actions ---------- */

.toolbar,
.actions,
.page-actions,
.card-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    padding: 12px 14px !important;

    margin-bottom: 18px !important;

    background:
        linear-gradient(
            90deg,
            rgba(233,245,244,.75),
            rgba(247,239,227,.50)
        ) !important;

    border:
        1px solid #d9e4e2 !important;

    border-radius:
        11px !important;
}

/* ---------- Alerts ---------- */

.alert {
    border-radius:
        11px !important;

    padding:
        14px 17px !important;
}

/* ---------- Login ---------- */

.login-page,
.auth-page,
body.login {
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(215,185,141,.19),
            transparent 30rem
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(20,117,123,.16),
            transparent 32rem
        ),
        linear-gradient(
            145deg,
            #eef5f3,
            #f8f2e8
        ) !important;
}

.login-card,
.auth-card,
.login-box,
.login-panel {
    border:
        1px solid #cfdedb !important;

    box-shadow:
        0 25px 65px rgba(15,89,96,.14) !important;
}

/* ---------- Better spacing ---------- */

main,
.main-content,
.content,
.page-content,
.dashboard-content {
    padding-top:
        10px;

    padding-bottom:
        30px;
}

.container,
.container-fluid {
    padding-inline:
        clamp(18px, 2.2vw, 34px) !important;
}

/* ---------- Better Arabic text ---------- */

body,
button,
input,
select,
textarea,
table {
    font-weight: 500;
}

.sidebar a,
.navbar,
.card-header,
table th,
label,
.btn {
    font-weight: 800 !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .page-header,
    .content-header,
    .section-header {
        padding:
            15px 17px !important;
    }

    .card-body,
    .panel-body,
    .box-body {
        padding:
            16px !important;
    }

    section + section,
    .form-section + .form-section,
    .data-section + .data-section {
        margin-top:
            22px !important;

        padding-top:
            22px !important;
    }
}


/* =========================================================
   AL-OQAB ERP BRANDING v1.5.2
   Customer identity + permanent Al-Oqab ownership signature
   ========================================================= */

.oq-company-identity {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.oq-company-logo {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(20,117,123,.11),
            rgba(215,185,141,.18)
        );

    border: 1px solid rgba(20,117,123,.16);

    color: #0f6369;
    font-weight: 900;
    font-size: 20px;

    overflow: hidden;
}

.oq-company-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 4px;
}

.oq-company-text {
    min-width: 0;
}

.oq-company-name {
    margin: 0;

    color: #174f53;

    font-size: 15px;
    font-weight: 900;

    line-height: 1.45;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oq-company-system {
    margin-top: 2px;

    color: #718082;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

/* Permanent ownership footer */

.oq-copyright {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 7px 12px;

    width: calc(100% - 26px);
    max-width: 920px;

    margin: 30px auto 16px;
    padding: 11px 16px;

    border: 1px solid #d8e4e1;
    border-radius: 11px;

    background:
        linear-gradient(
            90deg,
            rgba(233,245,244,.78),
            rgba(247,239,227,.72)
        );

    color: #53696a;

    font-size: 11.5px;
    line-height: 1.6;

    box-shadow:
        0 3px 12px rgba(15,89,96,.035);
}

.oq-copyright-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #0f6369;

    font-weight: 900;
}

.oq-copyright-eagle {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f6369;

    color: #f0d6aa;

    font-size: 13px;
    font-weight: 900;
}

.oq-copyright-divider {
    width: 1px;
    height: 18px;

    background: #ccd9d7;
}

.oq-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 3px 8px;

    border-radius: 999px;

    background: rgba(20,117,123,.09);

    color: #15686d;

    font-size: 10.5px;
    font-weight: 800;
}

.oq-license-badge::before {
    content: "●";

    color: #2e9878;

    font-size: 8px;
}

/* Ownership watermark, deliberately subtle */

.oq-ownership-mark {
    position: fixed;

    left: 14px;
    bottom: 11px;

    z-index: 999;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 8px;

    border: 1px solid rgba(15,99,105,.12);
    border-radius: 8px;

    background: rgba(255,255,255,.82);

    color: rgba(15,89,96,.62);

    font-size: 9px;
    font-weight: 800;

    backdrop-filter: blur(8px);

    pointer-events: none;
}

/* Print ownership notice */

@media print {

    .oq-ownership-mark {
        display: none !important;
    }

    .oq-copyright {
        border: 0 !important;
        box-shadow: none !important;

        background: transparent !important;

        color: #555 !important;

        font-size: 9px !important;
    }
}

/* Mobile */

@media (max-width: 700px) {

    .oq-company-logo {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .oq-company-name {
        font-size: 13px;
    }

    .oq-company-system {
        font-size: 10px;
    }

    .oq-copyright {
        width: calc(100% - 18px);

        padding: 10px 12px;

        font-size: 10.5px;
    }

    .oq-copyright-divider {
        display: none;
    }

    .oq-ownership-mark {
        left: 7px;
        bottom: 7px;

        opacity: .75;
    }
}


/* =====================================================
   AL-OQAB ERP BRANDING v1.5.3
   ===================================================== */

/* هوية الشركة أعلى القائمة الجانبية */

.sidebar .brand,
.sidebar .sidebar-brand,
.sidebar .brand-area,
.sidebar .company-brand,
.sidebar-header,
.oq-company-identity {
    min-height: 88px !important;
    padding: 14px 14px !important;

    display: flex !important;
    align-items: center !important;
    gap: 11px !important;

    border-bottom:
        1px solid rgba(255,255,255,.10) !important;
}

/* تكبير الشعار بدون تشويه */

.sidebar .brand img,
.sidebar .sidebar-brand img,
.sidebar .brand-area img,
.sidebar .company-brand img,
.sidebar-header img,
.oq-company-logo img {
    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;

    object-fit: contain !important;

    padding: 3px !important;

    border-radius: 12px !important;

    background:
        rgba(255,255,255,.07) !important;

    border:
        1px solid rgba(215,185,141,.25) !important;

    box-shadow:
        0 5px 15px rgba(0,0,0,.12) !important;
}

/* اسم الشركة التجريبي */

.sidebar .brand-name,
.sidebar .company-name,
.sidebar .brand-title,
.oq-company-name {
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 900 !important;

    line-height: 1.65 !important;
}

/* وصف صغير تحت الاسم */

.sidebar .brand-subtitle,
.sidebar .company-subtitle,
.oq-company-system {
    color: #d9c49d !important;

    font-size: 10px !important;
    font-weight: 700 !important;
}

/* =====================================================
   حقوق الملكية
   ===================================================== */

.oq-copyright {
    width: calc(100% - 36px) !important;
    max-width: 1000px !important;

    margin: 32px auto 18px !important;
    padding: 13px 18px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px 12px !important;

    background:
        linear-gradient(
            90deg,
            rgba(233,245,244,.96),
            rgba(248,240,228,.96)
        ) !important;

    border:
        1px solid #cfddda !important;

    border-radius:
        12px !important;

    color:
        #536768 !important;

    font-size:
        11.5px !important;

    box-shadow:
        0 4px 15px rgba(15,89,96,.05) !important;
}

.oq-copyright-brand {
    color:
        #0d676c !important;

    font-weight:
        900 !important;
}

.oq-copyright-eagle {
    width:
        27px !important;

    height:
        27px !important;

    background:
        #0e6267 !important;

    color:
        #e9ca94 !important;
}

/* توقيع صغير ثابت لا يزعج المستخدم */

.oq-ownership-mark {
    position:
        fixed !important;

    left:
        10px !important;

    bottom:
        10px !important;

    z-index:
        9999 !important;

    padding:
        6px 9px !important;

    background:
        rgba(255,255,255,.90) !important;

    border:
        1px solid rgba(15,99,105,.16) !important;

    border-radius:
        8px !important;

    color:
        rgba(14,98,103,.72) !important;

    font-size:
        9px !important;

    font-weight:
        800 !important;

    box-shadow:
        0 3px 10px rgba(15,89,96,.06) !important;

    backdrop-filter:
        blur(8px);
}

/* الموبايل */

@media (max-width: 700px) {

    .sidebar .brand img,
    .sidebar .sidebar-brand img,
    .sidebar .brand-area img,
    .sidebar .company-brand img,
    .sidebar-header img,
    .oq-company-logo img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .oq-copyright {
        width: calc(100% - 18px) !important;

        padding: 10px 11px !important;

        font-size: 10px !important;
    }
}


/* =========================================================
   AL-OQAB ERP OFFICIAL BRAND v1.5.4
   ========================================================= */

.oq-official-brand-v154 {
    width: calc(100% - 18px);
    margin: 9px auto 12px;

    padding: 10px 10px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.10),
            rgba(215,185,141,.08)
        );

    border:
        1px solid rgba(255,255,255,.10);

    box-shadow:
        0 7px 18px rgba(0,0,0,.08);
}

.oq-official-brand-v154 .oq-official-logo-wrap {
    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.oq-official-brand-v154 img {
    display: block !important;

    width: auto !important;
    max-width: 185px !important;

    height: auto !important;
    max-height: 78px !important;

    object-fit: contain !important;

    padding: 0 !important;
    margin: 0 auto !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}

.oq-official-brand-v154 .oq-official-brand-name {
    width: 100%;

    margin-top: 6px;

    color: #ffffff;

    text-align: center;

    font-size: 14px;
    font-weight: 900;

    line-height: 1.65;
}

.oq-official-brand-v154 .oq-official-brand-subtitle {
    margin-top: 1px;

    color: #e2c89c;

    text-align: center;

    font-size: 9.5px;
    font-weight: 700;
}

/*
   إذا كان القالب الحالي يحتوي شعارًا مصغرًا أضيف بالتحديث السابق،
   نخفي الصورة المصغرة فقط ونستخدم الشعار الرسمي أعلاه.
*/

.oq-company-logo {
    display: none !important;
}

/*
   إبقاء اسم الشركة الحالي وعدم جعله ضخمًا داخل القائمة.
*/

.oq-company-identity {
    min-height: auto !important;
}

.sidebar .oq-company-identity {
    padding-top: 5px !important;
}

/* Mobile */

@media (max-width: 700px) {

    .oq-official-brand-v154 {
        padding: 8px;
    }

    .oq-official-brand-v154 .oq-official-logo-wrap {
        min-height: 62px;
    }

    .oq-official-brand-v154 img {
        max-width: 150px !important;
        max-height: 62px !important;
    }

    .oq-official-brand-v154 .oq-official-brand-name {
        font-size: 12px;
    }
}


/* =========================================================
   AL-OQAB SOFTWARE OFFICIAL IDENTITY v1.5.5
   هذا هو الشعار الرسمي المعتمد لشركة العُقاب للبرمجيات
   ========================================================= */

.oq-official-brand-v154 {
    width: calc(100% - 18px) !important;

    margin: 8px auto 14px !important;
    padding: 12px 8px 10px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        linear-gradient(
            145deg,
            rgba(5,35,38,.30),
            rgba(255,255,255,.055)
        ) !important;

    border:
        1px solid rgba(222,190,129,.16) !important;

    border-radius:
        16px !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.10) !important;
}

.oq-official-logo-wrap {
    width: 100% !important;
    height: 120px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    overflow: hidden !important;

    background: transparent !important;
}

/* الشعار الرسمي */

.oq-official-brand-v154 .oq-official-logo-wrap img,
.oq-official-brand-v154 img {
    display: block !important;

    width: 112px !important;
    height: 112px !important;

    max-width: 112px !important;
    max-height: 112px !important;

    object-fit: contain !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 14px !important;

    background: #050505 !important;

    box-shadow:
        0 7px 20px rgba(0,0,0,.20) !important;
}

/*
 اسم شركة العُقاب موجود أصلًا داخل الشعار الرسمي،
 لذلك لا نكرر الاسم تحته.
*/

.oq-official-brand-name {
    display: none !important;
}

/* وصف صغير فقط */

.oq-official-brand-subtitle {
    display: block !important;

    margin-top: 6px !important;

    color: rgba(255,255,255,.63) !important;

    font-size: 9px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* حقوق الملكية */

.oq-copyright-brand {
    color: #0d696e !important;
    font-weight: 900 !important;
}

.oq-ownership-mark {
    color: rgba(15,89,96,.73) !important;
}

/* Mobile */

@media (max-width: 700px) {

    .oq-official-logo-wrap {
        height: 94px !important;
    }

    .oq-official-brand-v154 .oq-official-logo-wrap img,
    .oq-official-brand-v154 img {
        width: 88px !important;
        height: 88px !important;

        max-width: 88px !important;
        max-height: 88px !important;
    }
}

