.sas-pc-shell{
  --pc-emerald-950:#0b2f2a;
  --pc-emerald-900:#103c35;
  --pc-emerald-800:#165247;
  --pc-cream:#f4f8f6;
  --pc-line:#ddd4bd;
  --pc-muted:#6f746f;
  --pc-brick:#a6512c;
  --pc-brick-bg:#f3e2d8;
  --pc-ok:#3d6a4f;
  --pc-ok-bg:#e6efe8;
  max-width:1180px;margin:0 auto;color:var(--pp-text,#252a27);
}
.sas-pc-shell *{box-sizing:border-box}

.sas-pc-new-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.sas-pc-new-row p{margin:0;color:var(--pc-muted);font-size:12.5px}
.sas-pc-btn-primary{
  background:var(--pc-emerald-900);color:#fff;border:0;border-radius:2px;padding:10px 18px;
  font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit;
}
.sas-pc-btn-primary:hover{background:var(--pc-emerald-800)}
.sas-pc-btn-primary:focus-visible{outline:3px solid rgba(16,60,53,.25);outline-offset:2px}

/* جدول: طبق تصمیم صریح Specification، همیشه جدول است، حتی روی موبایل */
.sas-pc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-top:1px solid var(--pc-line)}
.sas-pc-table-wrap table{width:100%;border-collapse:collapse;min-width:560px}
.sas-pc-table-wrap thead th{
  text-align:right;font-size:11.5px;font-weight:700;color:var(--pc-emerald-950);
  padding:10px;border-bottom:2px solid var(--pc-emerald-900);white-space:nowrap;
}
.sas-pc-table-wrap tbody td{padding:12px 10px;border-bottom:1px solid var(--pc-line);font-size:13px;vertical-align:middle}
.sas-pc-table-wrap tbody tr:hover td{background:var(--pc-cream)}
.sas-pc-table-wrap td strong{display:block}
.sas-pc-empty{padding:22px 4px;color:var(--pc-muted);font-size:13px;text-align:center}

.sas-pc-badge{display:inline-block;padding:4px 10px;border-radius:2px;font-size:11px;font-weight:600;white-space:nowrap}
.sas-pc-badge.is-open{background:var(--pc-brick-bg);color:var(--pc-brick)}
.sas-pc-badge.is-done{background:var(--pc-ok-bg);color:var(--pc-ok)}

@media(max-width:640px){
  .sas-pc-table-wrap table{min-width:520px;font-size:12px}
  .sas-pc-table-wrap thead th{font-size:10.5px}
}

/* ---------- مودال ---------- */
.sas-pc-modal-backdrop{position:fixed;inset:0;background:rgba(7,25,20,.46);display:none;align-items:center;justify-content:center;padding:16px;z-index:9999}
.sas-pc-modal-backdrop.open{display:flex}
.sas-pc-modal{background:#fff;width:min(480px,100%);max-height:90vh;overflow:auto;box-shadow:0 20px 50px rgba(7,25,20,.2)}
.sas-pc-modal header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--pc-line);position:sticky;top:0;background:#fff}
.sas-pc-modal header h3{margin:0;font-size:15.5px;color:var(--pc-emerald-950)}
.sas-pc-modal header button{width:30px;height:30px;border:1px solid var(--pc-line);background:var(--pc-cream);color:var(--pc-emerald-900);cursor:pointer;font-size:15px}
.sas-pc-modal-body{padding:20px}
.sas-pc-field{margin-bottom:14px}
.sas-pc-field label{display:block;font-size:12.5px;font-weight:600;margin-bottom:6px;color:var(--pc-emerald-950)}
.sas-pc-field select,.sas-pc-field textarea{
  width:100%;border:1px solid var(--pc-line);background:#fff;padding:9px 10px;border-radius:2px;
  font-family:inherit;font-size:13.5px;color:inherit;
}
.sas-pc-field textarea{min-height:80px;resize:vertical}
.sas-pc-hint{font-size:11.5px;color:var(--pc-muted);margin-top:5px}
.sas-pc-form-notice{padding:11px 14px;font-size:12.5px;margin-bottom:14px}
.sas-pc-form-notice.is-error{background:var(--pc-brick-bg);border-inline-start:4px solid var(--pc-brick);color:#7a3d20}
.sas-pc-form-notice.is-success{background:var(--pc-ok-bg);border-inline-start:4px solid var(--pc-ok);color:#1e4a30}
.sas-pc-modal-body button[type=submit]{
  background:var(--pc-emerald-900);color:#fff;border:0;padding:11px 22px;font-size:13.5px;font-weight:600;
  cursor:pointer;font-family:inherit;width:100%;border-radius:2px;
}
.sas-pc-modal-body button[type=submit]:hover{background:var(--pc-emerald-800)}
.sas-pc-modal-body button[type=submit][disabled]{opacity:.6;cursor:default}
