﻿
.form-group {
    margin-bottom: 0.4rem !important;
}


.paging-numbers
{
	
	justify-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-2 {
   padding-top: 0.02rem!important;
}


#s4-workspace
{
	height: 100vh;
	
}


input:has(+ .text-danger[style*="display: inline"]) {
    border-color: #dc3545 !important;
}

.submenu.show {
    max-height: 700px !important;
}

input[type=button], input[type=reset], input[type=submit], button {
    min-width: 1px !important;
}





.attachments-block {
    border: 2px dashed var(--color-e2);
    width: auto !important;
}


.btn-primary.aspNetDisabled,
.btn-primary.aspNetDisabled:hover,
.btn-primary.aspNetDisabled:focus,
.btn-primary.aspNetDisabled:active {
    color: #fff;
    background-color: #6c757d; /* Bootstrap's disabled gray */
    border-color: #6c757d;
    opacity: 0.65;
    pointer-events: none;
}
 .progressPanel {
       position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  
    }

        .progressPanel::before {
            content: "";
            display: block;
            width: 40px;
            height: 40px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
    
    /* Dialog outer border */
.ms-dlgBorder {
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.3) !important;
    border: none !important;
    overflow: hidden !important; /* ensures rounded corners apply */
}

/* Title bar */
.ms-dlgTitle {
    background: #2565AE !important;  /* Bootstrap primary */
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Title text */
.ms-dlgTitleText {
    color: #fff !important;
}

.ms-dlgContent
{
	
	border-radius: 12px !important;
}


/* زر الإغلاق الأساسي */
.ms-dlgCloseBtn {
    background: transparent !important;
    border: none !important;
    position: absolute !important;
    top: 8px !important;
    z-index: 9999 !important;
    cursor: pointer !important;
}

/* إخفاء الأيقونة الرمادية الأصلية */
.ms-dlgCloseBtn > span {
    font-size: 0 !important;   /* يخفي محتواه بدون ما يخفي العنصر */
    color: transparent !important;
}

/* إضافة أيقونة جديدة */
.ms-dlgCloseBtn::after {
    content: "×";   /* الرمز */
    font-size: 22px;
    font-weight: bold;
    color: #fff;    /* أبيض */
}

/* موضعها في LTR */
html[dir="ltr"] .ms-dlgCloseBtn {
    right: 12px !important;
    left: auto !important;
}

/* موضعها في RTL */
html[dir="rtl"] .ms-dlgCloseBtn {
    left: 12px !important;
    right: auto !important;
}


.s4-clust
{
	display:none !important;
	
}


.pager table
{
	
	justify-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}


.table .pager a,
    .table .pager span {
        display: inline-block;
        padding: 8px 14px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        color: #40444C;
        /*border: 1px solid #ddd;*/
        background: #fff;
        transition: all 0.3s ease;
    }

    .pager {
        background: white;
    }

        .pager td {
            background: white;
        }
    /* Hover effect */
    .table .pager a:hover {
        background: #E6F2FF;
        /*border-color: #a6c8ff;*/
        color: #2565AE;
    }

    /* Active page */
    .table .pager span {
        background: #E6F2FF;
        /*border: 1px solid #0a58ca;*/
        color: #2565AE;
        font-weight: bold;
    }

    .table .pager td {
        padding: 0.5rem 0.4rem;
        border-color: white;
    }
    /* Arrow icons (optional if you want to replace "First/Last") */
    .table .pager a:contains("..."),
    .table .pager a:contains("Last"),
    .table .pager a:contains("First") {
        padding: 6px 10px;
    }
    .select2-container--default .select2-selection--single
    {
        min-height:40px !important;
    }
    .select2-selection__rendered
    {
        padding-top:5px;
    }
    .select2-selection__arrow
    {
        top:5px !important;
    }


.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #007bff;
  border-radius: 6px; /* rounded corners */
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease-in-out;
  outline: none;
  background-color: #fff;
}

/* Hover effect */
.form-check input[type="checkbox"]:hover {
  border-color: #0056b3;
}

/* Checked state */
.form-check input[type="checkbox"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

/* Add checkmark */
.form-check input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 0px;
  left: 3px;
  font-weight: bold;
}


.regc-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.regc-logo img {
    height: 3vw;
}

.regc-logo p {
    color: var(--color-1f);
    font-size: var(--font-size-16);
    font-family: var(--font-medium);
    text-align: center;
    margin: 0;
}

.form-title a img {
    width: 1.2vw;
}

@media(max-width:992px) {
    .regc-logo {
        gap: 12px;
    }

    .regc-logo img {
        height: 5.2vw;
    }

    .form-title a img {
        width: 2.2vw;
    }
}

@media(max-width:480px) {
    .regc-logo {
        gap: 10px;
    }

    .regc-logo img {
        height: 9vw;
    }

    .form-title a img {
        width: 4.2vw;
    }
}





input[type="file"] {
    display: block;
    width: 100%;
    max-width: 350px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

input[type="file"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    font-size: 13px;
    font-weight: 500;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #0056b3;
}



/* Target the aspNetDisabled class specifically */
.aspNetDisabled {
    background-color: #f5f5f5 !important;
    color: #999999 !important;
    border: 1px solid #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* For file upload controls specifically */
input[type="file"].aspNetDisabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 4px;
    padding: 8px 12px;
}

/* Style the button part of disabled file upload */
input[type="file"].aspNetDisabled::-webkit-file-upload-button {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border: none !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    padding: 6px 12px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Firefox equivalent */
input[type="file"].aspNetDisabled::file-selector-button {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border: none !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    padding: 6px 12px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Default tab background */
.ui-tabs .ui-tabs-nav li a {
    background-color: #f0f0f0; /* light gray */
    color: #333; /* text color */
}

/* Active tab background */
.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
    background-color: #0078d7; /* blue */
    color: #fff; /* white text */
}



/* Main ReportViewer container */
.ReportViewer {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* Force internal fixed table to expand */
.ReportViewer .FixedTable,
.ReportViewer table {
    width: 100% !important;
        table-layout: fixed !important;
}

/* Make iframe responsive */
.ReportViewer iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* Optional: full-page mode */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.ReportViewer {
    height: 100vh !important; /* full viewport height */
}



/* Force report body cells to stretch */
.ReportViewer .FixedTable td,
.ReportViewer .FixedTable th {
    width: auto !important;
    white-space: normal !important;
}
    .sb-title {

    }
    .radioSpace label {
        margin-inline-start: 10px;
        font-size: var(--font-size-20);
        font-weight: bold;
    }
    .attachments-block
    {
        padding: 5px !important;
    margin-bottom: 5px !important;
    }
    .attachments-block img{
        width: unset !important;
    }
    label:has(> input.aspNetDisabled) {
    opacity: 0.5;
    cursor: not-allowed;
}


.attachments-block:has(input.aspNetDisabled) {
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    pointer-events: none; 
}
.attachments-block:has(+ .text-danger[style*="display: inline"]) {
    border-color: #dc3545 !important;
}


