* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #eef7ff;
    direction: rtl;
    color: #26384d;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 255px;
    height: 100vh;
    background: linear-gradient(180deg, #1f3b57, #15293d);
    color: #ffffff;
    overflow-y: auto;
    padding-bottom: 30px;
    box-shadow: -4px 0 18px rgba(20, 50, 80, 0.18);
}

.logo {
    padding: 23px 18px;
    font-size: 24px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar a {
    display: block;
    padding: 11px 20px;
    color: #eef7ff;
    text-decoration: none;
    font-size: 14px;
    border-right: 4px solid transparent;
    transition: 0.2s ease;
}

.sidebar a:hover {
    background: #2b587f;
    border-right-color: #f0c36a;
    color: #ffffff;
}

.menu-title {
    padding: 16px 20px 7px;
    color: #f0c36a;
    font-size: 13px;
    font-weight: bold;
}

/* Main content */
.main-content {
    margin-right: 255px;
    padding: 30px;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(113, 180, 235, 0.22), transparent 320px),
        linear-gradient(180deg, #f8fcff 0%, #eaf6ff 100%);
}

h1 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #17324d;
    font-size: 34px;
    font-weight: bold;
}

.welcome {
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #d8e9f7;
    color: #26384d;
    box-shadow: 0 8px 20px rgba(40, 80, 120, 0.06);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.card {
    background: #ffffff;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #d8e9f7;
    box-shadow: 0 10px 24px rgba(40, 80, 120, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: #f0c36a;
}

.card h3 {
    margin: 0 0 16px;
    color: #526b82;
    font-size: 16px;
}

.card p {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
    color: #1f3b57;
}

.placeholder {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #d8e9f7;
    box-shadow: 0 10px 24px rgba(40, 80, 120, 0.08);
    color: #26384d;
}

.placeholder h2 {
    color: #1f3b57;
}

/* Login page */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fcff 0%, #e9f6ff 45%, #dff0ff 100%);
}

.login-box {
    width: 390px;
    background: rgba(255, 255, 255, 0.98);
    padding: 34px 32px;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(40, 80, 120, 0.15);
    border: 1px solid #d8e9f7;
}

.login-box h2 {
    margin: 0;
    text-align: center;
    color: #17324d;
    font-size: 30px;
    font-weight: bold;
}

.login-box p {
    text-align: center;
    color: #60778e;
    margin-bottom: 24px;
}

.login-box label {
    display: block;
    margin-top: 16px;
    margin-bottom: 7px;
    color: #26384d;
    font-weight: bold;
    font-size: 14px;
}

.login-box input {
    width: 100%;
    padding: 13px;
    border: 1px solid #c8ddeb;
    border-radius: 12px;
    background: #f8fcff;
    outline: none;
    font-size: 15px;
    color: #26384d;
}

.login-box input:focus {
    border-color: #3f7ca8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(63, 124, 168, 0.13);
}

.login-box button {
    width: 100%;
    margin-top: 24px;
    padding: 13px;
    background: linear-gradient(135deg, #2f6f9f, #1f4f75);
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(40, 80, 120, 0.20);
    transition: 0.2s ease;
}

.login-box button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #357fb5, #1d486b);
}

.alert-error {
    background: #fff0ed;
    color: #a33a2b;
    padding: 11px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid #efc7bd;
}

/* General form elements */
input,
select,
textarea,
button {
    font-family: Tahoma, Arial, sans-serif;
}

/* Mobile */

@media (max-width: 900px) {

    body {
        font-size: 15px;
        overflow-x: hidden;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 320px;
        overflow-y: auto;
        box-shadow: none;
    }

    .logo {
        padding: 16px;
        font-size: 22px;
    }

    .menu-title {
        padding: 14px 15px 6px;
        font-size: 14px;
    }

    .sidebar a {
        padding: 11px 16px;
        font-size: 15px;
    }

    .main-content {
        margin-right: 0;
        padding: 16px;
        min-height: auto;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .welcome {
        padding: 12px;
        font-size: 15px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 14px;
    }

    .card {
        padding: 14px;
        border-radius: 12px;
    }

    .card h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 20px;
    }

    .placeholder {
        padding: 18px;
        border-radius: 12px;
    }

    .placeholder h2 {
        font-size: 22px;
    }

    .login-body {
        padding: 15px;
        align-items: center;
    }

    .login-box {
        width: 100%;
        max-width: 390px;
        padding: 26px 22px;
        border-radius: 18px;
    }

    .login-box h2 {
        font-size: 28px;
    }

    .login-box input {
        padding: 13px;
        font-size: 16px;
    }

    .login-box button {
        padding: 13px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {

    .cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .main-content {
        padding: 12px;
    }

    h1 {
        font-size: 24px;
    }

    .sidebar {
        max-height: 280px;
    }

    .sidebar a {
        font-size: 14px;
    }

    .login-box {
        max-width: 340px;
        padding: 24px 18px;
    }
}


/* =========================
   Mobile Fix v20
   ========================= */

@media (max-width: 700px) {

    body {
        background: #f4f6f9 !important;
        overflow-x: hidden !important;
        font-size: 15px !important;
    }

    .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        background: #172b42 !important;
        box-shadow: none !important;
        padding-bottom: 12px !important;
        overflow: visible !important;
    }

    .logo {
        padding: 14px !important;
        font-size: 22px !important;
        background: #102033 !important;
        text-align: center !important;
    }

    .menu-title {
        padding: 12px 12px 6px !important;
        font-size: 13px !important;
        color: #d6a94a !important;
        clear: both !important;
    }

    .sidebar a {
        display: inline-block !important;
        width: calc(50% - 12px) !important;
        margin: 5px 6px !important;
        padding: 10px 6px !important;
        text-align: center !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        border-right: 0 !important;
        background: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
    }

    .sidebar a:hover {
        background: #24435f !important;
        color: #ffffff !important;
    }

    .main-content {
        margin-right: 0 !important;
        padding: 14px !important;
        min-height: auto !important;
        background: #f4f6f9 !important;
    }

    h1 {
        font-size: 25px !important;
        margin-bottom: 12px !important;
        color: #172b42 !important;
    }

    .welcome {
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid #dfe5ec !important;
    }

    .cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-top: 12px !important;
    }

    .card {
        padding: 13px 10px !important;
        border-radius: 11px !important;
        background: #ffffff !important;
        border: 1px solid #dfe5ec !important;
        box-shadow: 0 4px 12px rgba(20,40,70,0.08) !important;
    }

    .card::before {
        width: 4px !important;
        background: #d6a94a !important;
    }

    .card h3 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        color: #5a6b7b !important;
    }

    .card p {
        font-size: 19px !important;
        color: #172b42 !important;
    }

    .placeholder {
        padding: 16px !important;
        border-radius: 11px !important;
        background: #ffffff !important;
        border: 1px solid #dfe5ec !important;
        font-size: 14px !important;
    }
}

