/* ─── Same layout as the mobile (Flutter) app ─── */

/* header: language · theme · info (About) — icons only */
.header-btn { padding: 7px 10px; }

/* Calendar tab: [plan bar · summary · coffee] + calendar; one column on narrow screens */
.cal-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.cal-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cal-side .plan-bar { padding: 0; background: none; border: none; }
.cal-side .plan-bar:empty { display: none; }
.cal-side .summary-grid { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.coffee-mini-wide { width: 100%; }
@media (max-width: 900px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side .summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cal-layout { gap: 12px; }
}

/* 4th summary card: PDF export button */
.summary-card .summary-body { flex: 1; min-width: 0; }
button.summary-card.export-card { font: inherit; text-align: start; cursor: pointer; color: inherit; width: 100%; transition: transform .15s, border-color .15s, box-shadow .15s; }
button.summary-card.export-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow2); }
.export-card .summary-icon { background: var(--red-light); color: var(--red); }
.export-card .summary-val { color: var(--red); font-size: 16px; }
.summary-edit { margin-inline-start: auto; background: none; border: none; color: var(--text3); cursor: pointer; padding: 5px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; }
.cal-side .summary-card { min-width: 0; }

/* day sheet: bottom sheet on phones, centred dialog on wide screens */
.day-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s; }
.day-modal.open { opacity: 1; pointer-events: auto; }
.day-sheet.sidebar { display: block !important; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg2); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3); transform: translateY(40px); transition: transform .3s cubic-bezier(.32, .72, 0, 1); flex-direction: column; }
.day-modal.open .day-sheet.sidebar { transform: none; }
.day-sheet .side-card { border: none; box-shadow: none; border-radius: 0; background: transparent; scroll-margin-top: 0; }
.day-sheet .side-card-header { padding: 16px 18px; font-size: 14px; }
.day-sheet .day-detail, .day-sheet .quick-add { padding: 14px 18px; }
.day-sheet .quick-add .btn-add { padding: 12px; }
@media (min-width: 700px) {
  .day-modal { align-items: center; }
  .day-sheet.sidebar { border-radius: 20px; }
}
body.modal-open { overflow: hidden; }
.qa-date { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

/* About page back bar */
.panel-back { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.panel-back .cal-nav-btn { flex-shrink: 0; }
[dir="rtl"] .panel-back .ti-arrow-left { transform: scaleX(-1); }

/* big coffee card at the end of Stats */
.coffee-slot-card { margin-top: 16px; }

/* period rows: labelled start / end fields */
.period-row { align-items: flex-end; }
.period-field { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.period-field small { font-size: 10px; font-weight: 600; color: var(--text3); }
.period-row .row-sep { padding-bottom: 8px; }
.period-row .row-remove { margin-bottom: 5px; }

/* About: contact section under the features */
.about-contact { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }

/* PDF export card: red text */
.export-card .summary-val, .export-card .summary-lbl { color: var(--red); }
.export-card .summary-lbl { font-weight: 600; }
