.pim-page { max-width: 1100px; margin: 0 auto; padding: 16px; font-family: inherit; direction: rtl; text-align: right; }

.pim-hero { margin-bottom: 20px; }

.pim-hero h2 { margin: 0 0 8px; font-size: 22px; }

.pim-hero p { margin: 0; color: #64748b; font-size: 14px; }

.pim-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.pim-step { padding: 8px 14px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 13px; }

.pim-step.active { background: #0f766e; color: #fff; }

.pim-step.done { background: #dcfce7; color: #166534; }

.pim-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; margin-bottom: 16px; }

.pim-card h3 { margin: 0 0 12px; font-size: 16px; }



.pim-page .pim-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px 14px;

    align-items: start;

}

@media (max-width: 960px) {

    .pim-page .pim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

@media (max-width: 560px) {

    .pim-page .pim-grid { grid-template-columns: 1fr; }

}



.pim-page .pim-field { min-width: 0; }

.pim-page .pim-field-full { grid-column: 1 / -1; }



.pim-page .pim-field label {

    display: block;

    font-size: 12px;

    color: #475569;

    margin-bottom: 6px;

    line-height: 1.5;

    font-weight: 600;

    white-space: normal;

}



.pim-page .pim-field input[type="text"],

.pim-page .pim-field input[type="number"],

.pim-page .pim-field input[type="password"],

.pim-page .pim-field select,

.pim-page .pim-field textarea {

    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    min-height: 38px !important;

    height: auto !important;

    padding: 8px 10px !important;

    border: 1px solid #cbd5e1 !important;

    border-radius: 8px !important;

    box-sizing: border-box !important;

    font-size: 13px !important;

    line-height: 1.45 !important;

    background: #fff !important;

    color: #1e293b !important;

    margin: 0 !important;

}



.pim-page .pim-field select { cursor: pointer; }

.pim-page .pim-field select:disabled { background: #f8fafc !important; color: #94a3b8 !important; }



.pim-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pim-btn { padding: 10px 16px; border-radius: 10px; border: none; cursor: pointer; font-size: 14px; }

.pim-btn-primary { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; }

.pim-btn-outline { background: #fff; border: 1px solid #cbd5e1; color: #334155; }

.pim-btn:disabled { opacity: 0.65; cursor: wait; }

.pim-notice { padding: 10px 12px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #0f766e; font-size: 13px; margin-bottom: 12px; }

.pim-notice.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.pim-notice.err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.pim-progress { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 12px 0; }

.pim-progress-bar { height: 100%; background: linear-gradient(90deg, #14b8a6, #0d9488); transition: width .3s; }

.pim-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #475569; }

.pim-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.pim-table th, .pim-table td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: right; }

.pim-table th { color: #64748b; font-weight: 600; }



.pim-page .mem-val-hidden { display: none !important; }

.pim-page .mem-val-err { display: block; color: #dc2626; font-size: 12px; margin-top: 4px; }



.pim-cat-field { grid-column: 1 / -1; }

.pim-cat-field .cat-picker {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 4px;

}

.pim-cat-field .cat-picker select {

    width: 100%;

    padding: 8px 10px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 13px;

    min-height: 38px;

    background: #fff;

    box-sizing: border-box;

}

.pim-cat-field .cat-picker select:disabled { background: #f8fafc; color: #94a3b8; }

@media (max-width: 720px) {

    .pim-cat-field .cat-picker { grid-template-columns: 1fr; }

}



.pim-cover-row {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-top: 4px;

}

.pim-cover-name { font-size: 12px; color: #64748b; }

.pim-cover-preview {

    display: block;

    max-width: 120px;

    max-height: 120px;

    margin-top: 8px;

    border-radius: 8px;

    border: 1px solid #e2e8f0;

}

.pim-cover-hint { font-size: 11px; color: #94a3b8; margin: 6px 0 0; line-height: 1.55; }

.pim-hint {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.55;
    font-weight: normal;
}
.pim-section-title {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 10px 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #0f766e;
    border-bottom: 1px solid #e2e8f0;
}
.pim-help-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
}
.pim-help-box h4 { margin: 0 0 8px; font-size: 14px; color: #1e293b; }
.pim-help-box ul { margin: 8px 0 0; padding-right: 20px; }
.pim-help-box li { margin-bottom: 6px; }
.pim-help-box code, .pim-example {
    background: #ecfdf5;
    color: #0f766e;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    direction: ltr;
    display: inline-block;
}
.pim-example-block {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.6;
}
.pim-example-block strong { color: #334155; }



.pim-source-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.pim-source-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 13px; }

.pim-source-tab.active { background: #0f766e; color: #fff; border-color: #0f766e; }

.pim-hidden { display: none !important; }

.pim-pay-box { border: 1px dashed #f59e0b; background: #fffbeb; padding: 14px; border-radius: 12px; margin-top: 12px; }

