/* 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-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; } }
