@import url("./css/login.css");

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #f4f7fb;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.system-page {
    min-height: 300px;
    padding: 25px;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #ffffff;
}

    .system-page h1 {
        margin-top: 0;
        color: #102a43;
        font-size: 24px;
    }

.system-page p {
        color: #667085;
    }

:root {
    --nab-teal: #117987;
    --nab-teal-dark: #075865;
    --nab-teal-deep: #064651;
    --nab-gold: #dfb760;
    --nab-gold-soft: #f8eed9;
}

html,
body {
    background: #f4f8f8;
}

a,
.btn-link {
    color: var(--nab-teal);
}

.btn-primary {
    background-color: var(--nab-teal);
    border-color: var(--nab-teal-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--nab-teal-dark);
    border-color: var(--nab-teal-deep);
}

.system-page h1 {
    color: var(--nab-teal-deep);
}

.btn-primary,
.primary-button,
.refresh-button,
.save-button,
.btn-save,
.btn-create,
.btn-submit {
    border-color: var(--nab-teal-dark) !important;
    background: linear-gradient(
        135deg,
        var(--nab-teal-dark),
        var(--nab-teal)) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.primary-button:hover,
.refresh-button:hover,
.save-button:hover,
.btn-save:hover,
.btn-create:hover,
.btn-submit:hover {
    background: var(--nab-teal-deep) !important;
}

/* =========================================================
   Professional Reports Filters
   تصميم احترافي ونهائي لحقول تصفية التقارير
   ========================================================= */

.reports-page .filters-panel {
    padding: 22px;
    border: 1px solid #d8e5e7;
    border-top: 4px solid #117987;
    border-radius: 18px;
    background: radial-gradient( circle at 100% 0, rgba(223, 183, 96, 0.13), transparent 280px ), #ffffff;
    box-shadow: 0 12px 32px rgba(18, 71, 80, 0.07);
}

/* توزيع الحقول */

.reports-page .filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(175px, 0.9fr)) repeat(2, minmax(210px, 1.2fr)) minmax(120px, 0.6fr) auto;
    align-items: end;
    gap: 12px;
}

/* الحاوية الخارجية لكل حقل */

