/* Thuc don mam non: nam hoc -> 35 tuan */
.tm { --tm-ink:#37474f; color:var(--tm-ink); }
.tm button, .tm select { font:inherit; cursor:pointer; }

.tm-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between;
  background:linear-gradient(135deg,#fff6d6,#ffe4ef 55%,#e0f4ff); border-radius:18px; padding:8px 10px; }
.tm-year { border:2px solid #fff; background:#fff; border-radius:999px; padding:5px 10px; font-weight:700; color:#ad1457; }
.tm-nav { display:flex; align-items:center; gap:8px; }
.tm-arrow { width:32px; height:32px; border-radius:50%; border:0; background:#fff; color:#00897b; font-size:18px; font-weight:800; box-shadow:0 2px 6px rgba(0,0,0,.12); }
.tm-arrow:disabled { opacity:.35; cursor:default; }
.tm-title { text-align:center; min-width:150px; line-height:1.25; }
.tm-title b { display:block; font-size:16px; color:#00695c; }
.tm-title small { font-size:12px; }
.tm-all { border:0; border-radius:999px; padding:6px 12px; background:#00897b; color:#fff; font-weight:700; font-size:12.5px; }

.tm-weeks { display:grid; grid-template-columns:repeat(auto-fill,minmax(40px,1fr)); gap:6px; padding:10px 2px 2px; }
.tm-weeks[hidden], .tm-tools[hidden] { display:none; }
.tm-week { position:relative; height:36px; border-radius:12px; border:2px solid transparent; background:#f1f5f9; font-weight:800; color:#78909c; }
.tm-week.has { background:var(--c); color:#37474f; }
.tm-week.now { border-color:#ff7043; }
.tm-week.now::after { content:"⭐"; position:absolute; top:-8px; right:-5px; font-size:11px; }
.tm-week.on { background:#00897b; color:#fff; }

.tm-days { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; margin:10px 0; }
.tm-day { border:0; border-bottom:4px solid rgba(0,0,0,.08); border-radius:14px; padding:6px 2px; background:var(--c); line-height:1.2; min-width:0; }
.tm-day b { display:block; font-size:13px; }
.tm-day small { font-size:11px; opacity:.75; }
.tm-day.on { background:#00897b; color:#fff; transform:translateY(-2px); box-shadow:0 4px 10px rgba(0,137,123,.35); }

.tm-meals { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.tm-meal { border-radius:18px; padding:10px 12px; background:var(--c); }
.tm-meal h5 { margin:0 0 6px; font-size:13px; display:flex; gap:8px; align-items:center; }
.tm-meal h5 i { font-style:normal; font-size:24px; }
.tm-meal h5 small { display:block; font-weight:400; font-size:11px; opacity:.7; }
.tm-dish { background:rgba(255,255,255,.75); border-radius:10px; padding:5px 8px; margin-top:5px; font-size:12.5px; line-height:1.35; }
.tm-dish span { display:block; font-size:10.5px; font-weight:700; opacity:.6; text-transform:uppercase; }

.tm-empty { text-align:center; border:2px dashed #b2dfdb; border-radius:18px; padding:18px; background:#f4fffd; font-weight:600; color:#00796b; }
.tm-empty i { display:block; font-style:normal; font-size:30px; }

.tm-foot { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:10px; }
.tm-chip { border-radius:999px; background:#f1f8e9; border:1px solid #dcedc8; padding:3px 10px; font-size:12px; }
.tm-small { border:1px solid #cfd8dc; background:#fff; border-radius:999px; padding:4px 11px; font-size:12px; font-weight:600; color:var(--tm-ink); }
.tm-push { margin-left:auto; display:flex; gap:6px; }
.tm-tools { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; padding:8px; border-radius:14px; background:#fffde7; border:1px dashed #ffd54f; }

@media (max-width:700px) {
  .tm-meals { grid-template-columns:1fr; }
  .tm-bar { justify-content:center; }
  .tm-day b { font-size:11.5px; }
}

.tm-tabs { display:flex; gap:6px; margin-top:8px; overflow-x:auto; }
.tm-tabs button { flex:1; white-space:nowrap; border:0; border-radius:999px; padding:6px 10px; font-size:12.5px; font-weight:700; background:#eef7f6; color:#00695c; }
.tm-tabs button.on { background:#ff7043; color:#fff; }
.tm-scroll { overflow-x:auto; border-radius:14px; border:1px solid #e0f2f1; }
.tm-table { width:100%; border-collapse:collapse; font-size:12.5px; background:#fff; }
.tm-table th, .tm-table td { border:1px solid #e0f2f1; padding:6px 8px; vertical-align:top; text-align:left; }
.tm-table thead th { background:#e0f2f1; text-align:center; }
.tm-upload { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:8px 0; padding:8px; border-radius:14px; background:#fffde7; border:1px dashed #ffd54f; }
.tm-upload[hidden] { display:none; }
.tm-upload a { text-decoration:none; }
.tm-upload small { flex-basis:100%; color:#6d5f00; }
.tm-upload .tm-primary { background:#00796b; border-color:#00796b; color:#fff; }
@media print { .tm-upload { display:none; } }
.tm-dish.can-photo { cursor:pointer; }
.tm-has-photo { cursor:pointer; }
span.tm-has-photo::after, .tm-dish.tm-has-photo > span::after { content:" 📷"; }
.tm-preview { position:fixed; z-index:99999; margin:0; width:300px; padding:6px; border-radius:14px; background:#fff; box-shadow:0 8px 28px rgba(0,0,0,.35); pointer-events:none; }
.tm-preview img { display:block; width:100%; height:210px; object-fit:cover; border-radius:10px; }
.tm-preview figcaption { text-align:center; font-weight:700; font-size:13px; padding-top:5px; color:#00695c; }
.tm-dish-tools { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
@media print { .tm-dish-tools, .tm-preview { display:none; } .tm-has-photo::after, .tm-has-photo > span::after { content:none !important; } }
.tm-pdf { margin-bottom:10px; }
.tm-pdf-bar { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:6px; }
.tm-pdf-bar b { margin-right:auto; font-size:13px; overflow-wrap:anywhere; }
.tm-pdf-bar a { text-decoration:none; }
.tm-pdf iframe { width:100%; height:70vh; border:1px solid #e0f2f1; border-radius:14px; }
/* dien thoai khong hien duoc PDF trong khung: dung nut Mo xem */
@media (max-width:700px) { .tm-pdf iframe { display:none; } }
.tm-photos { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.tm-photos figure { position:relative; margin:0; background:#fff6e5; border-radius:16px; padding:6px; }
.tm-photos img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; cursor:zoom-in; display:block; }
.tm-photos figcaption { text-align:center; font-size:12px; font-weight:600; padding-top:4px; }
.tm-photos figure button { position:absolute; top:10px; right:10px; width:26px; height:26px; border-radius:50%; border:0; background:#d32f2f; color:#fff; font-weight:800; }
.tm-zoom { position:fixed; inset:0; z-index:100001; background:rgba(0,0,0,.85); display:flex; align-items:center; justify-content:center; padding:20px; cursor:zoom-out; }
.tm-zoom img { max-width:100%; max-height:100%; border-radius:12px; }
.tm-row { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:6px; }
@media (max-width:700px) { .tm-row { grid-template-columns:1fr 1fr; } }

/* Dien thoai: 4 the chia 2 x 2 de khong the nao nam ngoai man hinh */
@media (max-width:700px) {
  .tm-tabs { display:grid; grid-template-columns:1fr 1fr; overflow:visible; }
  .tm-tabs button { white-space:normal; padding:8px 6px; }
}

/* Bang don vi cung cap thuc pham (js/suppliers.js) */
.sup-table { min-width:760px; }
.sup-title { margin:14px 0 6px; font-size:14px; text-transform:uppercase; }
.sup-note { margin:0 0 6px; font-size:13px; }
.sup-add { margin-top:8px; }
.sup-table td { overflow-wrap:anywhere; }
.sup-table td.sup-col-phone { white-space:nowrap; }
.sup-table .sup-actions { white-space:nowrap; }

/* Trang rieng: Cong khai don vi cung cap thuc pham */
body.page-open .feature-hero-section, body.page-open .main-content-col { display:none !important; }
.sup-page[hidden] { display:none; }
.sup-page { min-width:0; padding:16px 14px 20px; background:#fff; border-radius:10px; min-height:70vh; }
.sup-crumb { font-size:13px; margin-bottom:8px; }
.sup-heading { margin:0 0 12px; font-size:20px; text-transform:uppercase; color:#0d47a1; }
.sup-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.tm-info { margin:0 0 8px; font-size:13px; }

/* Trang rieng: Cong khai nguyen lieu hang ngay (js/ingredients.js) */
.ing-date { display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:14px; }
.ing-date input { width:auto; }
.ing-days { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 12px; font-size:13px; }
.ing-table { min-width:640px; }
.ing-table td.num { text-align:right; white-space:nowrap; }
.ing-table tr.ing-total td { font-weight:700; background:#f1f8f7; }
.ing-sign { text-align:right; margin-top:14px; font-weight:700; }
.page-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; border-bottom:2px solid #0d47a1; padding-bottom:8px; }
.page-tabs a { padding:7px 14px; border-radius:999px; border:1px solid #cbd5e1; font-weight:700; font-size:13px; text-decoration:none; color:#0d47a1; }
.page-tabs a.on { background:#0d47a1; border-color:#0d47a1; color:#fff; }
.sup-page .activity-cards-grid { margin:12px 0; }
@media print {
  body.page-open > :not(main), body.page-open main > :not(.portal-body-layout), body.page-open .portal-body-layout > :not(.sup-page),
  body.page-open .sup-toolbar, body.page-open .sup-crumb, body.page-open .ing-days,
  body.page-open .page-tabs, body.page-open .sup-actions, body.page-open .sup-add { display:none !important; }
  body.page-open .sup-table, body.page-open .ing-table { min-width:0; font-size:11px; }
  body.page-open .portal-body-layout { display:block; }
}

/* Thuc don trong tuan: moi ngay mot cot, mon nam ngay duoi ngay */
.tm-cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(128px,1fr)); gap:8px; margin-top:10px; align-items:stretch; }
.tm-col { display:flex; flex-direction:column; border-radius:16px; padding:6px; background:var(--c); min-width:0; border:2px solid transparent; }
.tm-col.today { border-color:#00897b; box-shadow:0 4px 10px rgba(0,137,123,.25); }
.tm-col h5 { margin:0 0 2px; text-align:center; font-size:13.5px; }
.tm-col h5 small { display:block; font-weight:600; font-size:11px; opacity:.75; }
.tm-col .tm-dish { overflow-wrap:anywhere; }
.tm-none { text-align:center; font-size:12px; opacity:.6; margin:10px 0; }
.tm-note { font-size:12px; margin:6px 2px 0; }
.tm-chips { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.tm-col .tm-edit { margin-top:auto; align-self:center; }
.tm-col > :has(+ .tm-edit) { margin-bottom:8px; }
.tm-dish-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto; gap:6px; margin-bottom:6px; align-items:center; }
.tm-meal-edit { border:1px solid #cfd8dc; border-radius:12px; padding:8px 10px; margin:0 0 8px; }
.tm-meal-pick { display:flex; gap:8px; align-items:center; font-weight:800; cursor:pointer; margin:0; }
.tm-meal-edit [data-body] { margin-top:8px; }
.tm-meal-head { font-weight:800; font-size:12px; margin-top:8px; padding-bottom:2px; border-bottom:2px solid rgba(0,0,0,.12); }
.tm-campus-head { font-size:11px; font-weight:800; text-transform:uppercase; color:#0d47a1; margin-top:6px; }
.tm-group + .tm-group { margin-top:10px; padding-top:6px; border-top:1px dashed #cfd8dc; }
.tm-split-toggle { margin-bottom:8px; border-color:#0d47a1; color:#0d47a1; }
.tm-split-note { margin:2px 0 0; text-align:center; font-size:11px; font-weight:700; color:#0d47a1; }
@media (max-width:700px) { .tm-cols { grid-template-columns:1fr; } .tm-dish-row { grid-template-columns:1fr; border-bottom:1px dashed #cfd8dc; padding-bottom:6px; } }
@media print { .tm-col .tm-edit { display:none; } }

/* Hinh truong (js/banner.js): cao vua bang banner, nam giua ten truong va cac nut, mep mo dan */
.site-header { position:relative; }
.school-photo { position:relative; flex:1 1 0; min-width:0; align-self:stretch; margin:-26px 0 -26px 12px; z-index:0; clip-path:inset(0 -100vw); }
.school-photo[hidden] { display:none; }
.site-header .header-branding, .site-header .header-action-box { position:relative; z-index:1; }
.school-photo img { position:absolute; transform:translateX(-50%); width:auto; max-width:none; pointer-events:none;
  -webkit-mask-image:linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image:linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.school-photo-tools { position:absolute; right:12px; bottom:6px; z-index:3; display:flex; gap:6px; white-space:nowrap; }
.school-photo-tools .tm-small { cursor:pointer; margin:0; color:#37474f; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.school-photo-panel { position:absolute; bottom:calc(100% + 6px); right:0; width:300px; display:flex; flex-wrap:wrap; gap:4px; justify-content:center;
  padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 4px 16px rgba(0,0,0,.3); white-space:normal; }
.school-photo-panel label { display:grid; grid-template-columns:86px 1fr; gap:6px; align-items:center; width:100%; margin:0; font-size:12px; font-weight:700; color:#37474f; }
.school-photo-panel input { width:100%; }
@media (max-width:992px) {
  .school-photo { flex:none; width:100%; height:170px; margin:8px 0; }
  .school-photo-tools { position:relative; left:auto; bottom:auto; transform:none; justify-content:center; flex-wrap:wrap; padding:0 8px 8px; }
  .school-photo-panel { position:static; transform:none; width:100%; max-width:320px; }
}
@media print { .school-photo, .school-photo-tools { display:none; } }

/* Banner: bo so tu van, nut tuyen sinh, o tim kiem; can lai va them hinh dong (js/header-deco.js) */
.site-header .header-action-box { display:none !important; }
.site-header .header-banner-inner { min-height:200px; padding:26px 0; justify-content:flex-start; }
.header-branding .school-logo-wrap { animation:hd-bob 4s ease-in-out infinite; }
.header-deco { position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.header-deco > * { position:absolute; }
.hd-sun { width:78px; right:24px; top:14px; }
.hd-rays { transform-origin:40px 40px; animation:hd-spin 24s linear infinite; }
.hd-cloud { opacity:.28; left:-140px; animation:hd-drift linear infinite; }
.hd-cloud1 { width:120px; top:12px; animation-duration:55s; animation-delay:-12s; }
.hd-cloud2 { width:80px; top:120px; animation-duration:70s; animation-delay:-45s; }
.hd-cloud3 { width:100px; top:58px; animation-duration:62s; animation-delay:-30s; }
.hd-bird { left:-70px; animation:hd-fly linear infinite; }
.hd-bird1 { width:46px; top:22px; animation-duration:18s; animation-delay:-5s; }
.hd-bird2 { width:34px; top:52px; animation-duration:22s; animation-delay:-13s; }
.hd-bird3 { width:28px; top:140px; animation-duration:26s; animation-delay:-20s; }
.hd-wing { transform-origin:30px 26px; animation:hd-flap .45s ease-in-out infinite alternate; }
.hd-note { color:#ffeb3b; font-size:24px; font-weight:800; opacity:0; animation:hd-note 6s ease-in infinite; }
.hd-note1 { left:56%; bottom:20px; }
.hd-note2 { left:64%; bottom:10px; animation-delay:2s; }
.hd-note3 { left:73%; bottom:26px; animation-delay:4s; }
.hd-balloon { width:30px; bottom:-70px; animation:hd-rise 16s linear infinite; }
.hd-balloon1 { right:130px; }
.hd-balloon2 { right:70px; width:24px; animation-duration:21s; animation-delay:-9s; }
@keyframes hd-bob { 50% { transform:translateY(-6px) rotate(-3deg); } }
@keyframes hd-spin { to { transform:rotate(360deg); } }
@keyframes hd-drift { to { left:100%; } }
@keyframes hd-fly { 0% { left:-70px; transform:translateY(0); } 25% { transform:translateY(-12px); } 50% { transform:translateY(8px); } 75% { transform:translateY(-8px); } 100% { left:100%; transform:translateY(0); } }
@keyframes hd-flap { to { transform:scaleY(-.45); } }
@keyframes hd-note { 0% { transform:translateY(0) rotate(-10deg); opacity:0; } 20% { opacity:.9; } 100% { transform:translate(26px,-120px) rotate(18deg); opacity:0; } }
@keyframes hd-rise { to { transform:translateY(-330px) translateX(18px); } }
@media (max-width:992px) {
  .site-header .header-banner-inner { min-height:0; padding:18px 0; justify-content:center; }
  .hd-sun { width:52px; right:8px; top:8px; }
  .hd-note { display:none; }
}
/* May tat hieu ung: bo cac chuyen dong nhanh, chi giu chim, may, mat troi troi cham */
@media (prefers-reduced-motion:reduce) {
  .hd-wing, .header-branding .school-logo-wrap { animation:none !important; }
  .hd-note, .hd-balloon { display:none; }
  .hd-bird1 { animation-duration:36s; } .hd-bird2 { animation-duration:44s; } .hd-bird3 { animation-duration:52s; }
}
@media print { .header-deco { display:none; } }

/* Khung trinh chieu duoi menu: cao theo ti le (ngang), anh tu gian day khung */
.activity-single-frame-wrapper { height:auto; aspect-ratio:12 / 5; }
.activity-single-slide img { width:100%; height:100%; object-fit:cover; object-position:center; }
.slide-warn { grid-column:1 / -1; margin:2px 0 0; font-size:12px; font-weight:700; color:#b45309; }
@media (max-width:700px) { .activity-single-frame-wrapper { aspect-ratio:16 / 9; } }

/* Cot menu ben phai: chuyen muc tin va truy cap nhanh (js/news-menu.js) */
.portal-body-layout.has-news-side { grid-template-columns:250px minmax(0,1fr) 210px; gap:16px; }
.news-side { display:flex; flex-direction:column; gap:14px; min-width:0; }
.news-side-box { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 10px rgba(0,40,90,.1); }
.news-side-box > h4 { margin:0; padding:10px 12px; font-size:13px; font-weight:800; text-transform:uppercase; color:#fff; background:linear-gradient(135deg,#0d47a1,#1976d2); border-bottom:3px solid #ff9800; }
.news-side #news-tab-nav-header { flex-direction:column; flex-wrap:nowrap; gap:4px; margin:0; padding:8px; border:0; }
.news-side #news-tab-nav-header .btn-tab { width:100%; text-align:left; border-radius:6px; padding:9px 10px; font-size:12px; line-height:1.35; }
.news-side .quick-shortcuts-section { margin:0; padding:8px; }
.news-side .shortcuts-grid { display:flex; flex-direction:column; gap:6px; margin:0; }
.news-side .shortcut-card { padding:8px 10px; gap:8px; border-radius:8px; align-items:center; min-height:0; text-decoration:none; }
.news-side .shortcut-icon { width:32px; height:32px; min-width:32px; font-size:15px; }
.news-side .shortcut-content h4 { margin:0; font-size:12.5px; line-height:1.3; }
.news-side .shortcut-content p { display:none; }
/* May tinh bang / dien thoai: menu nam tren cung, cac nut xep ngang */
@media (max-width:992px) {
  .portal-body-layout.has-news-side { grid-template-columns:minmax(0,1fr); }
  .portal-body-layout > aside.news-side { order:-1; }
  .news-side #news-tab-nav-header { flex-direction:row; flex-wrap:wrap; }
  .news-side #news-tab-nav-header .btn-tab { width:auto; }
  .news-side .shortcuts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media print { .news-side { display:none; } }

/* Cot trai va cot phai chay theo khi cuon trang; cot dai hon man hinh thi cuon rieng ben trong */
@media screen and (min-width:993px) {
  .portal-body-layout > aside.sidebar-left-col, .portal-body-layout > aside.news-side {
    position:sticky; top:calc(var(--nav-h, 60px) + 8px); align-self:start;
    max-height:calc(100vh - var(--nav-h, 60px) - 16px); overflow-y:auto; scrollbar-width:thin; overscroll-behavior:contain; }
  .portal-body-layout > aside > * { flex-shrink:0; }
}
/* Cot giua hep hon khi co hai cot ben: bang nhieu cot thu gon cho vua */
@media screen and (min-width:993px) {
  .sup-page .sup-table { min-width:0; font-size:11px; }
  .sup-page .sup-table th, .sup-page .sup-table td { padding:5px 4px; }
  .sup-page .sup-table td.sup-col-phone { white-space:normal; }
  .sup-page .sup-table .sup-actions .tm-small { display:block; width:100%; margin-bottom:3px; padding:3px 4px; white-space:nowrap; }
}

/* Cay bua - mon: khung mau theo bua, thao tac bang bieu tuong */
.tm-ico { border:1px solid transparent; background:rgba(255,255,255,.85); border-radius:7px; min-width:24px; height:24px; padding:0 3px; font-size:12px; line-height:1; }
.tm-ico:hover:not(:disabled) { border-color:#00897b; }
.tm-picks { display:flex; justify-content:center; gap:6px; margin:6px 0 2px; }
.tm-picks .tm-ico { width:32px; height:32px; border-radius:50%; font-size:16px; border:2px solid #fff; box-shadow:0 2px 5px rgba(0,0,0,.2); }
.tm-picks [data-color="sang"] { background:#ffca28; }
.tm-picks [data-color="trua"] { background:#f06292; }
.tm-picks [data-color="xe"] { background:#66bb6a; }
.tm-picks .tm-ico:disabled { opacity:.35; box-shadow:none; cursor:default; }
.tm-box { margin-top:8px; border:2px solid; border-radius:12px; overflow:hidden; background:rgba(255,255,255,.88); }
.tm-box-head { display:flex; align-items:center; justify-content:space-between; gap:4px; padding:3px 6px; font-size:12px; font-weight:800; }
.tm-box-sang { border-color:#ffb300; } .tm-box-sang > .tm-box-head { background:#ffe082; }
.tm-box-trua { border-color:#ec407a; } .tm-box-trua > .tm-box-head { background:#f8bbd0; }
.tm-box-xe { border-color:#43a047; } .tm-box-xe > .tm-box-head { background:#c8e6c9; }
.tm-tree { list-style:none; margin:0; padding:2px 4px 4px 4px; }
.tm-leaf { position:relative; padding:3px 0 0 14px; }
.tm-leaf::before { content:""; position:absolute; left:3px; top:0; height:15px; width:8px; border-left:2px solid #b0bec5; border-bottom:2px solid #b0bec5; border-bottom-left-radius:5px; }
.tm-leaf:not(:last-child)::after { content:""; position:absolute; left:3px; top:13px; bottom:0; border-left:2px solid #b0bec5; }
.tm-tree .tm-dish { margin:0; padding:2px 0; background:none; font-size:12.5px; overflow-wrap:anywhere; }
.tm-tree .tm-dish .tm-name { display:inline; font-size:12.5px; font-weight:400; opacity:1; text-transform:none; }
.tm-tree .tm-dish.tm-has-photo > .tm-name::after { content:" 📷"; }
.tm-tools-row { display:flex !important; flex-wrap:wrap; gap:2px; opacity:1 !important; margin-top:2px; }
.tm-folders > .tm-leaf > .tm-tree { padding-right:0; }
.tm-input { display:flex; flex-wrap:wrap; gap:3px; }
.tm-input input { flex:1 1 100%; min-width:0; border:1px solid #00897b; border-radius:7px; padding:3px 6px; font:inherit; font-size:12.5px; }
.tm-day-tools { display:flex; justify-content:center; gap:8px; margin-top:auto; padding-top:8px; }
.tm-day-tools .tm-ico { width:34px; height:30px; font-size:16px; border-color:#cfd8dc; }
@media print { .tm-ico, .tm-picks, .tm-day-tools { display:none !important; } }
/* Du ca tuan tren mot hang trong cot giua */
@media (min-width:701px) { .tm-cols { grid-template-columns:repeat(auto-fit,minmax(104px,1fr)); gap:6px; } .tm-col { padding:5px 4px; } .tm-picks { gap:3px; } .tm-picks .tm-ico { width:29px; height:29px; min-width:29px; } }
.tm-tree .tm-ico { min-width:26px; height:26px; font-size:14px; border-color:#e0e6ea; }
.tm-box-head { font-size:11.5px; }

/* Thuc don va thu vien anh: rong het khung, khong kem hai cot ben */
body.page-open .wide-blocks { display:none; }
.wide-blocks { margin-bottom:24px; }
body.page-wide .portal-body-layout.has-news-side, body.page-wide .portal-body-layout { grid-template-columns:minmax(0,1fr); }
body.page-wide .portal-body-layout > aside { display:none !important; }

/* Ten bua tu dat: mau theo ten (--m vien, --mh nen tieu de) */
.tm-box { border-color:var(--m); }
.tm-box > .tm-box-head { background:var(--mh); overflow-wrap:anywhere; }
.tm-box-head > span:last-child { display:flex; flex-wrap:nowrap; gap:2px; }
.tm-box-head .tm-input { width:100%; }
.tm-add-meal { display:flex; justify-content:center; margin-top:8px; }
.tm-add-meal > .tm-ico { width:34px; height:34px; border-radius:50%; font-size:18px; border:2px dashed #90a4ae; }
/* Anh mon chi hien khi dua chuot toi, co hieu ung */
.tm-preview { animation:tm-pop .22s ease-out both; }
@keyframes tm-pop { from { opacity:0; transform:translateY(10px) scale(.85); } to { opacity:1; transform:none; } }
.tm-dish.tm-has-photo { cursor:zoom-in; }
.tm-dish.tm-has-photo:hover > .tm-name { text-decoration:underline dotted; }
@media print { .tm-add-meal { display:none; } }
.tm-tree .tm-dish.tm-has-photo > .tm-tools-row::after { content:none; }

/* Mon: bam ten de sua; dau tru nam ngay sau ten */
.tm-tree .tm-dish { cursor:default; }
.tm-tree .tm-dish > .tm-open { display:inline; border:0; background:none; padding:0; text-align:left; font:inherit; font-size:12.5px; color:inherit; cursor:pointer; overflow-wrap:anywhere; }
.tm-tree .tm-dish > .tm-open:hover { text-decoration:underline; color:#00695c; }
.tm-tree .tm-dish > .tm-ico { min-width:20px; width:20px; height:20px; font-size:11px; margin-left:4px; vertical-align:middle; }
.tm-tree .tm-dish > .tm-dish-note { display:block; font-size:11px; font-style:italic; opacity:.75; }
.tm-dish-current { display:block; max-width:100%; max-height:180px; margin:0 auto 6px; border-radius:10px; }

/* Chon ngay ket thuc tuan va ngay nghi */
.tm-end { display:flex; gap:4px; align-items:center; justify-content:center; margin:3px 0 0; font-size:11.5px; font-weight:700; }
.tm-end[hidden] { display:none; }
.tm-end select { font:inherit; border:1px solid #cfd8dc; border-radius:999px; padding:1px 6px; background:#fff; }
.tm-add-meal { gap:8px; flex-wrap:wrap; }
.tm-off { margin-top:8px; padding:10px 6px; text-align:center; border:2px dashed #ff7043; border-radius:12px; background:rgba(255,255,255,.85); color:#bf360c; }
.tm-off i { display:block; font-style:normal; font-size:26px; }
.tm-off p { margin:4px 0; font-size:12.5px; overflow-wrap:anywhere; color:#37474f; }
.tm-off > span { display:flex; justify-content:center; gap:6px; }
@media print { .tm-end { display:none; } }

/* Cua so anh trinh chieu: khung xem truoc dung ti le, keo de chon phan anh */
.slide-item { padding:12px 0; border-top:1px solid #e2e8f0; }
.slide-frame { position:relative; width:100%; aspect-ratio:12 / 5; overflow:hidden; border-radius:10px; background:#0f172a; cursor:grab; touch-action:none; user-select:none; }
.slide-frame:active { cursor:grabbing; }
.slide-frame.whole { cursor:default; }
.slide-frame img { display:block; width:100%; height:100%; pointer-events:none; }
.slide-adjust { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; padding:6px 0; font-size:12.5px; font-weight:700; }
.slide-adjust label { display:flex; gap:6px; align-items:center; margin:0; }
.slide-item .slide-row { grid-template-columns:28px 1fr auto; border-top:0; padding:0; }
.slide-item .slide-row > div { grid-column:auto; grid-row:auto; }
.activity-single-slide img { background:#0f172a; }
