@import 'fonts.css';
@import 'cust.css';
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'),
         url('fonts/IBMPlexSansArabic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'),
         url('fonts/IBMPlexSansArabic-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}
.xcrud{
    margin-bottom: 20px;
    font-family: "IBM Plex Sans Arabic", Helvetica, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.xcrud input,
.xcrud select,
.xcrud textarea,
.xcrud select option {
    font-family: "IBM Plex Sans Arabic", Helvetica, Tahoma, sans-serif;
    font-size: 13px;
    color: #444;
}
.xcrud input,
.xcrud textarea {
    background: #fff;
    border: 1px solid #ccc;
    padding: 0;
    line-height: 26px;
    margin: 1px 1px 0 0;
    height: auto;
    vertical-align: top;
    min-width: 50%;
    text-indent: 5px;
}
.xcrud textarea {
    line-height: 18px;
    min-height: 60px;
}
.xcrud {
    margin-bottom: 20px;
    font-family: "IBM Plex Sans Arabic", Helvetica, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.xcrud-grouping-row {
    background-color: #fbfbfb !important;
    border-bottom: 2px solid #ddd9d9;
    color: #ae0101;
}

.xcrud-grouping-row-sum {
    background-color: #fbfbfb !important;
    border-bottom: 2px solid #ddd9d9;
    color: #ae0101;
    font-weight: bold;
}

.xcrud-total-title {
    text-align: right;
    display: block;
    padding-right: 50px;
}

.parsley-custom-error-message,
.parsley-errors-list {
    color: #FF0000;
    padding-left: 1px;
    padding-top: 0px;
    margin: 0;
    margin-bottom: 5px;
    list-style-type: none;
}

.tabulator-row .tabulator-cell:last-of-type {
    padding: 0!important;
}

.tabulator-row .xcrud-action {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    margin: 1px;
    left: 2px!important;
    height: 20px;
}

div[aria-describedby="xcrud-modal-window"] {
    position: absolute;
    left: 9%!important;
    top: -12%!important;
    /* transform: translate(-50%, -50%); */
    width: 64%!important;
    /*transform: translate(-50%, -50%);*/
}

.group_form_header {
    text-align: left!important;
    padding-left: 115px!important;
    font-size: 14px;
    font-weight: 600;
}

.xcrud-counter {
    line-height: 9px;
    height: 7px;
    display: inline-block;
    width: 52px;
    padding-top: 11px;
}

.xcrud-actions input {
    float: right;
}

.xcrud-list {
    min-width: 100%;
    width: auto;
    display: table !important;
    margin: 0 0 3px;
    border-spacing: 0;
}

.xcrud-list td {
    padding: 8px 10px;
    border-bottom: 1px solid #DADADA;
    border-top: 1px solid transparent;
    vertical-align: top;
    background: #fff;
}

.xcrud-list td:first-child {
    border-left: 1px solid transparent;
}

.xcrud-list td:last-child {
    border-right: 1px solid transparent;
}

.xcrud-list .xcrud-row-1 td {
    background: #f9f9f9;
}

.xcrud-list .xcrud-row:hover td {
    background: #5742BF !important;
    color: #fff;
    border-top: 1px solid #5742BF;
    border-bottom: 1px solid #5742BF;
}

.xcrud-list .xcrud-row:hover td a {
    color: #B3E6FF;
}

.xcrud-list .xcrud-row:hover td .xcrud-button {
    background: #eee;
    color: #555;
}

.xcrud-button.xcrud-red:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-red {
    background: #BD3333;
    color: #fff;
}

.xcrud-button.xcrud-blue:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-blue {
    background: #3F49A3;
    color: #fff;
}

.xcrud-button.xcrud-cyan:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-cyan {
    background: #33AAAE;
    color: #fff;
}

.xcrud-button.xcrud-orange:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-orange {
    background: #D67C33;
    color: #fff;
}

.xcrud-button.xcrud-green:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-green {
    background: #43A856;
    color: #fff;
}

.xcrud-button.xcrud-pink:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-pink {
    background: #C355A6;
    color: #fff;
}

.xcrud-button.xcrud-black:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-black {
    background: #2C2C2C;
    color: #fff;
}

.xcrud-button.xcrud-purple:hover,
.xcrud-list .xcrud-row:hover .xcrud-button.xcrud-purple {
    background: #6D348E;
    color: #fff;
}

.xcrud-upload-progress {
    margin-top: 10px;
    font-size: 12px;
}
.xcrud-upload-progress-bar {
    width: 100%;
    height: 4px;
    background: #e6e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.xcrud-upload-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #3f8bff, #21d07a);
    transition: width 160ms ease;
}
.xcrud-upload-progress-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    gap: 8px;
    color: #4a4a4a;
}
.xcrud-upload-progress-status {
    font-weight: 500;
}
.xcrud-upload-progress-toast {
    font-size: 13px;
    padding: 8px 10px;
    margin-top: 4px;
    background: #eef3ff;
    border-radius: 4px;
    color: #1d2a8a;
    font-weight: 600;
}
.xcrud-upload-progress-list {
    margin-top: 8px;
    border-top: 1px solid #e3e5ea;
    padding-top: 8px;
    display: grid;
    gap: 6px;
}
.xcrud-upload-progress-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e3e5ea;
}
.xcrud-upload-progress-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #2b2b2b;
}
.xcrud-upload-progress-item-meta {
    font-size: 12px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.xcrud-upload-progress-item-caption {
    font-size: 11px;
    color: #777;
}
.xcrud-upload-progress-item-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.xcrud-upload-progress-item-remove,
.xcrud-upload-progress-item-caption-btn {
    font-size: 12px;
    border: none;
    background: transparent;
    color: #c0392b;
    cursor: pointer;
    padding: 0 4px;
}
.xcrud-upload-progress-controls {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.xcrud-column.xcrud-action:hover {
    cursor: pointer;
    background: #aaa;
    color: #fff;
    /*box-shadow: 0 0 1px #000;*/
}

.xcrud-container {
    position: relative;
}

.xcrud-list-container {
    overflow-x: auto;
    clear: both;
    padding: 0 1px;
    overflow-x: scroll;
}

.xcrud-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.xcrud-fields-grid[data-cols="1"] .xcrud-field-col {
    width: 100%;
}

.xcrud-fields-grid[data-cols="2"] .xcrud-field-col {
    width: calc(50% - 6px);
}

.xcrud-fields-grid[data-cols="3"] .xcrud-field-col {
    width: calc(33.333% - 8px);
}

.xcrud-field-col {
    flex: 1 1 auto;
    min-width: 220px;
}

.xcrud-field-label {
    font-weight: 600;
    margin-bottom: 6px;
}

.xcrud-field-input {
    width: 100%;
}

.xcrud-upload-container {
    border: 1px dashed #c7c7c7;
    padding: 10px;
    border-radius: 6px;
}

.xcrud-upload-container.xcrud-drop-active {
    border-color: #1a5589;
    background: #f3f7fb;
}

.xcrud-multi-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.xcrud-multi-images img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.xcrud-multi-image-item {
    position: relative;
    display: inline-block;
}

.xcrud-multi-caption-btn {
    position: absolute;
    bottom: -6px;
    left: -6px;
    border: none;
    background: #1a5589;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    line-height: 18px;
    cursor: pointer;
    z-index: 2;
}
.xcrud-multi-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    border: none;
    background: #d9534f;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    line-height: 18px;
    cursor: pointer;
    z-index: 2;
}

.xcrud-image-preview img {
    max-width: 90vw;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.xcrud-image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.xcrud-image-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.xcrud-overlay-box {
    background: #fff;
    padding: 16px;
    min-width: 800px;
    max-width: 98vw;
    max-height: 95vh;
    overflow: auto;
    border-radius: 10px;
}

.xcrud-history-pre {
    white-space: pre-wrap;
    font-size: 12px;
}

.xcrud-autosave-history {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.xcrud-autosave-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xcrud-autosave-history li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.xcrud-autosave-history button {
    margin-left: 6px;
}

.xcrud-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.xcrud-history-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.xcrud-history-meta-line {
    font-size: 12px;
    color: #666;
}

.xcrud-history-snippet {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.xcrud-history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.xcrud-history-filters select,
.xcrud-history-filters input[type="date"] {
    padding: 4px 6px;
    font-size: 12px;
}

.xcrud-compare-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xcrud-compare-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 8px;
    align-items: start;
    padding: 6px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fff;
}

.xcrud-compare-preview .xcrud-compare-row {
    grid-template-columns: 180px 1fr;
}

.xcrud-compare-head {
    background: #f7f7f7;
    font-weight: 600;
    border-color: #e6e6e6;
}

.xcrud-compare-col {
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
}

.xcrud-compare-label {
    font-weight: 600;
    color: #333;
}

.xcrud-compare-wide {
    grid-column: span 1;
}

.xcrud-compare-empty {
    color: #888;
}

.xcrud-compare-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xcrud-compare-image {
    width: 120px;
    text-align: center;
}

.xcrud-compare-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.xcrud-compare-caption {
    font-size: 11px;
    margin-top: 4px;
    color: #555;
}

.xcrud-compare-missing {
    font-size: 11px;
    color: #a00;
    border: 1px dashed #f2c0c0;
    border-radius: 6px;
    padding: 8px 6px;
}

.xcrud-image-frame {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.xcrud-overlay-prev,
.xcrud-overlay-next,
.xcrud-overlay-close,
.xcrud-overlay-delete {
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.xcrud-overlay-close {
    position: absolute;
    top: -16px;
    right: -16px;
}

.xcrud-overlay-delete {
    position: absolute;
    bottom: -24px;
    left: -16px;
    width: auto;
    padding: 0 12px;
    border-radius: 6px;
    height: 28px;
    font-size: 12px;
    background: #d9534f;
}

.xcrud-overlay-caption {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.xcrud-overlay-caption input {
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0 10px;
    font-size: 12px;
    width: 60vw;
    max-width: 520px;
    min-width: 220px;
}

.xcrud-overlay-save {
    height: 28px;
    border: none;
    background: #1a5589;
    color: #fff;
    padding: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.xcrud-overlay-saved {
    color: #28a745;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s ease;
}

.xcrud-overlay-saved.show {
    opacity: 1;
}

.xcrud-autosave-status {
    background: #999;
}

.xcrud-autosave-status.xcrud-autosave-saved {
    background: #28a745;
}

.xcrud-autosave-open {
    float: left;
    margin-left: 6px;
    background: #999;
}

.xcrud-autosave-open.xcrud-autosave-saved {
    background: #28a745;
}

.xcrud-image-overlay,
.xcrud-overlay-box {
    font-family: "IBM Plex Sans Arabic", Helvetica, Tahoma, sans-serif;
}

.xcrud {
    direction: rtl;
}

.xcrud-image-overlay {
    direction: rtl;
    text-align: right;
}

.xcrud-compare-grid .diff-add {
    background: #e6ffed;
}

.xcrud-compare-grid .diff-del {
    background: #ffeef0;
}

.xcrud-compare-long {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xcrud-compare-short {
    font-size: 12px;
    color: #2e2e2e;
}

.xcrud-compare-long details {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 8px;
    background: #fafafa;
}

.xcrud-compare-long summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.xcrud-compare-full {
    font-size: 12px;
    margin-top: 6px;
    color: #222;
}

.xcrud-top-actions {
    margin-bottom: 5px;
    overflow: hidden;
}

.xcrud-button,
a.xcrud-button {
    display: inline-block;
    margin: 1px 1px 0 0;
    height: 28px;
    line-height: 28px;
    background: #8D8D8D;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    vertical-align: top;
}

.xcrud-button:hover {
    background: #9D9D9D;
}

.xcrud .xcrud-button>i {
    font-size: 80%;
}

.xcrud .xcrud-row .xcrud-button>i {
    margin-right: 0;
    margin-left: 0;
    line-height: 26px;
}

.xcrud .xcrud-row .xcrud-button {
    margin: -4px 1px;
}

.xcrud-tooltip {
    text-decoration: none;
    color: #3F78BD;
}

.xcrud-details-table{
    width: 100%;
    margin: 10px 0;
    border-spacing: 0;
}
.xcrud-details-table td{
    padding: 2px 5px;
    background: #fff;
    text-align: right;
}
.xcrud-details-table td:first-child{
    text-align: right;
    width: 20%;
    min-width: 100px;
    border-right: 1px solid #fff;
}
.xcrud-details-table tr:nth-child(2n) td{
    background: #f5f5f5;
}



.xcrud-nav {
    padding: 15px 10px 5px;
}

.xcrud-nav:before {
    display: block;
    height: 1px;
    clear: both;
    content: "";
}

td.xcrud-actions {
    text-align: right;
    white-space: nowrap;
}

.xcrud-actions a {
    vertical-align: top;
}

.xcrud .xcrud-list .xcrud-row:hover td.xcrud-actions-fixed {
    position: absolute;
    right: 0;
    border-left: none;
    margin-top: 0;
}

.xcrud-overlay {
    /*display: none;*/
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: #fff 50% 50% no-repeat url(loading.gif);
    z-index: 5;
    opacity: 0.5;
    width: 100%;
}

.xcrud-num {
    color: #bbb;
    width: 10px;
}

.xcrud-pagination {
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: top;
}

.xcrud-pagination>li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.xcrud-pagination li a,
.xcrud-pagination li span {
    display: inline-block;
    vertical-align: top;
    height: 28px;
    line-height: 29px;
    font-size: 13px;
    padding: 0 10px;
    min-width: 10px;
    text-align: center;
    margin: 1px 1px 0 0;
}

.xcrud-pagination li a {
    text-decoration: none;
    color: #222;
    background: #ddd;
}

.xcrud-pagination li a:hover {
    color: #fff;
    background: #2C2C2C;
}

.xcrud-pagination li span {
    color: #888;
    background: #eee;
}

.xcrud-pagination li.active span {
    background: #3F49A3;
    color: #fff;
}

.xcrud-limit-buttons {
    display: inline-block;
    vertical-align: top;
}

.xcrud-button.active {
    background: #3F49A3;
    color: #fff;
}

.xcrud-benchmark {
    margin: 0;
    font-size: 10px;
    line-height: 0.1;
    color: #999;
}

.xcrud-benchmark span {
    margin: 0 5px;
}

table.xcrud-details.table td input,
table.xcrud-details.table td select,
table.xcrud-details.table td textarea {
    margin-bottom: 0;
}

.xcrud .xcrud-file-container.error {
    border: 1px solid #E20101;
    background-color: #FFE4E4;
    padding-left: 5px;
}

.xcrud .xcrud-file-container {
    font-size: 14px;
    line-height: 30px;
}

.xcrud .xcrud-file-container img {
    max-width: 99%;
    vertical-align: bottom;
}

.xcrud-add-file {
    position: relative;
    overflow: hidden;
}

input.xcrud-upload {
    cursor: pointer;
    direction: ltr;
    font-size: 100%;
    margin: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(-300px, 0px) scale(4);
    -webkit-transform: translate(-300px, 0px) scale(4);
    filter: progid: DXImageTransform.Microsoft.Alpha(opacity=0);
}

.xcrud .xcrud-list td.xcrud-sum {
    font-weight: bold;
}


/* column styles */

.xcrud-list td.align-left {
    text-align: left
}

.xcrud-list td.align-right {
    text-align: right;
}

.xcrud-list td.align-center {
    text-align: center;
}

.xcrud-list td.font-bold {
    font-weight: bold;
}

.xcrud-list td.font-italic {
    font-style: italic;
}

.xcrud-list td.text-underline {
    text-decoration: underline;
}

.xcrud .xcrud-list td .btn-small {
    padding: 5px 7px 2px 10px;
    margin-top: -4px;
    margin-bottom: -4px;
}

.xcrud .xcrud-list td .btn-small:first-child {
    margin-left: -4px;
}

.xcrud .xcrud-list td .btn-small:last-child {
    margin-right: -4px;
}

.xcrud-th th {
    background: #E9E9E9;
    white-space: nowrap;
    height: 35px;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 1px solid #DADADA;
    color: #777;
    border-right: 1px solid #F1F1F1;
    vertical-align: middle;
    padding: 2px 8px;
}

.xcrud-th th:last-child {
    border-right: none;
}

.xcrud .xcrud-daterange {
    width: 80px;
}

.xcrud-googlemap img {
    max-width: inherit;
}

.xcrud-search {
    margin-top: 1px;
}

.xcrud-search input,
.xcrud-search select {
    width: 10%;
    margin: 0 5px 0 0;
    vertical-align: top;
    min-width: 120px;
}

.xcrud-search input,
.xcrud-search select,
.xcrud-search .buttona {
    margin-bottom: 0;
}

.xcrud .btn {
    margin-left: 1px;
    margin-right: 1px;
}

.xcrud .btn:first-child {
    margin-left: 0;
}

.xcrud .btn:last-child {
    margin-right: 0;
}

.xcrud .btn .glyphicon {
    /*vertical-align: middle;*/
    margin: -1px 3px -1px 0;
    display: inline-block;
}

.xcrud-upload-container img {
    display: block;
    max-width: 700px;
    clear: both;
}

ul.xcrud-map-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 2px;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    z-index: 5;
}

ul.xcrud-map-dropdown li {
    margin: 0;
    padding: 3px 10px;
    cursor: pointer;
}

ul.xcrud-map-dropdown li:hover {
    background: #f4f4f4;
}

input.xcrud-inline {
    display: inline-block;
    width: 40%;
    margin-right: 10px;
}

.xcrud-map {
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    margin: 10px 0;
}


/* messages */

.xcrud-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 15px;
    padding: 10px 20px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(0, 0, 0, 0.05);
    display: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    color: #fff;
    color: rgba(255, 255, 255, 0.90);
    cursor: pointer;
    z-index: 500;
}

.xcrud-message.success {
    background: #5AB95F;
    border-top: 1px solid #8A1414;
    border-bottom: 1px solid #8A1414;
}

.xcrud-message.error {
    background: #D05C5C;
    border-top: 1px solid #931C1C;
    border-bottom: 1px solid #931C1C;
}

.xcrud-message.info {
    background: #6CC3C6;
    border-top: 1px solid #127B7C;
    border-bottom: 1px solid #127B7C;
}

.xcrud-message.note {
    background: #DDB75D;
    border-top: 1px solid #A66E13;
    border-bottom: 1px solid #A66E13;
}


/* forms */

.xcrud input[type="text"], .xcrud input[type="password"] {
    margin: 1px 1px 0 0;
    background: #fff;
    border: 1px solid #ccc;
    height: 26px;
    line-height: 26px;
    padding: 0;
    text-indent: 5px;
    font-size: 13px;
    font-family: Helvetica, Arial, sans-serif;
    color: #444;
    vertical-align: top;
    min-width: 50%;
}


/*.xcrud input[type="text"],*/
/*.xcrud input[type="password"] {*/
/*    margin: 1px 1px 0 0;*/
/*    background: #fff;*/
/*    border: 1px solid #ccc;*/
/*    height: 26px;*/
/*    line-height: 26px;*/
/*    padding: 0;*/
/*    text-indent: 5px;*/
/*    font-size: 13px;*/
/*    font-family: Helvetica, Arial, sans-serif;*/
/*    color: #444;*/
/*    vertical-align: top;*/
/*    min-width: 50%;*/
/*    */
/*    */
/*}*/

.xcrud select {
    margin: 1px 1px 0 0;
    background: #fff;
    border: 1px solid #ccc;
    height: 28px;
    padding: 5px 3px;
    font-size: 13px;
    font-family: Helvetica, Arial, sans-serif;
    color: #444;
    vertical-align: top;
    min-width: 50%;
}

.xcrud select[multiple] {
    height: auto;
}

.xcrud select option {
    padding: 2px 8px;
    font-size: 13px;
    font-family: Helvetica, Arial, sans-serif;
    color: #444;
    background: #fff;
}

.xcrud textarea {
    padding: 0;
    margin: 1px 1px 0 0;
    border: 1px solid #ccc;
    font-size: 13px;
    line-height: 18px;
    font-family: Helvetica, Arial, sans-serif;
    color: #444;
    vertical-align: top;
    min-width: 50%;
    min-height: 60px;
    text-indent: 5px;
}

.xcrud-radio-label,
.xcrud-checkboxes-label {
    display: block;
}

.xcrud-radio-label input,
.xcrud-checkboxes-label input {
    margin-right: 7px;
}

.xcrud input[readonly] {
    color: #777;
}

.xcrud input[disabled] {
    color: #777;
    background: #eee;
    cursor: not-allowed;
}

.xcrud input.xcrud-input-small,
.xcrud select.xcrud-input-small {
    width: 130px;
    min-width: 130px;
}

.xcrud img {
    border: 1px solid #fff;
    padding: 0;
    vertical-align: top;
    max-width: 100%;
}

.xcrud-noimage,
.xcrud-nofile,
.xcrud-file-name {
    display: inline-block;
    margin: 1px 1px 0 0;
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
    background: #eee;
    border: 1px solid #ccc;
    color: #777;
}

.xcrud .xcrud-file-name .xcrud-file {
    margin: 0 5px;
    color: #548591;
}

.xcrud h2 {
    font-size: 24px;
    color: #000;
    padding: 0;
    margin: 10px 0;
    font-weight: normal;
}

.xcrud h2 small {
    font-size: 16px;
    color: #999;
}

.xcrud .validation-error {
    box-shadow: 0 0 1px red, 0 0 3px red !important;
    background: #FFEBEB !important;
}

th.xcrud-actions {
    width: 40px;
}

a.xcrud_modal {
    text-decoration: none;
    color: inherit;
}

.xcrud-toggle-show {
    float: right;
    font-size: 13px;
    font-weight: bold;
    line-height: inherit;
    margin: 2px 8px;
    cursor: pointer;
}

h2 {
    border-bottom: 1px solid #ddd;
}

.xcrud-main-tab {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px 6px;
    margin: 0 2px;
    font-size: 20px;
}


/* RTL */

.xcrud.xcrud_rtl {
    direction: rtl;
}

.xcrud.xcrud_rtl .xcrud-list .xcrud-row:hover td.xcrud-actions-fixed {
    right: auto;
    left: 0;
}

.xcrud.xcrud_rtl .xcrud-toggle-show {
    float: left;
}

.xcrud.xcrud_rtl .xcrud-button>i {
    margin-right: auto;
    margin-left: 4px;
}

.xcrud.xcrud_rtl .xcrud-details-table td:first-child {
    text-align: right;
}

.video-js {
    width: 600px!important;
    height: 500px!important;
}

.xcrud-operations-select {
    width: 50px !important;
    min-width: 50px !important;
}

.tabulator {
    background-color: transparent!important;
}

.xcrud-advanced-search-title {
    margin-bottom: 15px;
    position: relative;
    display: block;
    border-bottom: 1px solid #e5e5e5;
    background: #f2f2f2;
    padding: 8px;
}

.grid-expanded {
    width: 100%!important;
}

.grid-shrinked {
    width: 60%!important;
    float: left;
}

.edit_side_panel {
    width: 39%;
    float: right;
    position: relative;
    margin-left: 10px;
}

.fileupload {
    border: 1px dashed #888;
    padding: 13px;
}

#fileupload {
    border: 1px dashed #888;
    padding: 13px;
}

.template-download.fade.in {
    opacity: 1!important;
}

.search_values {
    border: 1px solid #e5e5e5;
    padding: 5px;
    margin: 4px;
    display: inline-block;
    border-radius: 4px;
    background: #f7f7f7;
}

.fade {
    opacity: 100!important;
}

.search_values button {
    margin-left: 10px;
}


/** Panel View **/
div.xcrud-row{
  width: 32%;
  overflow: hidden;
  float: left;
  border: 1px solid #e5e5e5;
  margin-top: 10px;
  margin-left: 2px;
  padding: 20px;
  max-height: 350px;
  min-height: 350px;
  overflow-y: scroll;
}

div.xcrud-row span:not(.slider){
  display: block;
  width: auto !important;
  margin-bottom:10px;

}
div.xcrud-row .dropdown-toggle{
float: right;
  position: relative;
  top: -32px;
  right: 0px;
  border: 1px solid #e5e5e5;
}

.xcrud-num {
  color: #bbb;
  width: 10px;
}


div.xcrud-th{
  padding:10px;
}

div.xcrud-th span{

  padding: 10px;
  background: #f7f7f4;
  border: 1px solid #eeeded;

}

.resizer {
    width: 5px;
    height: 100%;
    background: gray;
    cursor: col-resize;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}
th {
    position: relative;
}
.hidden {
    display: none;
}

.xcrud-seo-optimizer {
    margin-bottom: 6px;
    font-family: "IBM Plex Sans Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #444;
}
.xcrud-seo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xcrud-seo-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.xcrud-seo-ring {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ecf0f3;
    box-shadow: inset 0 0 0 2px #dae1e8;
    transition: background 0.3s ease;
}
.xcrud-seo-ring-value {
    display: none;
}
.xcrud-seo-counter {
    margin: 0;
    font-weight: 600;
    font-size: 11px;
    color: #1f1f1f;
}
.xcrud-seo-message {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #566176;
    line-height: 1.3;
}
.xcrud-seo-message-text {
    font-size: 11px;
}
.xcrud-seo-check {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    color: #33a653;
}
.xcrud-seo-check.visible {
    opacity: 1;
}

.xcrud-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}
.xcrud-select .dropdown-menu {
    width: 170px;
    max-width: 170px;
    min-width: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.xcrud-select .dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "IBM Plex Sans Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    padding: 8px;
}
.xcrud-select .dropdown-menu .xcrud-select-item + .xcrud-select-item {
    border-top: 1px solid #f1f1f1;
}
.xcrud-select .dropdown-toggle::after {
    display: none;
}
.xcrud-select .dropdown-toggle {
    width: 100%;
    justify-content: center;
    gap: 6px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.xcrud-media-library-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    padding: 24px;
}
.xcrud-media-library-box {
    background: #fff;
    border-radius: 12px;
    width: min(95vw, 1100px);
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.xcrud-media-library-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ececec;
}
.xcrud-media-library-body {
    padding: 16px 22px;
    overflow-y: auto;
    max-height: calc(92vh - 170px);
    display: block;
}
.xcrud-media-library-item {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    touch-action: manipulation;
    background: linear-gradient(180deg, #fff, #f7f9fb);
    min-height: 150px;
    position: relative;
}
.xcrud-media-library-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}
.xcrud-media-library-item span {
    position: relative;
    z-index: 1;
}
.xcrud-media-library-item span {
    display: none;
}
.xcrud-media-library-item {
    position: relative;
}
.xcrud-media-library-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(69, 186, 255, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}
@media (hover: hover) {
.xcrud-media-library-item:not(.selected):hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 11px;
    pointer-events: none;
    z-index: 100;
}
}
.xcrud-media-library-item.selected {
    border-color: #33a653;
    box-shadow: 0 8px 18px rgba(51, 166, 83, 0.25);
    transform: translateY(-2px);
}
.xcrud-media-library-item.selected::before {
    opacity: 1;
}
.xcrud-media-library-item.selected::after {
    content: '✔';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #33a653;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
}
.xcrud-media-library-footer {
    padding: 10px 15px;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    gap: 12px;
}
.xcrud-media-library-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
}
.xcrud-media-library-counter {
    font-size: 12px;
    color: #1a5589;
    font-weight: 600;
}
.xcrud-media-library-confirm.xcrud-disabled,
.xcrud-media-library-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.xcrud-media-library-title-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}
.xcrud-media-library-search {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 220px;
    font-family: "IBM Plex Sans Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.xcrud-media-library-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.xcrud-media-library-group {
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
}
.xcrud-media-library-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #555;
}
.xcrud-media-library-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.xcrud-media-library-group-count {
    font-size: 11px;
    color: #999;
}
.xcrud-media-library-group-empty {
    display: none;
}
.xcrud-media-library-error-message {
    padding: 24px;
    text-align: center;
    color: #c0392b;
}
.xcrud-media-library-loading-indicator {
    text-align: center;
    padding: 20px 0;
    color: #666;
}
.xcrud-media-library-loading-text {
    margin-top: 8px;
}
.xcrud-media-library-search-results-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.xcrud-media-library-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.xcrud-media-library-search-title {
    font-size: 12px;
    color: #1e1f21;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.2;
    min-height: 42px;
}
.xcrud-media-library-search-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
}
.xcrud-media-library-back {
    background: #0d6efd;
    border-color: transparent;
    color: #fff;
}
.xcrud-media-library-search-empty {
    text-align: center;
    padding: 32px 0;
}

/* لجعل لون الرابط داخل القائمة المنسدلة أزرق غامق */
.dropdown-menu.dropdown-menu-end.xcrud-select-menu a {
    color: darkblue !important; /* أو استخدم #00008B أو أي درجة أزرق غامق تفضلها */
}
