/* Morning report screen — clean lavender surfaces.
   Loaded after clay.css; every rule is scoped to body.report-page. */

body.report-page{
  background:#f7f5fc;
  color:#2e2a45;
}
body.report-page::before,
body.report-page::after{display:none}

body.report-page .wrap{
  max-width:none;
  padding:clamp(14px,2vw,28px);
}

/* ---------- compact header ---------- */
.rp-head{padding:6px 2px 14px}
.rp-head h1{
  margin:0;
  font-size:clamp(17px,2.1vw,24px);
  font-weight:800;
  letter-spacing:-.01em;
  color:#2b2742;
}
.rp-period{
  margin-top:6px;
  font-size:clamp(12px,1.2vw,13.5px);
  font-weight:700;
  color:#6f6790;
}

/* ---------- panel ---------- */
.rp-panel{
  background:#fff;
  border:1px solid #ece7f7;
  border-radius:18px;
  box-shadow:0 1px 3px rgba(58,49,87,.07), 0 10px 26px rgba(58,49,87,.06);
  overflow:hidden;
}

/* ---------- toolbar ---------- */
.rp-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:13px 18px;
  border-bottom:1px solid #eee9f8;
  background:#fdfcff;
}
.rp-left{display:flex;align-items:center;gap:10px;min-width:0}
.rp-title{font-size:15px;font-weight:800;color:#2b2742}
.rp-badge{
  display:inline-flex;align-items:center;
  padding:3px 10px;border-radius:999px;
  font-size:11px;font-weight:800;letter-spacing:.02em;
  color:#6f57cf;background:#ede7f9;border:1px solid #ddd3f3;
}
.rp-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rp-search{
  font-family:inherit;font-size:13px;color:#2e2a45;
  width:min(260px,46vw);
  padding:9px 12px;
  border:1px solid #e4ddf3;
  border-radius:10px;
  background:#fff;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.rp-search::placeholder{color:#9a92b4}
.rp-search:focus{border-color:#a992ea;box-shadow:0 0 0 3px rgba(138,116,226,.14)}
.rp-export{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 15px;border-radius:10px;
  font-size:13px;font-weight:800;color:#fff;text-decoration:none;
  background:#7d63d6;
  border:1px solid #7059c8;
  box-shadow:0 2px 6px rgba(109,88,190,.22);
  transition:background .2s ease,transform .2s ease;
}
.rp-export:hover{background:#6f57cf;transform:translateY(-1px)}

/* ---------- table ---------- */
.rp-table-wrap{overflow:auto}
table.rp-table{
  width:100%;border-collapse:collapse;table-layout:fixed;
  font-size:13px;background:#fff;
}
table.rp-table thead th{
  position:sticky;top:0;z-index:2;
  background:#ede7f9;color:#2b2742;
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid #ddd4f0;
  border-right:1px solid #e6e0f2;
}
table.rp-table thead th:last-child{border-right:0}
table.rp-table thead th.col-no{text-align:center}
table.rp-table tbody td{
  padding:14px;
  color:#2e2a45;
  vertical-align:top;
  border-bottom:1px solid #efeaf9;
  border-right:1px solid #f2eefb;
}
table.rp-table tbody td:last-child{border-right:0}
table.rp-table tbody tr{cursor:pointer;transition:background .15s ease}
table.rp-table tbody tr:hover td{background:#faf8ff}
table.rp-table tbody tr:last-child td{border-bottom:0}
table.rp-table td.col-no{text-align:center;font-weight:800;color:#6f57cf}
table.rp-table .clamp{
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;
  overflow:hidden;line-height:1.5;overflow-wrap:anywhere;
}
table.rp-table .badge-incomplete{
  display:inline-block;margin-top:6px;
  font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;
  background:#fdeaf1;color:#8f3a5a;border:1px solid #f6d3e2;
}

/* ---------- empty state ---------- */
.rp-empty{
  display:grid;justify-items:center;gap:10px;
  padding:44px 20px 52px;
  text-align:center;
}
.rp-empty svg{width:34px;height:34px;stroke:#b3a8d6;fill:none;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
.rp-empty p{margin:0;font-size:13.5px;font-weight:700;color:#7a7391}

/* ---------- detail modal (light) ---------- */
body.report-page .modal-back{background:rgba(43,39,66,.32)}
body.report-page .modal{
  background:#fff;
  border:1px solid #ece7f7;
  border-radius:18px;
  box-shadow:0 1px 3px rgba(58,49,87,.08), 0 18px 44px rgba(58,49,87,.12);
}
body.report-page .modal h3{font-size:20px;color:#2b2742}
body.report-page .modal .who{color:#6f6790;font-size:13px}
body.report-page .soap{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
body.report-page .soap-card{
  background:#f7f4fd;border:1px solid #eae4f7;border-radius:14px;
  box-shadow:none;padding:16px 18px;
}
body.report-page .soap-card h4{color:#6f57cf;font-size:11px;margin-bottom:8px}
body.report-page .soap-card .body{color:#3a3157;font-size:13px;line-height:1.6}
body.report-page .attach{
  background:#faf8ff;border:1px solid #ece7f7;border-radius:12px;box-shadow:none;
}
body.report-page .attach .file{background:#f1ecfb;border-radius:10px}
body.report-page .btn.ghost{
  color:#5c4bb8;background:#f2eefb;border:1px solid #e2d9f6;box-shadow:none;
}
body.report-page .btn.ghost:hover{background:#eae2fa}

@media (max-width:640px){
  .rp-toolbar{padding:12px 14px}
  .rp-search{width:100%}
  .rp-right{width:100%}
  .rp-export{width:100%;justify-content:center}
  table.rp-table{font-size:12px}
  table.rp-table thead th,table.rp-table tbody td{padding:10px 10px}
}
