﻿
/* حذف خطوط جدول بین سلول‌ها */
div.rz-datatable table.rz-datatable-table > thead > tr > th,
div.rz-datatable table.rz-datatable-table > tbody > tr > td {
    border: none !important;
}

/* تنظیم فاصله‌ی بین ردیف‌ها (مدل جدول separate با فاصله عمودی) */
div.rz-datatable table.rz-datatable-table {
    border-collapse: separate !important;
    border-spacing: 0 12px !important; /* 12px فاصله عمودی بین ردیف‌ها */
}

    /* استایل کارت برای هر ردیف */
    div.rz-datatable table.rz-datatable-table > tbody > tr {
        background-color: #ffffff !important; /* پس‌زمینه سفید برای ردیف */
        border-radius: 10px !important; /* گوشه‌های گرد کارت */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* سایه کم */
        overflow: hidden !important; /* جلوگیری از بیرون‌زدن محتوا از گوشه‌های گرد */
        transition: box-shadow 0.3s ease-in-out;
    }

        /* افکت هنگام هاور شدن روی ردیف */
        div.rz-datatable table.rz-datatable-table > tbody > tr:hover {
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important; /* سایه عمیق‌تر */
            /* transform: translateY(-2px) !important; */
        }

        /* تنظیمات سلول‌های دیتا (بدنه جدول) */
        div.rz-datatable table.rz-datatable-table > tbody > tr > td {
            padding: 16px 20px !important; /* فضای داخلی هر سلول */
            font-size: 1.05rem !important; /* افزایش اندازه فونت محتوای سلول */
            vertical-align: middle !important; /* متن سلول عمودی وسط چین شود */
            background-color: #ffffff !important;
            border: none !important;
        }

    /* تنظیمات سلول‌های سربرگ ستون‌ها */
    div.rz-datatable table.rz-datatable-table > thead > tr > th {
        background-color: #f1f3f5 !important; /* پس‌زمینه‌ی سربرگ کمی خاکستری روشن */
        font-size: 1.2rem !important; /* افزایش اندازه فونت عنوان ستون */
        font-weight: 700 !important; /* بولد کردن فونت سربرگ */
        color: #333 !important; /* رنگ متن سربرگ (خاکستری تیره) */
        text-align: center !important; /* مرکزچین شدن متن سربرگ */
        padding: 18px 20px !important; /* فضای داخلی هر سلول سربرگ */
        border: none !important;
    }
.search-modal-header {
    padding: 0.75rem 1rem;
    background-color: #f1f1f1;
    border-bottom: 1px solid #dee2e6;
}

    .search-modal-header h5 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0;
        color: #2d2d2d;
    }

.custom-radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: #f4faff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
}

    .custom-radio-option:hover {
        background-color: #eaf6fc;
        box-shadow: 0 0 10px rgba(114, 182, 255, 0.2); /* رنگ آبی ملایم‌تر */
    }

    .custom-radio-option input[type="radio"]:checked + .custom-radio-label {
        font-weight: bold;
        color: #004a99;
    }

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #7db6f3; /* آبی روشن‌تر */
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background-color: white;
}

    .custom-radio::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        top: 3px;
        left: 3px;
        background-color: #7db6f3; /* نقطه آبی داخل دکمه */
        border-radius: 50%;
        opacity: 0;
        transform: scale(0);
        transition: all 0.25s ease-in-out;
    }

    .custom-radio:checked::after {
        opacity: 1;
        transform: scale(1);
    }

    .custom-radio:checked {
        box-shadow: 0 0 10px 4px rgba(114, 182, 255, 0.2); /* نور آبی نرم‌تر */
        background-color: #eef7ff;
    }

.custom-radio-label {
    font-size: 1.05rem;
    transition: color 0.2s ease-in-out;
}

/* Modern detail modals used by dashboard detail buttons */
.gomrok-detail-modal-backdrop {
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.18), transparent 32%),
        radial-gradient(circle at 84% 20%, rgba(20, 184, 166, 0.14), transparent 30%),
        rgba(15, 23, 42, 0.52) !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 1055;
}

.gomrok-detail-modal-backdrop .modal-dialog {
    width: min(1120px, calc(100vw - 28px));
}

.gomrok-detail-modal-backdrop .modal-content {
    direction: rtl;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
        #fff;
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.22),
        0 2px 0 rgba(255, 255, 255, 0.8) inset !important;
}

.gomrok-detail-modal-backdrop .modal-header {
    position: relative;
    min-height: 82px;
    padding: 22px 28px 18px !important;
    border: 0 !important;
    color: #172033 !important;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(240, 253, 250, 0.94)),
        #f8fafc !important;
}

.gomrok-detail-modal-backdrop .modal-header::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0;
    width: 5px;
    background: linear-gradient(180deg, #2563eb, #14b8a6);
}

.gomrok-detail-modal-backdrop .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #172033 !important;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.7;
}

.gomrok-detail-modal-backdrop .modal-title::before {
    content: "\F431";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.11);
    border: 1px solid rgba(37, 99, 235, 0.16);
    font-family: "bootstrap-icons";
    font-size: 18px;
}

.gomrok-detail-modal-backdrop .modal-header .btn-close {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(203, 213, 225, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    opacity: 0.85;
}

.gomrok-detail-modal-backdrop .modal-header .btn-close:hover {
    opacity: 1;
    background-color: #fff;
}

.gomrok-detail-modal-backdrop .modal-body {
    padding: 24px 28px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.88)),
        #fff;
}

.gomrok-detail-modal-backdrop .modal-footer {
    padding: 16px 28px 22px !important;
    border: 0 !important;
    background: #f8fafc;
}

.gomrok-detail-modal-backdrop .modal-footer .btn,
.gomrok-detail-modal-backdrop .modal-header .btn {
    border-radius: 10px;
    font-weight: 700;
}

.gomrok-detail-modal-backdrop .rz-data-grid,
.gomrok-detail-modal-backdrop .rz-datatable {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.gomrok-detail-modal-backdrop .rz-grid-table thead th,
.gomrok-detail-modal-backdrop .rz-datatable-thead th {
    color: #334155;
    background: #f1f5f9 !important;
    font-weight: 800;
}

.gomrok-detail-modal-backdrop .rz-grid-table tbody tr:hover,
.gomrok-detail-modal-backdrop .rz-datatable-data tr:hover {
    background: rgba(37, 99, 235, 0.045) !important;
}

.gomrok-detail-modal-backdrop .text-muted:only-child,
.gomrok-detail-modal-backdrop p.text-muted {
    margin: 0;
    padding: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 10px;
    color: #64748b !important;
    background: #f8fafc;
    text-align: center;
    font-weight: 700;
}

.gomrok-detail-modal-backdrop .form-control-solid {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    background: #f8fafc;
}

@media (max-width: 767.98px) {
    .gomrok-detail-modal-backdrop .modal-dialog {
        width: calc(100vw - 18px);
        margin-inline: auto;
    }

    .gomrok-detail-modal-backdrop .modal-header,
    .gomrok-detail-modal-backdrop .modal-body,
    .gomrok-detail-modal-backdrop .modal-footer {
        padding-inline: 16px !important;
    }

    .gomrok-detail-modal-backdrop .modal-title {
        font-size: 0.95rem;
    }
}

