﻿

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    height: 100%;
    font-weight: 400;
}

h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    color: #4d4b4b;
    margin: 60px 0 30px 0;
}

table {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Multi table */
.multi-table table {
    box-shadow: none;
    margin-bottom:40px;
}

.multi-table thead {
    margin-top: 40px;
}

/* End Multi table */

thead #sortColumn {
    height: 40px;
}


table .head {
    background: #126740 url("../images/sort.gif") no-repeat scroll 7px center;
    cursor: pointer;
    padding-left: 18px;
	text-align: center;
}

table .selectbackground {
    background-color: #0b9046;
}

table .desc {
    background: #019DD8 url(../images/desc.gif) 7px center no-repeat;
    cursor: pointer;
    padding-left: 18px
}

table .asc {
    background: #019DD8 url(../images/asc.gif) 7px center no-repeat;
    cursor: pointer;
    padding-left: 18px
}

.nameSheet {
    font-size: 20px;
    background-color: #019DD8;
    color: #fff;
}

/****Table color hover mouse***/

table tr:hover {
    background-color: #FFFFFF;
}


/****Table color alternate***/

tr:nth-child(even) {
    background: #ECF2F6;
}

tr:nth-child(odd) {
    background: #FFFFFF;
}

.nameColumn {
    font-size: 16px;
    padding: 5px;
    color: #fff;
    cursor: pointer;
    height: 45px;
    border: 1px solid #125c36;
}

.title-table {
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    padding: 20px 0 20px 0;
    text-align: center;
    background-color: #0b9046;
}

.content_value i {
    margin: 3px 5px 0 3px;
    color: #333;
}

.content_value {
    border: none; /* recover 1px solid #C6D5E1; */
    height: 50px;
}

.content_divtxt {
    text-align: center;
	float: none;
}

#drop {
    border: 2px dashed #bbb;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    color: #bbb;
}

/*
    Css Maps
*/