@media (max-width: 420px) {

    .sidebar a {
        width: calc(50% - 12px) !important;
        font-size: 12.5px !important;
        padding: 9px 5px !important;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .card {
        padding: 12px 8px !important;
    }

    .card h3 {
        font-size: 12px !important;
    }

    .card p {
        font-size: 18px !important;
    }
}

/* =========================
   Forms Style
   ========================= */

.form-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #dfe5ec;
    box-shadow: 0 6px 18px rgba(20, 40, 70, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #26384d;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #f8fafc;
    outline: none;
    font-size: 15px;
    color: #1f2d3d;
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #1f5f8b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.10);
}

.full-width {
    grid-column: 1 / -1;
}

.save-btn {
    margin-top: 22px;
    padding: 12px 28px;
    background: #1f5f8b;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.save-btn:hover {
    background: #184d72;
}

.success-box {
    background: #e8f7ee;
    color: #217a43;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #bde8cc;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .form-box {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 14px;
    }

    .save-btn {
        width: 100%;
    }
}


/* =========================
   Tables Style
   ========================= */

.table-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #dfe5ec;
    box-shadow: 0 6px 18px rgba(20, 40, 70, 0.06);
    overflow-x: auto;
}

.table-box h2,
.form-box h2 {
    margin-top: 0;
    color: #172b42;
    font-size: 22px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #ffffff;
}

