.gr-wrapper {
    width: 100%;
    max-width: 1330px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gr-form {
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    box-sizing: border-box;
}

/* فیلدها از چپ به راست */
.gr-fields {
    display: flex;
    flex-direction: row;
    direction: ltr;
    gap: 16px;
    align-items: flex-end;
}

.gr-field {
    flex: 1;
    min-width: 0;
    direction: rtl;
}

.gr-field label {
    display: block;
    margin: 0 0 9px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.gr-field input,
.gr-field select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dfe4ea;
    border-radius: 11px;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.gr-field input:hover,
.gr-field select:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.gr-field input:focus,
.gr-field select:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* دکمه */
.gr-submit {
    margin-top: 22px;
    direction: rtl;
}

.gr-submit button {
    min-width: 150px;
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.gr-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.gr-submit button:active {
    transform: translateY(0);
}

/* پیام موفقیت */
.gr-success {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 11px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 14px;
    font-weight: 600;
}

/* پیام خطا */
.gr-error {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 11px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
}

/* موبایل و تبلت */
@media (max-width: 900px) {

    .gr-fields {
        flex-wrap: wrap;
    }

    .gr-field {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 600px) {

    .gr-wrapper {
        margin: 20px auto;
        padding: 0 12px;
    }

    .gr-form {
        padding: 20px;
        border-radius: 14px;
    }

    .gr-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .gr-field {
        flex: 1 1 100%;
        width: 100%;
    }

    .gr-submit button {
        width: 100%;
    }
}
/* =========================
   Text Inputs
========================= */

.gr-form .gr-field input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;

    border: 1px solid #d9dee7;
    border-radius: 12px;

    background: #fff;

    color: #1f2937;
    font-size: 14px;
    font-family: inherit;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* حالت Focus */

.gr-form .gr-field input[type="text"]:focus {
    border-color: #2563eb;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* Placeholder */

.gr-form .gr-field input[type="text"]::placeholder {
    color: #9ca3af;
    opacity: 1;
}


/* Label */

.gr-form .gr-field label {
    display: block;

    margin-bottom: 8px;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}


/* Select ها هم دقیقاً هم‌اندازه Input باشند */

.gr-form .gr-field select {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #d9dee7;
    border-radius: 12px;

    background-color: #fff;

    color: #1f2937;

    font-size: 14px;
    font-family: inherit;

    outline: none;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.gr-form .gr-field select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}
.gr-admin-search {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#gr-mobile-search {
    width: 300px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 14px;
}

#gr-mobile-search:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

#gr-search-loading {
    color: #666;
    font-size: 13px;
}