/* ===== TÀI KHOẢN v121: Trang quản lí tin đăng route riêng ===== */
/* SP: trang /quan-li-tin-dang dùng file riêng, sau này phát triển thêm ẩn/sửa/xóa/đẩy tin tại đây */
.routePage[data-route-page="accountMyPosts"]{
  padding-top:0;
  background:#fff; /* SP có thể sửa màu nền ngoài trang quản lí tin đăng tại đây */
}

body.is-account-my-posts-route .appHeader,
body.is-account-my-posts-route .bottomNav{
  display:none;
}

body.is-account-my-posts-route,
body.is-account-my-posts-route .pageShell{
  padding-top:0;
  padding-bottom:0;
  background:#fff; /* SP: đồng bộ nền để dưới trang không bị cắt màu */
}

.myPostsPage{
  min-height:100dvh;
  padding:calc(6px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom)); /* SP có thể sửa lề trang quản lí tin đăng tại đây */
  background:#fff;
  color:#000;
}

.myPostsHead{
  height:44px; /* SP có thể sửa chiều cao đầu trang quản lí tin đăng tại đây */
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  padding:0 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.myPostsHead h1{
  margin:0;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:20px; /* SP có thể sửa cỡ chữ tiêu đề Quản lí tin đăng tại đây */
  line-height:1.05;
  transform:translateY(-1px); /* SP có thể chỉnh nâng/hạ tiêu đề tại đây */
  font-weight:588;
  color:#000;
}

.myPostsClose{
  width:44px; /* SP có thể sửa kích thước nút X quản lí tin đăng tại đây */
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#444;
  font-size:34px; /* SP có thể sửa cỡ dấu X quản lí tin đăng tại đây */
  line-height:1;
  font-weight:600;
  cursor:pointer;
  touch-action:manipulation;
  transform:translateY(-1px); /* SP có thể chỉnh nâng/hạ nút X tại đây */
}

.myPostsCount{
  margin:0 16px 20px;
  font-size:20px; /* SP có thể sửa cỡ chữ dòng Có X tin đăng tại đây */
  line-height:1.2;
  font-weight:588;
  color:#000;
}

.myPostsList{
  display:flex;
  flex-direction:column;
  gap:16px; /* SP có thể sửa khoảng cách giữa các tin tại đây */
}

.myPostsCard{
  box-sizing:border-box;
  width:100%;
  padding:16px; /* SP có thể sửa padding card quản lí tin đăng tại đây */
  border:1px solid rgba(0,0,0,.10);
  border-radius:22px; /* SP có thể sửa bo góc card quản lí tin đăng tại đây */
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.035);
}

.myPostsCard__top{
  display:grid;
  grid-template-columns:86px minmax(0,1fr); /* SP có thể sửa chiều rộng ảnh card quản lí tin đăng tại đây */
  gap:16px;
  align-items:start;
}

.myPostsCard__thumb{
  width:86px; /* SP có thể sửa kích thước ảnh card quản lí tin đăng tại đây */
  height:86px;
  display:block;
  object-fit:cover;
  border-radius:8px;
  background:#eee;
}

.myPostsCard__info{
  min-width:0;
}

.myPostsCard__title{
  margin:2px 0 18px;
  color:#000;
  font-size:18px; /* SP có thể sửa cỡ chữ tiêu đề tin trong quản lí tin đăng tại đây */
  line-height:1.22;
  font-weight:500;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.myPostsCard__price{
  margin:0 0 18px;
  color:#ff2f86;
  font-size:18px; /* SP có thể sửa cỡ chữ giá trong quản lí tin đăng tại đây */
  line-height:1.18;
  font-weight:588;
}

.myPostsCard__date{
  color:#000;
  font-size:14px; /* SP có thể sửa cỡ chữ ngày đăng trong quản lí tin đăng tại đây */
  line-height:1.25;
  font-weight:450;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.myPostsCard__actions{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.myPostsCard__status{
  color:#000;
  font-size:17px; /* SP có thể sửa cỡ chữ trạng thái đang đăng tại đây */
  line-height:1.2;
  font-weight:588;
  white-space:nowrap;
}

.myPostsCard__buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px; /* SP có thể sửa khoảng cách nút Ẩn tin/Sửa/Xóa tại đây */
}

.myPostsCard__btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:transparent;
  color:#000;
  padding:0;
  font-size:17px; /* SP có thể sửa cỡ chữ nút quản lí tin đăng tại đây */
  line-height:1.2;
  font-weight:588;
  cursor:pointer;
  touch-action:manipulation;
}

.myPostsCard__btn--danger{
  color:#ff4d63;
}

.myPostsLoading,
.myPostsEmpty{
  padding:22px 0;
  color:rgba(0,0,0,.62);
  font-size:16px;
  line-height:1.4;
  font-weight:400;
}

.myPostsLoginBtn{
  width:100%;
  min-height:54px;
  margin-top:10px;
  border:1px solid #ff2f86;
  border-radius:18px;
  background:#ff2f86;
  color:#fff;
  font-size:18px;
  font-weight:588;
  cursor:pointer;
  touch-action:manipulation;
}


.myPostsCard__code{
  margin-top:4px;
  font-size:13px; /* SP có thể sửa cỡ chữ mã tin trong quản lí tin đăng tại đây */
  line-height:1.3;
  font-weight:400;
  color:rgba(0,0,0,.52);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
