@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* ===== أساسيات ===== */
body {
    font-family: "Cairo", "Nunito Sans", sans-serif;
    background: linear-gradient(to right, #082f49, #1d3761);
}

/* ===== تثبيت الهيدر في الـ IRR ===== */
.a-IRR-tableContainer {
    max-height: 70vh;           /* حدد ارتفاع الحاوية عشان يظهر scroll داخلي */
    overflow-y: auto;
}

.a-IRR-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #1d3761;  /* نفس لون الهيدر عندك */
    color: #ffffff;
}

/* ===== أزرار مجموعة الاختيار (نعم/لا) ===== */
.apex-button-group input:checked + label {
    --a-button-background-color: green;
    --a-button-text-color: #ffffff;
    --a-button-hover-background-color: green;
    --a-button-hover-text-color: #ffffff;
    --a-button-active-background-color: green;
    --a-button-active-text-color: #ffffff;
    --a-button-focus-background-color: green;
    --a-button-focus-text-color: #ffffff;
}
.apex-button-group .apex-item-option:nth-of-type(2) input:checked + label {
    --a-button-background-color: red;
    --a-button-text-color: #ffffff;
    --a-button-hover-background-color: red;
    --a-button-hover-text-color: #ffffff;
    --a-button-active-background-color: red;
    --a-button-active-text-color: #ffffff;
    --a-button-focus-background-color: red;
    --a-button-focus-text-color: #ffffff;
}

/* ===== حبوب الحالة (pills) ===== */
.c-pill {
    align-items: center;
    font-weight: bold;
    font-size: 11px;
    white-space: nowrap;
    width: auto;
    position: relative;
    border-radius: 100px;
    line-height: 1;
    overflow: hidden;
    padding: 0px 12px 0px 20px;
    text-overflow: ellipsis;
    color: black;
    word-break: break-word;
}
.c-pill:before {
    border-radius: 50%;
    content: '';
    height: 10px;
    left: 6px;
    margin-top: -5px;
    position: absolute;
    top: 50%;
    width: 10px;
}
.c-pill--success { background: #b4eda0; }
.c-pill--success:before { background: #6BC167; }
.c-pill--warning { background: #ffebb6; }
.c-pill--warning:before { background: #ffc400; }
.c-pill--danger { background: #ffd5d1; }
.c-pill--danger:before { background: #ff4436; }

/* ===== وسوم الحالة ===== */
.status-tag {
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    min-width: 50px;
    text-align: center;
    padding: 5px;
}
.status-recorded { background-color: #28a7451c; color: #28a745; }
.status-not-recorded { background-color: #dc354641; color: #dc3545; }
.status-default { background-color: #6c757d; color: white; }

/* ===== الفوتر ===== */
footer#t_Footer { display: none; }
.t-Footer { background-color: #10386d; }
.t-Footer-version, .t-Footer-customize, .t-Footer-srMode { color: #ffffff; }

/* ===== الفاتورة / الطباعة ===== */
.foot {
    padding: 10px;
    margin: 10px auto;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-items: center;
}
.foot div { padding: 10px; padding-left: 0px; background: #000000; color: white; }
.foot div b { background: #7d8383; padding: 7px; }
.head-inv {
    padding: 10px;
    text-align: center;
    background: black;
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
}
.head-logo {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 20px;
    font-weight: bold;
}
.head-logo img { width: 80px; }
.head { margin-bottom: 30px; }
#tprint { width: 100%; margin: 10px 0; }
#tprint td, #tprint th { border: 1px solid black; text-align: center; }
div#print-info {
    font-size: 17px;
    font-weight: 600;
    padding: 10px;
    background: #1f5f5b;
    color: white;
}

/* ===== شريط التمرير ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f6fafd; }
::-webkit-scrollbar-thumb { background: #06373a; }
::-webkit-scrollbar-thumb:hover { background: #04565e; }
.scrollbar { scrollbar-color: #06373a #f6fafd; scrollbar-width: thin; }

/* ===== شجرة التنقل ===== */
div#t_TreeNav {
    background: url(https://www2.0zz0.com/2024/12/26/15/707140958.png);
    background-position: bottom;
    background-repeat: no-repeat;
}
.t-BreadcrumbRegion {
    background: url(https://www2.0zz0.com/2024/12/26/15/707140958.png);
    background-repeat: no-repeat;
}
.t-TreeNav .a-TreeView-badge {
    background: #767dbf;
    color: white;
    border-radius: 5px;
}

/* ===== أزرار APEX المخصصة ===== */
.a-Button--popupLOV, .a-PopupLOV-doSearch, .a-GV-loadMoreButton,
.t-Button--hideShow, .a-Button--calendar {
    background-color: #000a63;
    color: white;
}
button.ui-button.ui-corner-all.ui-widget.ui-button-icon-only.ui-dialog-titlebar-close {
    background: #000a63;
    color: white;
    border-radius: 50%;
}
.a-PopupLOV-searchBar { background: transparent; }
.t-Button--hideShow { background-color: #000a63 !important; color: white !important; }
.t-Button--success { background: #00800059; color: green; }
.t-Button--warning { background: #fdd60373; color: #b19607; }
.a-IRR-button--actions, .a-IRR-button--search, .a-IRR-button--colSearch,
.a-Toolbar-item, .a-Toolbar-toggleButton {
    background: #000a6342;
    color: #000a63;
}
button#t_Button_navControl { display: block; }

/* ===== المناطق والعناوين ===== */
.t-Region-title { text-align: center; font: revert; font-size: 16px; }
.t-Region--accent1 > .t-Region-header {
    background: linear-gradient(to right, #3498db, #1d3761);
}

/* ===== Hero Region ===== */
.t-HeroRegion-wrap {
    align-items: center;
    display: flex;
    flex-direction: row;
    background: linear-gradient(to right, #3498db, #1d3761);
    max-height: 50px;
}
.t-HeroRegion-title { color: #ffffff; }
.t-Body-title {
    background: linear-gradient(to right, #3498db, #1d3761);
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 185px;
}

/* ===== تقارير IRR / IG ===== */

/* ===== تقارير IRR / IG ===== */

.a-IRR-table {
    border-collapse: collapse;
    border-spacing: 0;
    border-style: hidden;
    table-layout: auto;
    width: 100%;
    font-size: 14px;
    color: black;
    background-color: #c5c5c5;
    font-weight: bold;
}
.a-IRR-groupByView { font-size: 16px; font-weight: bold; }
.a-IRR-header { background-color: #1d3761; color: #ffffff; text-align: center; }
.a-IG-controlsContainer, .a-IRR-controlsContainer { visibility: hidden; }

/* ===== النماذج ===== */
.t-Form-fieldContainer--floatingLabel .apex-item-display-only {
    font-size: 45px;
    display: flex;
    height: 80px;
    color: #ffffff;
    border: 0px solid #ccc;
}
a { color: #000000; font-size: 16px; text-decoration: none; }
.select2-container {
    border: 2px solid black;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* ===== الكروت ===== */
.t-Card-icon .t-Icon {
    align-items: stretch;
    border-radius: inherit;
    display: flex;
    font-size: var(--ut-cardlist-icon-size);
    justify-content: center;
    flex-wrap: nowrap;
    height: 250px;
    width: 250px;
}
.t-Card-body { display: none; }