/* "Yeməkxana" nəzarət jurnalı (ayrıca səhifə /yemekxana, bax js/canteen.js). YALNIZ kosmetika: rənglər, boşluqlar, qeyd formu (modal).
   Görünüşü idarə edən hidden atributu JS-dəndir. Mobil qayda: max-width 700px. */

/* Rəng dəyişənləri həm iş sahəsində, həm də qeyd formunda (modal iş sahəsindən KƏNARDADIR) işləməlidir */
.cnt-app, .cnt-modal {
  --ct-navy: #16345f; --ct-navy2: #1f4f8f; --ct-line: #e3eaf2; --ct-soft: #6b7c93; --ct-ink: #17283f;
  --ct-ok: #1a7a4c; --ct-ok-bg: #e3f4ea; --ct-bad: #a32d2d; --ct-bad-bg: #fce4e4; --ct-warn: #8a4b00; --ct-warn-bg: #fff1d6;
}
.cnt-app { display: block; min-width: 0; color: var(--ct-ink); }
.cnt-app [hidden], .cnt-modal[hidden] { display: none !important; }

/* ---------------------------------------------------------------- düymələr və sahələr */
.cnt-btn {
  border: 1px solid var(--ct-line); background: #fff; color: var(--ct-ink); border-radius: 0.6rem; padding: 0.42rem 0.8rem;
  font: 600 0.85rem var(--font-body, system-ui); cursor: pointer; touch-action: manipulation; min-height: 36px;
}
.cnt-btn:hover:not(:disabled) { border-color: var(--ct-navy2); background: #f3f7fc; }
.cnt-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cnt-btn--icon { min-width: 40px; font-size: 1.15rem; line-height: 1; padding: 0.3rem 0.6rem; }
.cnt-btn--small { min-height: 30px; padding: 0.25rem 0.65rem; font-size: 0.8rem; }
.cnt-btn--primary { background: var(--ct-navy); border-color: var(--ct-navy); color: #fff; }
.cnt-btn--primary:hover:not(:disabled) { background: #0f2749; border-color: #0f2749; }
.cnt-btn--bad { color: var(--ct-bad); border-color: #f0c3c3; }
.cnt-btn--bad:hover:not(:disabled) { background: var(--ct-bad-bg); border-color: var(--ct-bad); }
.cnt-link { border: 0; background: none; padding: 0; color: var(--ct-navy2); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cnt-spacer { flex: 1 1 auto; }

/* Excel düyməsi: aylıq / illik seçimi olan kiçik menyu */
.cnt-menuwrap { position: relative; display: inline-block; }
.cnt-btn--menu::after { content: '▾'; margin-left: 0.35rem; font-size: 0.85em; }
.cnt-menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30; min-width: 14.5rem; padding: 0.35rem;
  background: #fff; border: 1px solid var(--ct-line); border-radius: 0.8rem; box-shadow: 0 18px 36px -18px rgba(10, 40, 80, 0.55);
}
.cnt-menu[hidden] { display: none; }
.cnt-menu button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; width: 100%; padding: 0.55rem 0.75rem;
  border: 0; border-radius: 0.55rem; background: none; font: inherit; color: var(--ct-ink); text-align: left; cursor: pointer;
}
.cnt-menu button:hover, .cnt-menu button:focus-visible { background: #eef4fb; }
.cnt-menu small { color: var(--ct-soft); font-size: 0.78rem; }
.cnt-muted { color: var(--ct-soft); font-size: 0.85rem; }
.cnt-bad { color: var(--ct-bad); }
.cnt-warn { color: var(--ct-warn); }
.cnt-sub { margin-top: 0.2rem; font-size: 0.8rem; color: var(--ct-soft); }
.cnt-info { padding: 1.2rem 0.5rem; text-align: center; color: var(--ct-soft); }
.cnt-info--err { color: var(--ct-bad); }

.cnt-app select, .cnt-app input[type="text"], .cnt-app textarea, .cnt-modal select, .cnt-modal input[type="text"], .cnt-modal textarea {
  border: 1px solid var(--ct-line); border-radius: 0.55rem; padding: 0.42rem 0.55rem; font: 500 0.9rem var(--font-body, system-ui); background: #fff; color: var(--ct-ink);
}
.cnt-app textarea, .cnt-modal textarea { width: 100%; resize: vertical; box-sizing: border-box; }
.cnt-app select:focus, .cnt-app input:focus, .cnt-app textarea:focus, .cnt-modal select:focus, .cnt-modal input:focus, .cnt-modal textarea:focus { outline: 2px solid #1e9bb8; outline-offset: 1px; }
.cnt-field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.7rem 0 0; }
.cnt-field > span { font-size: 0.82rem; font-weight: 600; color: var(--ct-soft); }
.cnt-field input[type="text"] { width: 100%; box-sizing: border-box; }
.cnt-check { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.4rem 0; font-size: 0.88rem; cursor: pointer; }
.cnt-h3 { margin: 1.1rem 0 0; font-size: 1rem; }

/* ---------------------------------------------------------------- yuxarı hissə */
.cnt-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.9rem; }
.cnt-tab {
  border: 1px solid var(--ct-line); background: #fff; color: var(--ct-ink); border-radius: 999px; padding: 0.5rem 1.05rem;
  font: 600 0.88rem var(--font-body, system-ui); cursor: pointer; touch-action: manipulation;
}
.cnt-tab:hover { border-color: var(--ct-navy2); }
.cnt-tab.is-active { background: var(--ct-navy); border-color: var(--ct-navy); color: #fff; }
.cnt-count { display: inline-block; min-width: 1.3rem; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 999px; background: var(--ct-bad); color: #fff; font-size: 0.75rem; line-height: 1.3rem; text-align: center; }
.cnt-status { min-height: 1.3rem; margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--ct-soft); }
.cnt-status:empty { min-height: 0; margin: 0; }
.cnt-status.is-success { color: var(--ct-ok); }
.cnt-status.is-error { color: var(--ct-bad); font-weight: 600; }
.cnt-monthbar, .cnt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 0.8rem; }


/* ---------------------------------------------------------------- cədvəl */
.cnt-tablewrap { overflow-x: auto; border: 1px solid var(--ct-line); border-radius: 0.8rem; }
.cnt-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cnt-table th { position: sticky; top: 0; padding: 0.55rem 0.7rem; background: #eef3f9; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ct-soft); white-space: nowrap; }
.cnt-table td { padding: 0.5rem 0.7rem; border-top: 1px solid var(--ct-line); vertical-align: top; }
.cnt-table tbody tr:hover { background: #f7fafd; }
.cnt-table--import td:nth-child(3) { min-width: 16rem; }

.cnt-chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.cnt-chip--ok { background: var(--ct-ok-bg); color: var(--ct-ok); }
.cnt-chip--bad { background: var(--ct-bad-bg); color: var(--ct-bad); }
.cnt-chip--warn { background: var(--ct-warn-bg); color: var(--ct-warn); }
.cnt-chip--missing { background: #ffd9d9; color: #8c1d1d; }
.cnt-chip--off { background: #eceff3; color: #51606f; }
.cnt-badge { display: inline-block; margin: 0 0.2rem 0.2rem 0; padding: 0.1rem 0.5rem; border-radius: 0.4rem; font-size: 0.76rem; font-weight: 600; }
.cnt-badge--bad { background: var(--ct-bad-bg); color: var(--ct-bad); }
.cnt-badge--warn { background: var(--ct-warn-bg); color: var(--ct-warn); }

/* ---------------------------------------------------------------- «Bu gün» kartı və xülasə */
.cnt-today { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem; margin: 0 0 0.9rem; padding: 0.9rem 1.1rem; border: 1px solid var(--ct-line); border-left-width: 6px; border-radius: 0.9rem; background: #fff; }
.cnt-today[hidden] { display: none; }
.cnt-today-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1 1 18rem; }
.cnt-today-text strong { font-size: 1.05rem; }
.cnt-today-text span { font-size: 0.86rem; color: var(--ct-soft); overflow-wrap: anywhere; }
.cnt-today.is-todo { border-left-color: #c78100; background: #fffaf0; }
.cnt-today.is-ok { border-left-color: var(--ct-ok); background: #f4fbf7; }
.cnt-today.is-bad { border-left-color: var(--ct-bad); background: #fff6f6; }
.cnt-today.is-warn { border-left-color: #c78100; background: #fffaf0; }
.cnt-today.is-off { border-left-color: #9aa7b5; background: #f6f8fa; }
.cnt-hint { margin: 0.5rem 0 0.7rem; padding: 0.5rem 0.8rem; border-left: 4px solid #1e9bb8; border-radius: 0.4rem; background: #eaf7fb; color: #0b4a5c; font-size: 0.88rem; line-height: 1.45; }
.cnt-field small { font-weight: 500; color: var(--ct-soft); }

.cnt-summary { margin: 0 0 0.7rem; font-size: 0.95rem; color: var(--ct-ink); }
.cnt-footlink { margin: 0.8rem 0 0; font-size: 0.85rem; }
.cnt-link--muted { color: var(--ct-soft); font-weight: 500; }
.cnt-allok { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin: 0.5rem 0; padding: 0.7rem 0.9rem; border: 1px solid #bfe3cf; border-radius: 0.8rem; background: #f4fbf7; color: var(--ct-ok); font-weight: 600; }
.cnt-more { margin: 0.8rem 0 0.2rem; }
#cntMenu { margin-top: 0.4rem; }
.cnt-dialog-body > .cnt-link--muted { display: block; margin-top: 0.9rem; }

/* ---------------------------------------------------------------- günlərin plitkaları */
.cnt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.7rem; }
.cnt-tiles > .cnt-info { grid-column: 1 / -1; }
.cnt-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-height: 9.5rem; padding: 0.75rem 0.85rem 0.8rem;
  border: 1px solid var(--ct-line); border-left: 5px solid #9aa7b5; border-radius: 0.9rem; background: #fff; color: var(--ct-ink);
  font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; transition: box-shadow 0.15s, transform 0.15s;
}
.cnt-tile:hover { box-shadow: 0 10px 22px -14px rgba(10, 40, 80, 0.55); transform: translateY(-2px); }
.cnt-tile:focus-visible { outline: 2px solid #1e9bb8; outline-offset: 2px; }
.cnt-tile.is-ok { border-left-color: var(--ct-ok); background: #f8fcf9; }
.cnt-tile.is-bad { border-left-color: var(--ct-bad); background: #fff7f7; }
.cnt-tile.is-warn { border-left-color: #c78100; background: #fffaf0; }
.cnt-tile.is-off { border-left-color: #9aa7b5; background: #f6f8fa; color: var(--ct-soft); }
.cnt-tile.is-missing { border-left-color: var(--ct-bad); border-style: dashed; border-left-style: solid; background: #fff6f6; }
.cnt-tile.is-today { box-shadow: 0 0 0 2px var(--ct-navy2); }
.cnt-tile-head { display: flex; align-items: baseline; gap: 0.5rem; }
.cnt-tile-day { font: 700 1.6rem/1 var(--font-display, system-ui); }
.cnt-tile-wd { font-size: 0.78rem; color: var(--ct-soft); }
.cnt-tile-text { font-size: 0.82rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.cnt-tile-issue { font-size: 0.8rem; font-weight: 600; color: var(--ct-bad); }
.cnt-tile-change { font-size: 0.76rem; color: var(--ct-soft); }
.cnt-tile-cta { margin-top: auto; font-weight: 700; font-size: 0.88rem; color: var(--ct-navy2); }

/* ---------------------------------------------------------------- problemlər və idxal */
.cnt-problem { margin: 0 0 0.7rem; padding: 0.8rem 1rem; border: 1px solid #f0c3c3; border-left: 5px solid var(--ct-bad); border-radius: 0.7rem; background: #fff; }
.cnt-problem header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 0.3rem; }
.cnt-problem ul { margin: 0.2rem 0; padding-left: 1.1rem; }
.cnt-resolve { display: flex; gap: 0.45rem; margin-top: 0.5rem; }
.cnt-resolve input { flex: 1 1 auto; min-width: 0; }
.cnt-importbox textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; }

/* ---------------------------------------------------------------- qeyd formu (modal) */
.cnt-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 0.8rem; overflow-y: auto; background: rgba(8, 24, 48, 0.55); }
body.cnt-modal-open { overflow: hidden; }
.cnt-dialog { width: min(46rem, 100%); max-height: 94vh; display: flex; flex-direction: column; border-radius: 1rem; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); color: var(--ct-ink); }
.cnt-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--ct-line); }
.cnt-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.cnt-dialog-body { padding: 0.5rem 1.2rem 0.4rem; overflow-y: auto; }
.cnt-dialog-foot { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.2rem; border-top: 1px solid var(--ct-line); }
.cnt-seg { display: inline-flex; border: 1px solid var(--ct-line); border-radius: 0.65rem; overflow: hidden; flex-shrink: 0; }
.cnt-seg--wide { display: flex; margin: 0.4rem 0 0.2rem; }
.cnt-seg--wide .cnt-segbtn { flex: 1 1 0; }
.cnt-segbtn { border: 0; background: #fff; padding: 0.42rem 0.8rem; font: 600 0.82rem var(--font-body, system-ui); color: var(--ct-ink); cursor: pointer; min-height: 36px; touch-action: manipulation; }
.cnt-segbtn + .cnt-segbtn { border-left: 1px solid var(--ct-line); }
.cnt-segbtn.is-active { background: var(--ct-navy); color: #fff; }
.cnt-segbtn.is-ok.is-active { background: var(--ct-ok); }
.cnt-segbtn.is-warn.is-active { background: #c78100; }
.cnt-segbtn.is-bad.is-active { background: var(--ct-bad); }
.cnt-checklist { margin: 0.6rem 0 0.2rem; border: 1px solid var(--ct-line); border-radius: 0.8rem; }
.cnt-checkrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; padding: 0.5rem 0.8rem; }
.cnt-checkrow + .cnt-checkrow { border-top: 1px solid var(--ct-line); }
.cnt-checklabel { flex: 1 1 14rem; font-size: 0.9rem; }
.cnt-problembox p.cnt-muted { margin: 0.2rem 0 0; }
.cnt-problembox { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem 0.5rem; border: 1px solid #f2d9a6; border-radius: 0.8rem; background: #fffaf0; }

/* ---------------------------------------------------------------- ayrıca səhifə (js/pages/yemekxana.html, /yemekxana) */
.cntp-hero {
  position: relative; overflow: hidden; padding: 1.4rem 1.5rem 1.5rem; color: #fff;
  background: linear-gradient(120deg, var(--navy-deep, #061a33) 0%, var(--navy, #0b2a4a) 60%, #0a3a63 100%);
}
.cntp-hero::after {
  content: ''; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(38, 210, 255, 0.22) 0%, rgba(38, 210, 255, 0) 70%);
}
.cntp-hero-inner { position: relative; z-index: 1; max-width: 1760px; margin: 0 auto; }
.cntp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.55rem; padding: 0; list-style: none; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.cntp-breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: rgba(255, 255, 255, 0.4); }
.cntp-breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.cntp-breadcrumb a:hover { color: var(--cyan, #26d2ff); }
.cntp-breadcrumb [aria-current] { color: #fff; font-weight: 600; }
.cntp-hero-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; }
.cntp-hero h1 { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.15; }
.cntp-user { padding: 0.3rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); }
.cntp-user:empty { display: none; }
/* Sağda səhifənin mənasını bildirən ikon (boşqab + çəngəl və bıçaq) — MENTOREX-in sağdakı loqosu kimi; hesab adı başlığın altındadır */
.cntp-hero-text { flex: 1 1 14rem; min-width: 0; }
.cntp-hero-text .cntp-user { display: inline-block; margin-top: 0.7rem; }
.cntp-hero-text .cntp-user:empty { display: none; }
.cntp-hero-icon {
  --ico-acc: #ffb454;
  position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 1.4rem; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cntp-hero-icon::before, .cntp-hero-icon::after { content: ''; position: absolute; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.09); }
.cntp-hero-icon::before { inset: -0.85rem; border-radius: 2.1rem; }
.cntp-hero-icon::after { inset: -1.7rem; border-radius: 2.8rem; border-color: rgba(255, 255, 255, 0.05); }
.cntp-hero-icon svg { width: 3.7rem; height: 3.7rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cntp-hero-icon .ico-acc { stroke: var(--ico-acc); }
.cntp-hero-icon .ico-dot { fill: var(--ico-acc); stroke: none; }
.cntp-main { max-width: 1760px; margin: 0 auto; padding: 1.2rem 1.25rem 2.5rem; }
.cntp-panel { padding: 1.1rem 1.25rem 1.4rem; border: 1px solid #e3eaf2; border-radius: 1rem; background: #fff; box-shadow: 0 18px 40px -30px rgba(10, 40, 80, 0.35); }
.cntp-gate { max-width: 36rem; margin: 2rem auto; padding: 1.6rem 1.5rem; border: 1px solid #e3eaf2; border-radius: 1rem; background: #fff; text-align: center; }
.cntp-gate[hidden] { display: none; }
.cntp-gate h2 { margin: 0 0 0.6rem; }
.cntp-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.1rem 0 0; }

@media (max-width: 700px) {
  .cntp-hero { padding: 1.1rem 1rem 1.2rem; }
  .cntp-hero-text { flex-basis: 8rem; }
  .cntp-hero-icon { width: 3.75rem; height: 3.75rem; border-radius: 1rem; }
  .cntp-hero-icon::before { inset: -0.55rem; border-radius: 1.5rem; }
  .cntp-hero-icon::after { inset: -1.1rem; border-radius: 2rem; }
  .cntp-hero-icon svg { width: 2.5rem; height: 2.5rem; }
  .cntp-main { padding: 0.8rem 0.5rem 1.5rem; }
  .cntp-panel { padding: 0.7rem 0.6rem 1rem; border-radius: 0.8rem; }
  .cnt-btn, .cnt-tab, .cnt-segbtn { min-height: 44px; }
  .cnt-btn--small { min-height: 36px; }
  .cnt-modal { padding: 0; align-items: stretch; }
  .cnt-dialog { width: 100%; max-height: none; min-height: 100%; border-radius: 0; }
  .cnt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .cnt-tile { min-height: 8.5rem; padding: 0.65rem 0.7rem; }
  .cnt-resolve { flex-direction: column; }
}