#map-canvas {
    height: 100%;
    margin: 0px;
    padding: 0px;
    width: 100%;
}

    #map-canvas img {
        max-width: none;
    }

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {

    /* إخفاء منطقة .head للشاشات الصغيرة */
    table .head {
        display: none;
    }
	
	tr {
        border: none;
    }
	
	#contentTable {
        width: auto;
		padding: 0px;
    }
	
    /* تعديل التسميات (labels) لتأخذ نفس تنسيق .head */
    td:before {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 55%;
    padding-left: 10px;
    white-space: nowrap;
    text-align: right;

    /* تطبيق تأثير التدرج */
    background: linear-gradient(to left, #05283B, #0A3A4D, #145E73, #1E7A92, #2898B0);
    color: #FFF;

    padding: 13px 4px;
    border-radius: 4px;
    font-weight: bold;
    
    display: table;
    max-width: 100%;
    min-width: 60%;
    align-items: center;
    text-indent: 6px;
    
    /* تحسين محاذاة النص */
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    /* تعديل بقية خصائص الجدول لتناسب الشاشات الصغيرة */
    table td {
        display: grid;
        padding-right: 60%;
        padding-left: 0;
		padding-top: 5%;
        text-align: center;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    /* تحديث تسميات البيانات */
    tbody td:nth-of-type(1):before { content: "رمز السهم"; }
    tbody td:nth-of-type(2):before { content: "القيمة العادلة للسهم"; }
    tbody td:nth-of-type(3):before { content: "القيمة العادلة (%)"; }
    tbody td:nth-of-type(4):before { content: "تصنيف القيمة العادلة"; }
    tbody td:nth-of-type(5):before { content: "القيمة العادلة (هدف المحللين)"; }
    tbody td:nth-of-type(6):before { content: "القيمة العادلة (هدف المحللين) %"; }
    tbody td:nth-of-type(7):before { content: "تصنيف القيمة العادلة  (هدف المحللين)"; }
    tbody td:nth-of-type(8):before { content: "الأداء العام (الصحة المالية)"; }
    tbody td:nth-of-type(9):before { content: "توزيعات الأرباح لكل سهم DPS"; }
    tbody td:nth-of-type(10):before { content: "نسبة توزيعات الأرباح السنوية DY"; }
	tbody td:nth-of-type(11):before { content: "تاريخ إعلان الأرباح القادم"; }
	tbody td:nth-of-type(12):before { content: "قيمة توزيع الأرباح القادم"; }
    tbody td:nth-of-type(13):before { content: "معدل P/E"; }
    tbody td:nth-of-type(14):before { content: "مضاعف القيمة الدفترية Price/Book"; }
    tbody td:nth-of-type(15):before { content: "سعر السهم/المبيعات السنوية P/S"; }
    tbody td:nth-of-type(16):before { content: "القيمة السوقية (معدلة)"; }
    tbody td:nth-of-type(17):before { content: "القيمة الإجمالية للشركة (EV)"; }
    tbody td:nth-of-type(18):before { content: "الديون/إجمالي رأس المال TD/TC"; }
	tbody td:nth-of-type(19):before { content: "نسبة الأسهم المتاحة للتداول"; }
	tbody td:nth-of-type(20):before { content: "Altman Z-Score"; }
	tbody td:nth-of-type(21):before { content: "نسبة توزيع الأرباح Payout Ratio"; }
	tbody td:nth-of-type(22):before { content: "التدفق النقدي الحرFCF/صافي الدخل"; }

    /* إضافة علامة مائية أعلى وأسفل يسار الجدول */
     table {
    position: relative; /* التأكد من أن العنصر الجدول يتم التعامل معه بشكل نسبي */
}

table::after {
    content: "..............ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.............."; /* النص الذي سيظهر كعلامة مائية */
    position: absolute;
    left: 30px;
    bottom: 10px;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5); /* تقليل الشفافية ليصبح النص أكثر وضوحًا */
    z-index: 2; /* وضع العلامة المائية أمام محتوى الجدول */
    pointer-events: none; /* عدم التفاعل مع العلامة المائية */
	transform: rotate(-90deg); /* تدوير النص ليظهر بشكل رأسي */
    transform-origin: left bottom; /* التحديد على محور الحرف الأول */
    font-family: 'Forum', sans-serif; /* استخدام الخط المخصص */
}
}

@media only screen and (max-width: 760px), (min-width: 768px) {
    /* إخفاء منطقة .head للشاشات الصغيرة */
    table .head {
        display: none;
    }

    tr {
        border: none;
    }

    #contentTable {
        width: auto;
        padding: 0px;
    }

    /* تعديل التسميات (labels) لتأخذ نفس تنسيق .head */
   td:before {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 55%;
    padding-left: 10px;
    white-space: nowrap;
    text-align: right;

    /* تطبيق تأثير التدرج */
    background: linear-gradient(to left, #05283B, #0A3A4D, #145E73, #1E7A92, #2898B0);
    color: #FFF;
    
    padding: 13px 4px;
    border-radius: 4px;
    font-weight: bold;
    max-width: 100%;
    align-items: center;
}


    /* تعديل بقية خصائص الجدول لتناسب الشاشات */
    table td {
        display: grid;
        padding-right: 60%;
        padding-left: 0;
		padding-top: 2%;
        text-align: center;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    /* تحديث تسميات البيانات */
    tbody td:nth-of-type(1):before { content: "رمز السهم"; }
    tbody td:nth-of-type(2):before { content: "القيمة العادلة للسهم"; }
    tbody td:nth-of-type(3):before { content: "القيمة العادلة (%)"; }
    tbody td:nth-of-type(4):before { content: "تصنيف القيمة العادلة"; }
    tbody td:nth-of-type(5):before { content: "القيمة العادلة (هدف المحللين)"; }
    tbody td:nth-of-type(6):before { content: "القيمة العادلة (هدف المحللين) %"; }
    tbody td:nth-of-type(7):before { content: "تصنيف القيمة العادلة  (هدف المحللين)"; }
    tbody td:nth-of-type(8):before { content: "الأداء العام (الصحة المالية)"; }
    tbody td:nth-of-type(9):before { content: "توزيعات الأرباح لكل سهم DPS"; }
    tbody td:nth-of-type(10):before { content: "نسبة توزيعات الأرباح السنوية DY"; }
	tbody td:nth-of-type(11):before { content: "تاريخ إعلان الأرباح القادم"; }
	tbody td:nth-of-type(12):before { content: "قيمة توزيع الأرباح القادم"; }
    tbody td:nth-of-type(13):before { content: "معدل P/E"; }
    tbody td:nth-of-type(14):before { content: "مضاعف القيمة الدفترية Price/Book"; }
    tbody td:nth-of-type(15):before { content: "سعر السهم/المبيعات السنوية P/S"; }
    tbody td:nth-of-type(16):before { content: "القيمة السوقية (معدلة)"; }
    tbody td:nth-of-type(17):before { content: "القيمة الإجمالية للشركة (EV)"; }
    tbody td:nth-of-type(18):before { content: "الديون/إجمالي رأس المال TD/TC"; }
	tbody td:nth-of-type(19):before { content: "نسبة الأسهم المتاحة للتداول"; }
	tbody td:nth-of-type(20):before { content: "Altman Z-Score"; }
	tbody td:nth-of-type(21):before { content: "نسبة توزيع الأرباح Payout Ratio"; }
	tbody td:nth-of-type(22):before { content: "التدفق النقدي الحرFCF/صافي الدخل"; }

    /* إضافة علامة مائية أعلى وأسفل يسار الجدول */
   @font-face {
    font-family: 'Forum';
    src: url('https://arabicstock.com/main/fonts/Forum.ttf') format('truetype'); /* تأكد من مسار الخط */
}

	table {
    position: relative; /* التأكد من أن العنصر الجدول يتم التعامل معه بشكل نسبي */
}

table::after {
    content: "..............ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.......ArabicStock.com.............."; /* النص الذي سيظهر كعلامة مائية */
    position: absolute;
    left: 30px;
    bottom: 10px;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5); /* تقليل الشفافية ليصبح النص أكثر وضوحًا */
    z-index: 2; /* وضع العلامة المائية أمام محتوى الجدول */
    pointer-events: none; /* عدم التفاعل مع العلامة المائية */
	transform: rotate(-90deg); /* تدوير النص ليظهر بشكل رأسي */
    transform-origin: left bottom; /* التحديد على محور الحرف الأول */
    font-family: 'Forum', sans-serif; /* استخدام الخط المخصص */
}
.bold-green {
    color: #2e7d32 !important;
    font-weight: bold;
}

.bold-lime {
    color: #43a047 !important;
    font-weight: bold;
}

.bold-orange {
    color: #ef6c00 !important;
    font-weight: bold;
}

.bold-red {
    color: #c62828 !important;
    font-weight: bold;
}

/* أسهم الاتجاه */
.arrow-up::before {
    content: "↑ ";
    color: #2e7d32;
}

.arrow-down::before {
    content: "↓ ";
    color: #c62828;
}
}
