/* ==========================================================================
   Profile readiness — dashboard panel (_ProfileReadinessPanel), blocking card
   (_ProfileRequired) and the shared section/item list (_ProfileReadinessItems).
   Uses logical properties so the layout follows html[dir] (EN ltr / AR rtl).
   ========================================================================== */

.prd-card,
.prd-block {
    background: #fff;
    border: 1px solid rgba(32,56,50,.09);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(32,56,50,.05);
    margin-bottom: 16px;
    overflow: hidden;
    color: #203832;
}

/* ── header ── */
.prd-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(32,56,50,.07);
}
.prd-head-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(32,56,50,.10); color: #203832;
    display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
}
.prd-state-attention .prd-head-icon { background: rgba(170,125,109,.16); color: #8a5a48; }
.prd-state-complete  .prd-head-icon { background: #dcfce7; color: #16a34a; }
.prd-head-text { flex: 1; min-width: 0; text-align: start; }
.prd-title { font-size: 12px; font-weight: 700; color: #203832; text-transform: uppercase; letter-spacing: .06em; }
.zf-rtl .prd-title { letter-spacing: 0; }
.prd-sub   { font-size: 11px; color: rgba(32,56,50,.55); margin-top: 1px; }

.prd-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.prd-badge-ok   { background: #dcfce7; color: #166534; }
.prd-badge-warn { background: #fef9c3; color: #854d0e; }
.prd-badge-muted { background: rgba(32,56,50,.07); color: rgba(32,56,50,.65); }

/* ── body ── */
.prd-body { padding: 14px 18px 16px; }

.prd-progress-label {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    font-size: 11px; color: rgba(32,56,50,.60); margin-bottom: 6px;
}
.prd-pct { font-size: 20px; font-weight: 800; color: #203832; line-height: 1; }
.prd-missing { font-weight: 600; color: #8a5a48; }
.prd-bar { height: 8px; background: rgba(32,56,50,.08); border-radius: 999px; overflow: hidden; }
.prd-bar-fill { height: 100%; border-radius: 999px; background: #AA7D6D; transition: width .6s ease; }
.prd-bar-fill.ok { background: #2d7a56; }

/* 4 section pills under the bar */
.prd-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .prd-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.prd-step {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 600; text-decoration: none;
    border: 1px solid rgba(32,56,50,.08); min-width: 0;
}
.prd-step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prd-step.ok   { background: #f0faf4; color: #166534; }
.prd-step.todo { background: #fffbeb; color: #854d0e; border-color: rgba(202,138,4,.25); }
a.prd-step.todo:hover { background: #fef3c7; color: #713f12; }

/* ── sections + items (shared) ── */
.prd-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.prd-section {
    border: 1px solid rgba(32,56,50,.10); border-radius: 11px;
    background: #fbfcfb; padding: 11px 12px; min-width: 0;
}
.prd-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.prd-section-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(170,125,109,.14); color: #8a5a48;
    display: grid; place-items: center; font-size: 13px; flex-shrink: 0;
}
.prd-section-title { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #203832; text-align: start; }
.prd-section-count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: #fef9c3; color: #854d0e; font-size: 10px; font-weight: 700;
    display: inline-grid; place-items: center;
}
.prd-fix {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid rgba(32,56,50,.22); background: #fff; color: #203832;
    font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.prd-fix:hover { background: #203832; color: #fff; border-color: #203832; }

.prd-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.prd-item {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 8px; border-radius: 8px;
    font-size: 11.5px; color: #3b2a22; text-decoration: none;
    background: #fff; border: 1px solid rgba(170,125,109,.22);
}
.prd-item:hover { background: rgba(170,125,109,.08); color: #203832; }
.prd-item > i:first-child { color: #c2410c; font-size: 11px; flex-shrink: 0; }
.prd-item-text { flex: 1; min-width: 0; text-align: start; }
.prd-item-go { color: rgba(32,56,50,.40); font-size: 11px; flex-shrink: 0; }
.prd-no-detail { font-size: 11px; color: rgba(32,56,50,.55); }

/* chevrons / arrows point the reading direction */
html[dir="rtl"] .prd-flip { transform: scaleX(-1); display: inline-block; }

/* ── compact complete / unavailable states ── */
.prd-compact { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.prd-compact .prd-head-text { flex: 1; }
.prd-compact-text { font-size: 12px; color: rgba(32,56,50,.65); margin-top: 2px; }
.prd-retry {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(32,56,50,.22); background: #fff; color: #203832;
    font-size: 11px; font-weight: 600;
}
.prd-retry:hover { background: #203832; color: #fff; }
.prd-state-unavailable .prd-head-icon { background: rgba(32,56,50,.07); color: rgba(32,56,50,.6); }

/* ── blocking card (service forms) ── */
.prd-block { border-color: rgba(170,125,109,.35); }
.prd-block-head {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #203832 0%, #2a4a42 100%);
    color: #fff;
}
.prd-block-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: rgba(170,125,109,.28); color: #f1d3c4;
    display: grid; place-items: center; font-size: 20px;
}
.prd-eyebrow { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.60); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.zf-rtl .prd-eyebrow { letter-spacing: 0; }
.prd-block-title { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 4px; line-height: 1.3; }
.prd-block-text  { font-size: 12px; color: rgba(255,255,255,.75); margin: 0; line-height: 1.5; }
.prd-block .prd-body { background: #f8faf9; }
.prd-note {
    margin-top: 12px; padding: 9px 12px; border-radius: 9px;
    background: rgba(32,56,50,.04); border: 1px solid rgba(32,56,50,.08);
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: rgba(32,56,50,.60);
}
.prd-note i { color: #AA7D6D; font-size: 13px; flex-shrink: 0; }

/* ── popup (SweetAlert) additions on top of the layout's pg-* styles ── */
.pg-swal-html .prd-sections { margin-top: 0; grid-template-columns: 1fr; }
.pg-swal-html .prd-progress { margin-bottom: 12px; }
.pg-swal-html .prd-section { background: #fff; }
html[dir="rtl"] .pg-swal-html .prd-section,
html[dir="rtl"] .pg-swal-html .prd-progress { direction: rtl; text-align: right; }