.data-table th {
    background: #172b42;
    color: #ffffff;
    padding: 12px;
    font-size: 14px;
    text-align: center;
}

.data-table td {
    padding: 11px;
    border-bottom: 1px solid #e5eaf0;
    text-align: center;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f4f8fb;
}

.error-box {
    background: #fff0ed;
    color: #a33a2b;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #efc7bd;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .table-box {
        padding: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 9px;
        font-size: 12px;
        white-space: nowrap;
    }
}


/* =========================
   Sidebar Dropdown Colors v30
   ========================= */

body {
    background: #ffffff !important;
}

.main-content {
    background: #ffffff !important;
}

.sidebar {
    background: #ffffff !important;
    color: #1f2d3d !important;
    border-left: 1px solid #e5eaf0 !important;
    box-shadow: -3px 0 18px rgba(20, 40, 70, 0.08) !important;
}

.logo {
    background: #172b42 !important;
    color: #ffffff !important;
    border-radius: 0 0 18px 18px !important;
    margin-bottom: 12px !important;
}

.home-link {
    display: block !important;
    margin: 10px 12px !important;
    padding: 12px !important;
    background: #eef4fb !important;
    color: #172b42 !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    text-align: center !important;
}

.menu-group {
    margin: 10px 12px !important;
}

.menu-toggle {
    width: 100% !important;
    border: 0 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    text-align: right !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.menu-toggle.settings {
    background: #1f5f8b !important;
}

.menu-toggle.definitions {
    background: #2f7d57 !important;
}

.menu-toggle.invoices {
    background: #8a5a18 !important;
}

.menu-toggle.stock {
    background: #6f42c1 !important;
}

.menu-toggle.accounts {
    background: #b65c2a !important;
}

.menu-toggle.reports {
    background: #395b8f !important;
}

.menu-links {
    display: none !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-top: 6px !important;
    padding: 6px !important;
}

.menu-group.open .menu-links {
    display: block !important;
}

.menu-links a {
    display: block !important;
    padding: 10px 12px !important;
    margin: 3px 0 !important;
    color: #26384d !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-right: 3px solid transparent !important;
}

.menu-links a:hover {
    background: #eef4fb !important;
    border-right-color: #1f5f8b !important;
}

.logout-link {
    display: block !important;
    padding: 12px !important;
    background: #fff0ed !important;
    color: #a33a2b !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.card,
.form-box,
.table-box,
.placeholder,
.welcome {
    background: #ffffff !important;
}

/* Mobile */
@media (max-width: 700px) {

    .sidebar {
        background: #ffffff !important;
        border-left: 0 !important;
        border-bottom: 1px solid #e5eaf0 !important;
    }

    .menu-group {
        margin: 8px 10px !important;
    }

    .menu-toggle {
        font-size: 14px !important;
        padding: 11px 12px !important;
    }

    .menu-links a {
        width: 100% !important;
        display: block !important;
        font-size: 14px !important;
        text-align: right !important;
    }

    .sidebar a {
        width: auto !important;
    }

    .main-content {
        background: #ffffff !important;
    }
}

/* =========================
   Home Dashboard Layout v60
   ========================= */

.home-dashboard-header {
    text-align: left;
    direction: rtl;
    margin-bottom: 28px;
    padding: 10px 0 5px;
}

.home-dashboard-welcome {
    color: #1f5f8b;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.home-dashboard-header h1 {
    margin: 0;
    color: #172b42;
    font-size: 44px;
    font-weight: bold;
    text-align: left;
}

.home-dashboard-company {
    margin-top: 8px;
    color: #5f6f80;
    font-size: 22px;
    font-weight: bold;
}

.home-sections-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: start;
}

.home-section-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(20, 40, 70, 0.10);
}

