/* ==========================================================================
   Vergi Takvimi modülü (pages/vergi-takvimi.php, admin/tax_calendar.php)
   Kategori rozet renkleri PHP'de (tax_calendar_category_colors) satır içi verilir.
   ========================================================================== */

/* ---------- Ay çubuğu ---------- */
.tc-monthbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.tc-month-center { text-align: center; min-width: 0; flex: 1 1 auto; }
.tc-month-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0; }
.tc-month-sub { color: var(--muted, #667085); font-size: .85rem; margin-top: 2px; }
.tc-nav-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; min-width: 44px; justify-content: center; padding: 8px 12px; border: 1px solid var(--border, #e3e8ef); border-radius: 10px; color: var(--brand-700, #14395f); font-weight: 600; font-size: .9rem; background: var(--surface, #fff); }
.tc-nav-btn:hover, .tc-nav-btn:focus { border-color: var(--brand-500, #2563a6); background: var(--brand-50, #f1f6fb); text-decoration: none; }
.tc-nav-btn.is-disabled { visibility: hidden; }
.tc-nav-btn i { margin: 0; }

.tc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.tc-actions .btn { min-height: 38px; }

/* ---------- Kategori çipleri ---------- */
.tc-chips { margin: 16px 0 6px; }
.tc-chips .chip { min-height: 36px; }
.tc-chip-count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--brand-50, #f1f6fb); color: var(--brand-700, #14395f); font-size: .75rem; line-height: 1.5; text-align: center; }
.tc-chips .chip.active .tc-chip-count { background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 575.98px) {
  .tc-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
  .tc-chips .chip { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- Gösterge ---------- */
.tc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 10px 0 18px; font-size: .82rem; color: var(--muted, #667085); }
.tc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tc-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tc-dot-today { background: #b42318; }
.tc-dot-soon { background: #c27c0e; }
.tc-dot-past { background: #98a2b3; }
.tc-dot-future { background: var(--brand-500, #2563a6); }

/* ---------- Gün listesi ---------- */
.tc-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tc-day { background: var(--surface, #fff); border: 1px solid var(--border, #e3e8ef); border-left: 4px solid var(--brand-500, #2563a6); border-radius: var(--radius, 14px); box-shadow: var(--shadow-sm, none); overflow: hidden; scroll-margin-top: 110px; }
.tc-day-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--brand-50, #f1f6fb); border-bottom: 1px solid var(--border, #e3e8ef); }
.tc-daybox { flex-shrink: 0; width: 52px; text-align: center; background: var(--surface, #fff); border: 1px solid var(--border, #e3e8ef); border-radius: 10px; padding: 5px 2px; line-height: 1.1; color: var(--brand-700, #14395f); }
.tc-daybox .d { display: block; font-size: 1.2rem; font-weight: 800; }
.tc-daybox .m { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.tc-day-info { min-width: 0; flex: 1 1 auto; }
.tc-day-title { font-size: 1rem; margin: 0; }
.tc-day-count { flex-shrink: 0; font-size: .78rem; color: var(--muted, #667085); white-space: nowrap; }
.tc-state { display: inline-block; margin-top: 3px; font-size: .78rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; background: #fff; border: 1px solid var(--border, #e3e8ef); color: var(--ink-2, #3b4658); }

.tc-day.is-today { border-left-color: #b42318; }
.tc-day.is-today .tc-day-head { background: #fdecea; }
.tc-day.is-today .tc-state { background: #b42318; border-color: #b42318; color: #fff; }
.tc-day.is-soon { border-left-color: #c27c0e; }
.tc-day.is-soon .tc-day-head { background: #fff6e5; }
.tc-day.is-soon .tc-state { background: #fdf0d5; border-color: #f0d49a; color: #7a4a04; }
.tc-day.is-past { border-left-color: #98a2b3; }
.tc-day.is-past .tc-day-head { background: #f4f5f7; }
.tc-day.is-past .tc-daybox, .tc-day.is-past .tc-day-title { color: #5b6574; }
.tc-day.is-past .tc-item-title { color: #4a5363; }

.tc-items { list-style: none; margin: 0; padding: 0; }
.tc-item { padding: 12px 16px; border-bottom: 1px dashed var(--border, #e3e8ef); }
.tc-item:last-child { border-bottom: 0; }
.tc-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.tc-cat { font-weight: 600; border-radius: 6px; font-size: .74rem; }
.tc-priority { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: #9a3412; }
.tc-priority i { margin: 0; }
.tc-item-title { font-weight: 600; color: var(--ink, #1b2433); margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.tc-item-meta { color: var(--muted, #667085); font-size: .84rem; margin: 3px 0 0; overflow-wrap: anywhere; }
.tc-item-meta span + span::before { content: "·"; margin: 0 6px; color: #c3cad5; }
.tc-desc { margin-top: 6px; font-size: .88rem; }
.tc-desc summary { cursor: pointer; color: var(--brand-600, #174a7e); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.tc-desc summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.tc-desc[open] summary { margin-bottom: 4px; }
.tc-desc-body { color: var(--ink-2, #3b4658); line-height: 1.6; overflow-wrap: anywhere; }
.tc-desc-body p { margin-bottom: .5rem; }
.tc-desc-body p:last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
  .tc-day-head { padding: 10px 12px; gap: 10px; }
  .tc-item { padding: 10px 12px; }
  .tc-day-count { display: none; }
  .tc-monthbar { padding: 10px; }
  .tc-nav-btn { padding: 8px 10px; }
}

/* ---------- Yan bilgi kartı ---------- */
.tc-aside .note { margin-bottom: 12px; }
.tc-aside .note:last-child { margin-bottom: 0; }
.tc-aside .note p { margin-bottom: .35rem; }
.tc-aside .note p:last-child { margin-bottom: 0; }
.tc-sticky { position: sticky; top: 96px; }
@media (max-width: 991.98px) { .tc-sticky { position: static; } }

/* ---------- Yazdırma ---------- */
@media print {
  .tc-chips, .tc-actions, .tc-legend, .tc-nav-btn, .tc-desc summary { display: none !important; }
  .tc-day { break-inside: avoid; box-shadow: none; }
  .tc-aside { margin-top: 16px; }
  .tc-sticky { position: static; }
}

/* ---------- Yönetim paneli ---------- */
.tc-admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px 16px; border-bottom: 1px solid var(--border, #e3e8ef); }
.tc-admin-filters .form-label { font-size: .75rem; margin-bottom: 2px; color: var(--muted, #667085); }
.tc-admin-filters .tc-f { flex: 0 1 180px; min-width: 130px; }
.tc-admin-filters .tc-f-wide { flex: 1 1 200px; }
.tc-src { font-size: .72rem; font-weight: 600; }
.tc-src-gib { background: #e2f1f9; color: #0b577c; }
.tc-src-seed { background: #f1ede2; color: #5d5424; }
.tc-src-manual { background: #eceefb; color: #3a429b; }
.tc-cell-title { min-width: 220px; }
.tc-cell-sub { display: block; font-size: .78rem; color: var(--muted, #667085); }
.tc-row-past td { color: #6b7280; }
.tc-report-list { max-height: 320px; overflow: auto; font-size: .85rem; }
.tc-code { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; background: #f3f5f9; border: 1px solid var(--border, #e3e8ef); border-radius: 8px; padding: 10px 12px; white-space: pre; overflow-x: auto; margin: 0; }
.tc-tools .card-body > :last-child { margin-bottom: 0; }

/* ---------- Mobil kısa uyarı ---------- */
.tc-mobile-note { font-size: .82rem; color: var(--ink-2, #3b4658); background: #fff8e6; border: 1px solid #f5e0a8; border-radius: 10px; padding: 8px 12px; margin: 0 0 14px; }
.tc-mobile-note i { color: #b7791f; margin-right: 4px; }
.tc-aside { scroll-margin-top: 96px; }
