:root { --tblr-primary: #39715b; --tblr-primary-rgb: 57,113,91; --tblr-body-bg: #f8f9f5; --tblr-body-color: #293b34; --tblr-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { background: #f8f9f5; }
.navbar { box-shadow: none; border-bottom: 1px solid #e1e7df; background: #fff; }
.navbar-brand { font-size: 24px; letter-spacing: -1px; gap: 10px; }
.brand-mark { display: grid; place-items: center; background: #39715b; color: white; width: 36px; height: 36px; border-radius: 11px; font-family: Georgia, serif; }
.brand-caption { font-size: 13px; font-weight: 400; letter-spacing: 0; color: #758279; }
.brand-dot { color: #d9dfd9; font-weight: 400; }
.nav-pills .nav-link { color: #65736b; }
.nav-pills .nav-link.active { color: #315e4b; background: #eaf1e9; }
.user-menu { position: relative; }
.user-menu > summary { display: grid; place-items: center; list-style: none; color: #65736b; border: 1px solid #d6dfd7; background: #fff; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary::marker { content: ""; }
.user-menu > summary svg { width: 19px; height: 19px; }
.user-menu-panel { position: absolute; z-index: 1100; right: 0; top: calc(100% + 8px); width: 220px; padding: 6px; border: 1px solid #d6dfd7; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px #293b3426; }
.user-menu-email { padding: 8px 10px; color: #65736b; font-size: 12px; overflow-wrap: anywhere; border-bottom: 1px solid #e8ece6; }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; color: #293b34; background: transparent; font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu-panel a:hover, .user-menu-panel button:hover, .user-menu-panel a:focus-visible, .user-menu-panel button:focus-visible { background: #eaf1e9; }
.password-form input { display: block; width: 100%; padding: 8px 10px; border: 1px solid #d6dfd7; border-radius: 7px; background: #fff; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; letter-spacing: -1.2px; margin: 8px 0 12px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; color: #758276; font-weight: 600; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading p { margin: 0; }
.btn { border-radius: 7px; box-shadow: none; }
.btn-primary { background: #39715b; border-color: #39715b; }
.card { border: 1px solid #e1e7df; border-radius: 12px; box-shadow: 0 3px 14px #293b3403; overflow: hidden; }
.card-header { padding: 22px 24px; }
.card-title { margin: 6px 0 0; font-size: 19px; }
.planner-table { table-layout: fixed; width: 100%; }
.planner-table th:first-child { width: 15%; }
.planner-table th:last-child { width: 25%; }
.planner-table thead th { padding: 15px 24px; background: #f7f9f4; color: #6b796e; font-size: 10px; letter-spacing: 1.3px; }
.planner-table td, .planner-table tbody th { padding: 22px 24px; vertical-align: top; border-color: #e8ece6; white-space: normal; }
.planner-table tr:last-child td, .planner-table tr:last-child th { border-bottom: none; }
.weekday { display: block; font-size: 13px; font-weight: 600; }
.day-number { display: block; margin-top: 4px; color: #7a867e; font-size: 18px; font-weight: 400; }
.day-number small { font-size: 11px; }
.school-column { background: #f8faf7 !important; color: #6c7b70; font-size: 12px; }
.school-label { display: inline-block; margin-bottom: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #7d8c74; }
.meal-description { overflow-wrap: anywhere; line-height: 1.6; }
.meal-occupied-badge { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 5px; color: #65736b; font-size: 11px; font-weight: 600; }
.meal-occupied-badge svg { width: 13px; height: 13px; }
.meal-actions { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: flex-start; margin-top: 10px; }
.meal-actions details[open] { flex-basis: 100%; }
.meal-actions summary { color: #39715b; font-size: 12px; cursor: pointer; }
.meal-actions .meal-occupied-editor > summary { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 3px; color: #65736b; border: 1px solid #d6dfd7; background: #fff; list-style: none; }
.meal-actions .meal-occupied-editor > summary::-webkit-details-marker { display: none; }
.meal-actions .meal-occupied-editor > summary::marker { content: ""; }
.meal-occupied-editor summary svg { width: 15px; height: 15px; }
.meal-editor .ts-control, .meal-editor .ts-wrapper.single.input-active .ts-control { background: #fff; border: 1px solid #d6dfd7; border-radius: 7px; color: #293b34; min-height: 38px; }
.ts-dropdown, .ts-dropdown.form-control, .ts-dropdown.form-select { background: #fff !important; border: 1px solid #d6dfd7; border-radius: 7px; color: #293b34; opacity: 1; z-index: 1050; }
.ts-dropdown .ts-dropdown-content, .ts-dropdown .option { background: #fff; color: #293b34; }
.ts-dropdown .option.active { background: #eaf1e9; color: #293b34; }
.meal-editor .ts-control .item, .ts-dropdown .option { white-space: normal; overflow-wrap: anywhere; }
.today .day-column { box-shadow: inset 3px 0 #39715b; }
.today-badge { background: #eaf1e9; color: #39715b; font-size: 10px; }
.school-today { background: #f1f7f0; border-left: 3px solid #39715b; }
.planner-note { display: flex; gap: 12px; align-items: baseline; color: #7b887d; font-size: 12px; padding: 4px; }
.planner-note > span { font-size: 20px; color: #39715b; }
.ai-loading-dialog { width: min(90vw, 400px); padding: 32px; border: 1px solid #d6dfd7; border-radius: 12px; box-shadow: 0 16px 48px #293b3440; text-align: center; color: #293b34; background: #fff; }
.ai-loading-dialog::backdrop { background: #293b3480; }
.ai-loading-dialog h2 { margin: 16px 0 8px; font-size: 20px; }
.ai-loading-dialog p { margin: 0; color: #65736b; font-size: 14px; }
.ai-loading-spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid #d6dfd7; border-top-color: #39715b; border-radius: 50%; animation: ai-loading-spin 0.8s linear infinite; }
@keyframes ai-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-loading-spinner { animation: none; border-top-color: #d6dfd7; } }
.editor-width { max-width: 650px; margin: auto; }
@media (max-width: 767px) { .page-heading { align-items: flex-start; flex-direction: column; } .brand-caption, .brand-dot { display: none; } main.container-xl { padding-top: 28px !important; } .planner-table td, .planner-table tbody th { padding: 18px; } }
@media (max-width: 767px) {
  .planner-table, .planner-table tbody { display: block; }
  .planner-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .planner-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid #e8ece6; }
  .planner-table tbody th, .planner-table tbody td { display: block; width: auto !important; border: 0; }
  .planner-table .day-column, .planner-table .school-column { grid-column: 1 / -1; }
  .planner-table tbody td:nth-child(2)::before, .planner-table tbody td:nth-child(3)::before { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: 1.3px; color: #6b796e; }
  .planner-table tbody td:nth-child(2)::before { content: "PRANZO"; }
  .planner-table tbody td:nth-child(3)::before { content: "CENA"; }
  .meal-editor .ts-control input { font-size: 16px; }
}