.home-section-head {
    width: 100%;
    border: 0;
    padding: 18px 14px;
    min-height: 72px;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #152335;
}

.home-section-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.home-section-title {
    flex: 1;
    text-align: right;
}

.home-section-arrow {
    font-size: 15px;
    color: #174d83;
}

.home-section-links {
    display: none;
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-top: 0;
    padding: 12px;
}

.home-section-card.open .home-section-links {
    display: block;
}

.home-section-links a {
    display: block;
    text-decoration: none;
    color: #172b42;
    background: #f8fafc;
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
    border-right: 4px solid transparent;
}

.home-section-links a:hover {
    background: #eef4fb;
    border-right-color: #1f5f8b;
}

.home-section-links a:last-child {
    margin-bottom: 0;
}

/* ألوان الأقسام */
.home-settings .home-section-head {
    background: #f6d5db;
}

.home-definitions .home-section-head {
    background: #c9e7cf;
}

.home-invoices .home-section-head {
    background: #f4d29a;
}

.home-stock .home-section-head {
    background: #d5c4f0;
}

.home-accounts .home-section-head {
    background: #bfe4f5;
}

.home-reports .home-section-head {
    background: #d8e0ea;
}

/* إخفاء الإحصائيات القديمة لو موجودة */
.cards {
    display: none !important;
}

/* الخلفية بيضاء */
body,
.main-content {
    background: #ffffff !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .home-sections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .home-dashboard-header {
        text-align: center;
    }

    .home-dashboard-header h1 {
        font-size: 30px;
        text-align: center;
    }

    .home-dashboard-company {
        font-size: 17px;
    }

    .home-dashboard-welcome {
        font-size: 16px;
    }

    .home-sections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-section-head {
        min-height: 62px;
        padding: 13px 10px;
        font-size: 14px;
    }

    .home-section-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .home-section-links {
        padding: 9px;
    }

    .home-section-links a {
        font-size: 13px;
        padding: 10px;
    }
}




/* =========================
   Dashboard Full Width Fix v70
   ========================= */

/* في لوحة التحكم فقط: اخفاء القائمة الجانبية */
.page-dashboard .sidebar {
    display: none !important;
}

/* في لوحة التحكم فقط: المحتوى ياخد عرض الشاشة كامل */
.page-dashboard .main-content {
    margin-right: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 35px 30px !important;
    background: #ffffff !important;
}

/* ضبط عنوان لوحة التحكم */
.page-dashboard .home-dashboard-header {
    text-align: left !important;
    margin-bottom: 30px !important;
}

.page-dashboard .home-dashboard-welcome {
    font-size: 19px !important;
    color: #1f5f8b !important;
    font-weight: bold !important;
}

.page-dashboard .home-dashboard-header h1 {
    font-size: 48px !important;
    color: #172b42 !important;
    margin: 6px 0 !important;
    text-align: left !important;
}

.page-dashboard .home-dashboard-company {
    font-size: 23px !important;
    color: #5f6f80 !important;
    font-weight: bold !important;
}

/* ضبط عرض الأقسام */
.page-dashboard .home-sections-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

/* كارت القسم */
.page-dashboard .home-section-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(20, 40, 70, 0.10) !important;
}

/* زر القسم */
.page-dashboard .home-section-head {
    min-height: 74px !important;
    padding: 16px 14px !important;
    border-radius: 0 !important;
}

/* القائمة التي تفتح تحت كل قسم */
.page-dashboard .home-section-links {
    background: #ffffff !important;
    padding: 12px !important;
    border: 1px solid #edf1f5 !important;
    border-top: 0 !important;
}

