.ytv-portal-login{
  font-family: "DM Sans", sans-serif;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:60vh;
  padding:24px;
}
.ytv-portal-login-card{
  width:100%;
  max-width:420px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.ytv-portal-login-logo{
  display:flex;
  justify-content:center;
  margin:0 0 14px;
}
.ytv-portal-login-logo img{max-width:240px; height:auto;}

.ytv-portal{
  font-family: "DM Sans", sans-serif;
  display:flex;
  min-height:70vh;
  border-radius:14px;
  overflow:hidden;
  background:#f6f7fb;
  border:1px solid rgba(0,0,0,.07);
}

.ytv-sidebar{
  width:280px;
  background:#fff;
  border-right:1px solid rgba(0,0,0,.06);
  padding:18px 16px;
}

.ytv-userbox{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ytv-ava{
  width:56px;
  height:56px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.12);
  background:#f3f4f6;
  flex:0 0 56px;
}
.ytv-ava img{width:100%; height:100%; object-fit:cover; display:block;}
.ytv-userinfo{flex:1; min-width:0;}
.ytv-hello{font-weight:700; line-height:1.2;}
.ytv-ava-form{margin-top:6px;}
.ytv-ava-btn{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  background:#fff;
}
.ytv-ava-btn input{display:none;}
.ytv-logout{
  display:inline-block;
  margin-top:8px;
  color:#d63638;
  font-size:13px;
  text-decoration:none;
}

.ytv-notice{
  padding:10px 12px;
  border-radius:10px;
  margin:0 0 14px;
  border:1px solid rgba(0,0,0,.08);
}
.ytv-notice.is-success{background:#ecfdf3;}
.ytv-notice.is-error{background:#fef2f2;}

.ytv-menu{list-style:none; margin:0; padding:0;}
.ytv-menu-title{
  margin:12px 0 6px;
  font-weight:700;
  color:#222;
  font-size:13px;
  text-transform:none;
}
.ytv-menu-item a{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  color:#333;
  text-decoration:none;
  font-size:14px;
  line-height:1.25;
}
.ytv-menu-item a:hover{background:#eef4ff;}
.ytv-menu-item.is-active a{background:#1e5fff; color:#fff;}

/* Sub menu (mục con) */
.ytv-menu-item.depth-2 a{
  padding-left:30px;
  font-size:13px;
  color:#4b5563;
  background:transparent;
}
.ytv-menu-item.depth-2 a:before{
  content:"";
  width:6px;
  height:6px;
  border-radius:999px;
  background:#cbd5e1;
  display:inline-block;
  margin-right:8px;
  vertical-align:middle;
}
.ytv-menu-item.depth-2.is-active a{
  background:#eef4ff;
  color:#1e5fff;
  font-weight:700;
}
.ytv-menu-item.is-active-parent a{
  background:#1e5fff;
  color:#fff;
}

.ytv-content{
  flex:1;
  background:#fff;
  padding:22px;
  overflow:auto;
}

/* Full width view (no sidebar) */
.ytv-portal--nosidebar{
  display:block;
  background:transparent;
  border:none;
  border-radius:0;
  overflow:visible;
  min-height:auto;
}
.ytv-portal--nosidebar .ytv-content{
  max-width:1100px;
  margin:0 auto;
  border:1px solid rgba(0,0,0,.07);
  border-radius:14px;
}

/* Report chooser */
.ytvql-report-chooser{
  max-width:820px;
  margin:0 auto;
  padding:4px 0;
}
.ytvql-report-chooser__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.ytvql-report-chooser__card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:88px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  font-weight:700;
  font-size:20px;
  text-decoration:none;
  color:#111;
}
.ytvql-report-chooser__card:hover{
  border-color:#ff7a1a;
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
}

@media (max-width: 640px){
  .ytvql-report-chooser__grid{ grid-template-columns:1fr; }
}

/* Typography + rhythm (front-end) */
.ytv-portal h1,
.ytv-portal h2,
.ytv-portal h3,
.ytv-portal p,
.ytv-portal label,
.ytv-portal input,
.ytv-portal select,
.ytv-portal textarea,
.ytv-portal button{
  font-family: "DM Sans", sans-serif;

}
.ytv-portal h1{letter-spacing:-0.01em;}

/* Cards look nicer on front-end */
.ytv-portal .ytvql-card{
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}

/* Form grid spacing + responsive */
.ytv-portal .ytvql-form .ytvql-grid{
  gap:14px;
  margin-bottom:14px;
}
.ytv-portal .ytvql-field label{
  font-size:13px;
  color:#374151;
  margin-bottom:6px;
}
.ytv-portal .ytvql-field input[type="text"],
.ytv-portal .ytvql-field input[type="number"],
.ytv-portal .ytvql-field input[type="date"],
.ytv-portal .ytvql-field select,
.ytv-portal .ytvql-field textarea{
  padding:10px 12px;
  border-radius:12px;
}

/* Bảng ở cột phải: bo góc + scroll ngang mượt trên mobile */
.ytv-portal .ytvql-tablewrap{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
}
.ytv-portal .ytvql-table{
  min-width: 1100px;
}

@media (max-width: 1100px){
  /* Giảm số cột trên tablet */
  .ytv-portal .ytvql-field{ grid-column: span 6; }
}
@media (max-width: 782px){
  /* 1 cột trên mobile */
  .ytv-portal .ytvql-field{ grid-column: 1 / -1; }
  .ytv-portal .ytvql-actions{ flex-wrap:wrap; }
  .ytv-portal .ytvql-filters__row select,
  .ytv-portal .ytvql-filters__row input[type="text"],
  .ytv-portal .ytvql-filters__row input[type="date"]{
    min-width: 0;
    width: 100%;
  }
}

/* Make plugin tables/forms look decent on front-end */
.ytv-portal .wrap{padding:0; margin:0;}
.ytv-portal h1{font-size:26px; margin:0 0 16px;}
.ytv-portal h2{font-size:20px; margin:16px 0 12px;    font-weight: bold;}

/* Tabs (nav-tab) - vì front-end không có style wp-admin */
.ytv-portal .nav-tab-wrapper{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
  padding:0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.ytv-portal .nav-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  background:#f3f4f6;
  border:1px solid rgba(0,0,0,.12);
  border-bottom:none;
  border-radius:12px 12px 0 0;
  color:#111;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  line-height:1;
  letter-spacing: 0;
}
.ytv-portal .nav-tab:hover{background:#fff;}
.ytv-portal .nav-tab-active{
  background:#fff;
  color:#ff781e;
  position:relative;
}
.ytv-portal .nav-tab-active:after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:-2px;
  height:3px;
  background:#ff781e;
  border-radius:999px;
}

/* Sub title under H1 */
.ytv-portal .ytvql-subtitle{
  margin:-10px 0 14px;
  font-size:13px;
  color:#6b7280;
}
.ytv-portal table{border-collapse:collapse; width:100%;}
.ytv-portal table.widefat,
.ytv-portal table.wp-list-table{
  border:1px solid rgba(0,0,0,.08);
}
.ytv-portal table.widefat th,
.ytv-portal table.widefat td,
.ytv-portal table.wp-list-table th,
.ytv-portal table.wp-list-table td{
  padding:10px;
  border-bottom:1px solid rgba(0,0,0,.06);
  vertical-align:top;
}
.ytv-portal input[type="text"],
.ytv-portal input[type="number"],
.ytv-portal input[type="date"],
.ytv-portal select,
.ytv-portal textarea{
  max-width:100%;
  width:100%;
  padding:8px 10px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  background:#fff;
}
.ytv-portal .button,
.ytv-portal button,
.ytv-portal input[type="submit"]{
  border-radius:10px;
      padding: 15px 40px;
}

@media (max-width: 820px){
  .ytv-portal{flex-direction:column;}
  .ytv-sidebar{width:100%;}
  .ytv-content{padding:16px;}

  /* grids collapse nicely on mobile */
  .ytv-portal .ytvql-form .ytvql-grid{ gap:12px; }
}

@media (max-width: 560px){
  .ytv-portal .ytvql-field{ grid-column: 1 / -1; }
}

/* ===== Báo cáo cá nhân ===== */
.ytvql-report-type{
  display:flex;
  gap:10px;
  margin:10px 0 14px;
}
.ytvql-report-type__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  text-decoration:none;
  font-weight:600;
}
.ytvql-report-type__btn.is-active{
  background:#1f7a3a;
  border-color:#1f7a3a;
  color:#fff;
}
.ytvql-report-section{
  margin-top:14px;
}
.ytvql-report-table textarea{
  min-height:54px;
}
.ytvql-report-sales-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
  margin-top:10px;
}
.ytvql-report-sales-grid label{
  display:block;
  font-weight:600;
}
.ytvql-report-sales-grid input{
  margin-top:6px;
}

@media (max-width: 980px){
  .ytvql-report-sales-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ===== Staff portal home (blue banner + tiles) ===== */
.ytv-staff-wrap{ padding:18px; }
.ytv-staff-hero{
  background: linear-gradient(90deg, #0B4DBF 0%, #0A3EA0 100%);
  border-radius:16px;
  padding:18px 18px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.ytv-staff-hero__left{ display:flex; align-items:center; gap:14px; min-width:240px; }
.ytv-staff-ava{ width:64px; height:64px; border-radius:50%; overflow:hidden; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.ytv-staff-ava img{ width:100%; height:100%; object-fit:cover; }
.ytv-staff-name{ font-weight:800; font-size:22px; line-height:1.1; }
.ytv-staff-email{ opacity:.95; font-size:14px; margin-top:2px; }
.ytv-staff-lang{ opacity:.85; font-size:13px; margin-top:6px; }
.ytv-staff-hero__right{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.ytv-btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; padding:10px 14px; font-weight:700;
  text-decoration:none; border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12); color:#fff;
  transition:transform .15s ease, background .15s ease;
}
.ytv-btn:hover{ transform:translateY(-1px); background:rgba(255,255,255,.18); }
.ytv-btn--primary{
  background:#ff4d5a; border-color:#ff4d5a; color:#fff;
}
.ytv-btn--primary:hover{ background:#ff3344; }

.ytv-staff-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}
.ytv-staff-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  text-decoration:none;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  transition:transform .15s ease;
}
.ytv-staff-card:hover{ transform:translateY(-2px); }
.ytv-staff-card__badge{
  width:38px; height:38px; border-radius:12px;
  background:#eef3ff;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:#2a4dbf;
  flex:0 0 auto;
}
.ytv-staff-card__title{ font-weight:900; color:#111; font-size:18px; }
.ytv-staff-card__desc{ color:rgba(0,0,0,.55); font-size:13px; margin-top:4px; }

.ytv-account{
  margin-top:26px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:16px;
}
.ytv-account h3{ margin:0 0 14px; font-size:28px; letter-spacing:-.02em; }
.ytv-account__avatar{
  display:flex; align-items:center; gap:14px;
  padding:10px; border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:#fafbff;
}
.ytv-account__ava{ width:64px; height:64px; border-radius:10px; overflow:hidden; background:#eee; flex:0 0 auto; }
.ytv-account__ava img{ width:100%; height:100%; object-fit:cover; }
.ytv-account__ava-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ytv-account__ava-actions input[type="file"]{ max-width:260px; }
.ytv-account__fields{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.ytv-field label{ display:block; font-weight:800; margin-bottom:6px; }
.ytv-field input{
  width:100%; padding:12px 12px; border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
}
.ytv-muted-note{ margin-top:10px; color:rgba(0,0,0,.55); font-size:13px; }

@media (max-width: 960px){
  .ytv-staff-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ytv-account__fields{ grid-template-columns: 1fr; }
  .ytv-staff-hero{ flex-direction:column; align-items:flex-start; }
  .ytv-staff-hero__right{ justify-content:flex-start; }
}
