.poo-md{max-width:1100px}
.poo-md, .poo-md * , .poo-md *::before, .poo-md *::after{box-sizing:border-box}
.poo-md-top{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.poo-md-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 14px}
.poo-md-tab{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #cfd4dc;border-radius:14px;background:#fff;text-decoration:none;font-weight:800;color:inherit}
.poo-md-tab.is-active{border-color:#111;}
.poo-md-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:22px;padding:0 8px;border-radius:999px;border:1px solid #cfd4dc;background:#f7f8fa;font-size:12px;font-weight:900}

.poo-md-grid{display:grid;grid-template-columns:1fr;gap:14px}
.poo-md-section{border:1px solid #cfd4dc;border-radius:16px;background:#fff;padding:14px}
.poo-md-section__head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-bottom:10px}
.poo-md-section__title{font-weight:900;font-size:16px;display:flex;gap:8px;align-items:center}

.poo-md-avatars{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:10px}
.poo-md-avatar{display:flex;flex-direction:column;gap:6px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:10px;cursor:pointer}
.poo-md-avatar img{width:72px;height:72px;border-radius:14px;object-fit:cover;background:#f3f4f6}
.poo-md-avatar span{font-size:12px;font-weight:800;text-align:center;line-height:1.2;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.poo-md-list{display:flex;flex-direction:column;gap:8px}
.poo-md-row{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #e5e7eb;border-radius:14px;padding:10px;flex-wrap:wrap}
.poo-md-row__main{flex:1;min-width:0;background:transparent;border:0;text-align:left !important;cursor:pointer;display:flex;align-items:center;gap:10px;justify-content:flex-start}
.poo-md-thumb{width:42px;height:42px;border-radius:12px;object-fit:cover;background:#f3f4f6;border:1px solid #e5e7eb;flex:0 0 auto}
.poo-md-row__text{min-width:0}
.poo-md-row__main strong{display:block;font-size:14px;font-weight:900;line-height:1.2}
.poo-md-row__main span{display:block;font-size:12px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.poo-md-row__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

.poo-md-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-width:92px;padding:9px 12px;border-radius:12px;border:1px solid #cfd4dc;background:#fff !important;color:#111 !important;font-weight:900;cursor:pointer;font-size:13px;line-height:1.1}
.poo-md-btn--danger{border-color:#e9a3a3;background:#fff4f4 !important}

/* Sub-tabs (Pending / Approved / Rejected) */
.poo-md-subtabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 10px;align-items:center}
.poo-md-subtab{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #cfd4dc;border-radius:14px;background:#fff;font-weight:900;cursor:pointer}
.poo-md-subtab.is-active{border-color:#111}
.poo-md-subpanel{display:none}
.poo-md-subpanel.is-active{display:block}

/* Strong theme-proofing: some themes restyle <button> and hide labels */
.poo-md .poo-md-tab,
.poo-md .poo-md-subtab,
.poo-md .poo-md-btn{
  color:#111 !important;
  font-size:13px !important;
  line-height:1.15 !important;
  text-indent:0 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  opacity:1 !important;
  background-image:none !important;
  box-shadow:none !important;
}
.poo-md .poo-md-subtab::before,
.poo-md .poo-md-subtab::after,
.poo-md .poo-md-tab::before,
.poo-md .poo-md-tab::after,
.poo-md .poo-md-btn::before,
.poo-md .poo-md-btn::after{content:none !important;display:none !important;}
.poo-md .poo-md-count{color:#111 !important;opacity:1 !important;font-size:12px !important;}

/* Modal */
.poo-md-modal{position:fixed;inset:0;display:none;z-index:99999}
.poo-md-modal.is-open{display:block}
.poo-md-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.poo-md-modal__dialog{position:relative;max-width:980px;margin:6vh auto;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.poo-md-modal__head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #e5e7eb}
.poo-md-modal__title{font-weight:1000;font-size:16px}
.poo-md-modal__close{border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer;padding:6px 10px}
.poo-md-modal__body{padding:14px 16px;max-height:74vh;overflow:auto}

/* Detail */
.poo-md-detail__hero{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.poo-md-detail__img{width:92px;height:92px;border-radius:18px;object-fit:cover;background:#f3f4f6;border:1px solid #e5e7eb}
.poo-md-detail__name{font-weight:1000;font-size:18px}
.poo-md-detail__sub{opacity:.8;font-size:13px}
.poo-md-detail__pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

.poo-md-detail__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.poo-md-card{border:1px solid #e5e7eb;border-radius:16px;padding:12px;background:#fff}
.poo-md-card__title{font-weight:1000;margin-bottom:10px}
.poo-md-kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #e5e7eb}
.poo-md-kv:last-child{border-bottom:0}
.poo-md-kv span{opacity:.7}

.poo-md-form__row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.poo-md-form label{display:block;font-size:12px;font-weight:900}
.poo-md-form input{margin-top:6px}
.poo-md-save-msg{margin-top:10px}

.poo-md-ul{margin:0;padding-left:18px}
.poo-md-ul li{margin:8px 0}

.poo-md-table{margin-top:10px;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden}
.poo-md-table__row{display:grid;grid-template-columns:1.3fr 1.3fr 1fr;gap:10px;padding:8px 10px;border-top:1px solid #e5e7eb;font-size:12px}
.poo-md-table__row:first-child{border-top:0}
.poo-md-table__head{background:#f7f8fa;font-weight:1000}

@media (max-width:900px){
  .poo-md-avatars{grid-template-columns:repeat(4, minmax(0, 1fr));}
  .poo-md-detail__grid{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .poo-md-avatars{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .poo-md-form__row{grid-template-columns:1fr;}
  .poo-md-modal__dialog{margin:4vh 10px;}
  .poo-md-row{flex-direction:column;align-items:stretch}
  .poo-md-row__actions{width:100%;justify-content:flex-start}
  .poo-md-btn{width:100%;min-width:0}
}