.page-dashboard .home-section-links a {
    background: #f8fafc !important;
    color: #172b42 !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
    text-align: center !important;
}

/* موبايل */
@media (max-width: 1200px) {
    .page-dashboard .home-sections-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .page-dashboard .main-content {
        padding: 18px 12px !important;
    }

    .page-dashboard .home-dashboard-header {
        text-align: center !important;
    }

    .page-dashboard .home-dashboard-header h1 {
        text-align: center !important;
        font-size: 32px !important;
    }

    .page-dashboard .home-dashboard-company {
        font-size: 17px !important;
    }

    .page-dashboard .home-sections-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* =========================
   Dashboard Header Line v71
   ========================= */

.page-dashboard .dashboard-top-line {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 35px !important;
    direction: ltr !important;
    width: 100% !important;
}

.page-dashboard .dashboard-title-side {
    grid-column: 3 !important;
    text-align: right !important;
    direction: rtl !important;
    color: #172b42 !important;
    font-size: 42px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
}

.page-dashboard .dashboard-company-center {
    grid-column: 2 !important;
    text-align: center !important;
    direction: rtl !important;
    color: #5f6f80 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.page-dashboard .dashboard-welcome-side {
    grid-column: 1 !important;
    text-align: left !important;
    direction: rtl !important;
    color: #1f5f8b !important;
    font-size: 19px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

/* إلغاء تنسيقات الهيدر القديمة */
.page-dashboard .home-dashboard-header h1,
.page-dashboard .home-dashboard-company,
.page-dashboard .home-dashboard-welcome {
    margin: 0 !important;
}

/* موبايل */
@media (max-width: 800px) {
    .page-dashboard .dashboard-top-line {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .page-dashboard .dashboard-title-side,
    .page-dashboard .dashboard-company-center,
    .page-dashboard .dashboard-welcome-side {
        grid-column: 1 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .page-dashboard .dashboard-title-side {
        font-size: 32px !important;
    }

    .page-dashboard .dashboard-company-center {
        font-size: 18px !important;
    }

    .page-dashboard .dashboard-welcome-side {
        font-size: 16px !important;
    }
}

/* =========================
   Dashboard Header One Line v72
   ========================= */

.page-dashboard .dashboard-top-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 35px !important;
    gap: 20px !important;
    direction: rtl !important;
}

.page-dashboard .dashboard-title-side {
    flex: 1 !important;
    text-align: right !important;
    color: #172b42 !important;
    font-size: 42px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.page-dashboard .dashboard-company-center {
    flex: 1.4 !important;
    text-align: center !important;
    color: #5f6f80 !important;
    font-size: 23px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.page-dashboard .dashboard-welcome-side {
    flex: 1 !important;
    text-align: left !important;
    color: #1f5f8b !important;
    font-size: 19px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

/* إلغاء أي تنسيق قديم للهيدر */
.page-dashboard .home-dashboard-header {
    padding: 0 !important;
}

.page-dashboard .home-dashboard-header h1,
.page-dashboard .home-dashboard-company,
.page-dashboard .home-dashboard-welcome {
    display: none !important;
}

/* موبايل */
@media (max-width: 800px) {
    .page-dashboard .dashboard-top-line {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .page-dashboard .dashboard-title-side,
    .page-dashboard .dashboard-company-center,
    .page-dashboard .dashboard-welcome-side {
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .page-dashboard .dashboard-title-side {
        font-size: 30px !important;
    }

    .page-dashboard .dashboard-company-center {
        font-size: 17px !important;
    }

    .page-dashboard .dashboard-welcome-side {
        font-size: 16px !important;
    }
}

/* =========================
   Albeit New Layout v100
   ========================= */

.no-sidebar .sidebar {
    display: none !important;
}

.no-sidebar .main-content {
    margin-right: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 30px !important;
    background: #ffffff !important;
}

/* Header */
.dashboard-top-line,
.inner-page-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 22px 28px !important;
    margin-bottom: 30px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #12385b, #1f78a8) !important;
    box-shadow: 0 14px 35px rgba(18, 56, 91, 0.20) !important;
    direction: rtl !important;
    gap: 20px !important;
}

.dashboard-title-side,
.inner-page-title {
    flex: 1 !important;
    text-align: right !important;
    color: #ffffff !important;
    font-size: 40px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.dashboard-company-center,
.inner-page-company {
    flex: 1.4 !important;
    text-align: center !important;
    color: #eaf6ff !important;
    font-size: 23px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.dashboard-welcome-side,
.inner-page-actions {
    flex: 1 !important;
    text-align: left !important;
    color: #fff4c7 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.inner-page-actions a {
    display: inline-block !important;
    background: #fff4c7 !important;
    color: #12385b !important;
    text-decoration: none !important;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: bold !important;
}

.inner-page-actions a:hover {
    background: #ffffff !important;
}

/* Dashboard Cards Menu */
.home-sections-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

.home-section-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 28px rgba(20, 40, 70, 0.10) !important;
}

.home-section-head {
    width: 100% !important;
    border: 0 !important;
    min-height: 74px !important;
    padding: 16px 14px !important;
    cursor: pointer !important;
    font-family: Tahoma, Arial, sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    font-size: 17px !important;
    font-weight: bold !important;
    color: #152335 !important;
}

.home-section-icon {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.home-section-title {
    flex: 1 !important;
    text-align: right !important;
}

.home-section-arrow {
    color: #004b7a !important;
    font-weight: bold !important;
}

.home-section-links {
    display: none !important;
    background: #ffffff !important;
    border: 1px solid #edf1f5 !important;
    border-top: 0 !important;
    padding: 12px !important;
}

.home-section-card.open .home-section-links {
    display: block !important;
}

.home-section-links a {
    display: block !important;
    text-decoration: none !important;
    color: #172b42 !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-align: center !important;
}

.home-section-links a:hover {
    background: #eef4fb !important;
}

/* Section Colors */
.home-settings .home-section-head {
    background: #f6d5db !important;
}

.home-definitions .home-section-head {
    background: #c9e7cf !important;
}

.home-invoices .home-section-head {
    background: #f4d29a !important;
}

.home-stock .home-section-head {
    background: #d5c4f0 !important;
}

.home-accounts .home-section-head {
    background: #bfe4f5 !important;
}

.home-reports .home-section-head {
    background: #d8e0ea !important;
}

.placeholder {
    background: #ffffff !important;
    border: 1px solid #e1edf7 !important;
    border-radius: 18px !important;
    padding: 28px !important;
    box-shadow: 0 10px 25px rgba(20, 40, 70, 0.08) !important;
}

.placeholder h2 {
    color: #12385b !important;
}

.alert-error {
    background: #fff0ed !important;
    color: #a33a2b !important;
    padding: 13px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    border: 1px solid #efc7bd !important;
    font-weight: bold !important;
}

/* Mobile */
@media (max-width: 1000px) {
    .home-sections-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 700px) {
    .no-sidebar .main-content {
        padding: 14px !important;
    }

    .dashboard-top-line,
    .inner-page-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 18px 14px !important;
    }

    .dashboard-title-side,
    .dashboard-company-center,
    .dashboard-welcome-side,
    .inner-page-title,
    .inner-page-company,
    .inner-page-actions {
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .dashboard-title-side,
    .inner-page-title {
        font-size: 30px !important;
    }

    .dashboard-company-center,
    .inner-page-company {
        font-size: 17px !important;
    }

    .dashboard-welcome-side {
        font-size: 16px !important;
    }

    .home-sections-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .home-section-head {
        min-height: 62px !important;
        padding: 13px 10px !important;
        font-size: 14px !important;
    }

    .home-section-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 17px !important;
    }
}