.reports-page .filter-field {
    position: relative;
    display: block;
    min-width: 0;
}

    /* العنوان الصغير داخل الحقل */

    .reports-page .filter-field label {
        position: absolute;
        z-index: 3;
        top: 9px;
        right: 44px;
        margin: 0;
        color: #60787d;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        pointer-events: none;
        transition: color 0.18s ease, transform 0.18s ease;
    }

    /* أيقونة الحقل */

    .reports-page .filter-field .field-icon {
        position: absolute;
        z-index: 3;
        top: 50%;
        right: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #117987;
        font-size: 15px;
        font-weight: 900;
        line-height: 1;
        pointer-events: none;
        transform: translateY(-50%);
        transition: color 0.18s ease, transform 0.18s ease;
    }

    /* التصميم الأساسي لجميع الحقول */

    .reports-page .filter-field .filter-control {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 64px;
        min-height: 64px;
        margin: 0;
        padding: 25px 44px 8px 15px;
        border: 1px solid #cbdadd;
        border-radius: 14px;
        background-color: #f8fbfb;
        color: #17353b;
        font-family: inherit;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.3;
        outline: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 12px rgba(20, 69, 78, 0.035);
        transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

        /* المرور فوق الحقل */

        .reports-page .filter-field .filter-control:hover {
            border-color: #8db6bc;
            background-color: #ffffff;
            box-shadow: 0 6px 16px rgba(20, 69, 78, 0.07);
        }

        /* تحديد الحقل */

        .reports-page .filter-field .filter-control:focus {
            border-color: #117987;
            background-color: #ffffff;
            box-shadow: 0 0 0 4px rgba(17, 121, 135, 0.12), 0 10px 22px rgba(20, 69, 78, 0.09);
        }

    /* تغيير لون العنوان عند تحديد الحقل */

    .reports-page .filter-field:focus-within label {
        color: #075865;
        transform: translateY(-1px);
    }

    .reports-page .filter-field:focus-within .field-icon {
        color: #075865;
        transform: translateY(-50%) scale(1.1);
    }

    /* =========================================================
   القوائم المنسدلة
   ========================================================= */

    .reports-page .filter-field select.filter-control {
        padding-left: 42px;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #117987 50%), linear-gradient(135deg, #117987 50%, transparent 50%), linear-gradient( to left, transparent 0, transparent 34px, #dce7e8 35px, transparent 36px );
        background-position: 18px 31px, 12px 31px, 0 0;
        background-size: 6px 6px, 6px 6px, 42px 100%;
        background-repeat: no-repeat;
    }

        /* مظهر خيارات القائمة */

        .reports-page .filter-field select.filter-control option {
            padding: 10px;
            background: #ffffff;
            color: #17353b;
            font-weight: 700;
        }

    /* =========================================================
   حقول التاريخ
   ========================================================= */

    .reports-page
    .filter-field
    input[type="date"].filter-control {
        padding-left: 45px;
        color-scheme: light;
        cursor: pointer;
    }

        .reports-page
        .filter-field
        input[type="date"].filter-control::-webkit-calendar-picker-indicator {
            position: absolute;
            left: 14px;
            width: 20px;
            height: 20px;
            margin: 0;
            padding: 3px;
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.72;
            transition: opacity 0.18s ease, background-color 0.18s ease;
        }

            .reports-page
            .filter-field
            input[type="date"].filter-control::-webkit-calendar-picker-indicator:hover {
                background-color: rgba(17, 121, 135, 0.1);
                opacity: 1;
            }

/* =========================================================
   زر تطبيق الفلاتر
   ========================================================= */

.reports-page .apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 64px;
    min-height: 64px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient( 135deg, #138895 0%, #075865 100% );
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 9px 20px rgba(7, 88, 101, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

    .reports-page .apply-button span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 23px;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.15);
        font-size: 13px;
    }

    .reports-page .apply-button:hover:not(:disabled) {
        filter: brightness(1.05);
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(7, 88, 101, 0.27);
    }

    .reports-page .apply-button:active:not(:disabled) {
        transform: translateY(0);
    }

    .reports-page .apply-button:disabled {
        cursor: wait;
        opacity: 0.65;
    }

/* =========================================================
   ملخص الفلاتر المطبقة
   ========================================================= */

.reports-page .active-filter-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 11px 14px;
    border: 1px solid #e1eaeb;
    border-radius: 11px;
    background: linear-gradient( 135deg, #f6fafb, #fbfdfd );
    color: #718489;
    font-size: 10px;
}

    .reports-page .active-filter-summary strong {
        padding: 5px 9px;
        border-radius: 7px;
        background: #e8f3f4;
        color: #075865;
        font-size: 10px;
        font-weight: 900;
    }

    .reports-page .active-filter-summary i {
        width: 1px;
        height: 22px;
        margin-inline: 5px;
        background: #d8e4e6;
    }

/* =========================================================
   مفتاح ألوان اتجاه السندات
   ========================================================= */

.reports-page .chart-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px;
    border: 1px solid #dce7e8;
    border-radius: 13px;
    background: #f6fafb;
    box-shadow: inset 0 1px 0 #ffffff;
}

    .reports-page .chart-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 31px;
        padding: 0 9px;
        border: 1px solid #e1eaeb;
        border-radius: 9px;
        background: #ffffff;
        color: #536b70;
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
        box-shadow: 0 3px 8px rgba(20, 69, 78, 0.04);
    }

        .reports-page .chart-legend span::before {
            display: none !important;
        }

        .reports-page .chart-legend span i {
            display: block;
            flex: 0 0 auto;
            width: 11px;
            height: 11px;
            border-radius: 4px;
        }

        .reports-page .chart-legend span strong {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 23px;
            height: 21px;
            padding-inline: 6px;
            border-radius: 7px;
            background: #edf3f4;
            color: #17353b;
            font-size: 10px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
        }

    .reports-page .chart-legend .submitted i {
        background: linear-gradient(135deg, #4eb4bf, #258b98);
        box-shadow: 0 0 0 3px rgba(59, 161, 174, 0.13);
    }

    .reports-page .chart-legend .approved i {
        background: linear-gradient(135deg, #36bd7e, #168454);
        box-shadow: 0 0 0 3px rgba(36, 166, 106, 0.13);
    }

    .reports-page .chart-legend .rejected i {
        background: linear-gradient(135deg, #e76b6b, #bc3f3f);
        box-shadow: 0 0 0 3px rgba(220, 86, 86, 0.13);
    }

/* =========================================================
   الشاشات المتوسطة
   ========================================================= */

@media (max-width: 1300px) {
    .reports-page .filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reports-page .apply-button {
        width: 100%;
    }
}

/* =========================================================
   الجوال
   ========================================================= */

@media (max-width: 760px) {
    .reports-page .filters-panel {
        padding: 16px;
    }

    .reports-page .filters-grid {
        grid-template-columns: 1fr;
    }

    .reports-page .filter-field .filter-control,
    .reports-page .apply-button {
        height: 60px;
        min-height: 60px;
    }

    .reports-page .active-filter-summary {
        align-items: stretch;
        flex-direction: column;
    }

        .reports-page .active-filter-summary i {
            display: none;
        }

    .reports-page .chart-legend {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

        .reports-page .chart-legend span {
            justify-content: center;
            padding-inline: 5px;
        }
}

/* =========================================================
   ألوان مفتاح اتجاه السندات
   ========================================================= */

/* مرسل */

.reports-page .chart-legend span.submitted {
    border-color: rgba(59, 161, 174, 0.35);
    background: linear-gradient( 135deg, rgba(59, 161, 174, 0.16), rgba(59, 161, 174, 0.06) );
    color: #176f7a;
}

    .reports-page .chart-legend span.submitted i {
        display: block;
        width: 11px;
        height: 11px;
        border-radius: 4px;
        background: #3ba1ae;
        box-shadow: 0 0 0 3px rgba(59, 161, 174, 0.14);
    }

    .reports-page .chart-legend span.submitted strong {
        background: #d9f0f2;
        color: #176f7a;
    }

/* معتمد */

.reports-page .chart-legend span.approved {
    border-color: rgba(36, 166, 106, 0.35);
    background: linear-gradient( 135deg, rgba(36, 166, 106, 0.16), rgba(36, 166, 106, 0.06) );
    color: #137348;
}

    .reports-page .chart-legend span.approved i {
        display: block;
        width: 11px;
        height: 11px;
        border-radius: 4px;
        background: #24a66a;
        box-shadow: 0 0 0 3px rgba(36, 166, 106, 0.14);
    }

    .reports-page .chart-legend span.approved strong {
        background: #daf3e6;
        color: #137348;
    }

/* مرفوض */

.reports-page .chart-legend span.rejected {
    border-color: rgba(220, 86, 86, 0.35);
    background: linear-gradient( 135deg, rgba(220, 86, 86, 0.16), rgba(220, 86, 86, 0.06) );
    color: #a73333;
}

    .reports-page .chart-legend span.rejected i {
        display: block;
        width: 11px;
        height: 11px;
        border-radius: 4px;
        background: #dc5656;
        box-shadow: 0 0 0 3px rgba(220, 86, 86, 0.14);
    }

    .reports-page .chart-legend span.rejected strong {
        background: #f9dddd;
        color: #a73333;
    }

/* تحسين النص داخل البطاقات */

.reports-page .chart-legend span b {
    color: inherit;
    font-size: 10px;
    font-weight: 900;
}

.reports-page .chart-legend span {
    min-height: 34px;
    padding-inline: 10px;
}

    .reports-page .chart-legend span.submitted {
        border-color: #9bd5db !important;
        background: #e6f6f8 !important;
        color: #176f7a !important;
    }

        .reports-page .chart-legend span.submitted i {
            background: #3ba1ae !important;
        }

        .reports-page .chart-legend span.submitted strong {
            background: #cfecef !important;
            color: #176f7a !important;
        }

    .reports-page .chart-legend span.approved {
        border-color: #9edbbd !important;
        background: #e8f8f0 !important;
        color: #137348 !important;
    }

        .reports-page .chart-legend span.approved i {
            background: #24a66a !important;
        }

        .reports-page .chart-legend span.approved strong {
            background: #d2f0e1 !important;
            color: #137348 !important;
        }

    .reports-page .chart-legend span.rejected {
        border-color: #efb3b3 !important;
        background: #fff0f0 !important;
        color: #a73333 !important;
    }

        .reports-page .chart-legend span.rejected i {
            background: #dc5656 !important;
        }

        .reports-page .chart-legend span.rejected strong {
            background: #f9dada !important;
            color: #a73333 !important;
        }
