/* Musteri Cloud — shared action button design system (icon-only) */
:root {
  --act-new: #059669;
  --act-edit: #2563eb;
  --act-delete: #dc2626;
  --act-view: #0d9488;
  --act-print: #64748b;
  --act-pdf: #ea580c;
  --act-save: #0f766e;
  --act-filter: #7c3aed;
  --act-refresh: #0891b2;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,.12);
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.act-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.act-btn:active { transform: translateY(0); }
.act-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.act-new { background: var(--act-new); }
.act-edit { background: var(--act-edit); }
.act-delete { background: var(--act-delete); }
.act-view { background: var(--act-view); }
.act-print { background: var(--act-print); }
.act-pdf { background: var(--act-pdf); }
.act-save { background: var(--act-save); }
.act-filter { background: var(--act-filter); }
.act-refresh { background: var(--act-refresh); }

.act-btn-lg { width: 40px; height: 40px; border-radius: 10px; }
.act-btn-lg svg { width: 18px; height: 18px; }

.act-group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Toolbar primary "new" can be wider with icon+label only for primary CTA */
.act-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.95rem;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: var(--act-new);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.12);
}
.act-cta:hover { filter: brightness(1.06); }
.act-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.list-toolbar-left, .list-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.list-pager {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #64748b;
}
.list-pager-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}
.list-pager .pager-total { justify-self: start; min-width: 0; }
.list-pager .pager-excel { justify-self: center; }
.list-pager .page-btns { display: flex; gap: 0.35rem; align-items: center; justify-self: end; flex-wrap: wrap; }
.list-pager .pager-excel-btn { white-space: nowrap; }
.list-pager button.page-btn {
  min-width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid #cbd5e1; background: #fff; color: #334155; cursor: pointer;
}
.list-pager button.page-btn.active { background: #0f766e; color: #fff; border-color: #0f766e; }
.list-pager button.page-btn:disabled { opacity: .4; cursor: not-allowed; }

.view-toggle { display: inline-flex; background: #e2e8f0; border-radius: 10px; padding: 3px; gap: 2px; }
.view-toggle button {
  border: none; background: transparent; padding: 0.4rem 0.75rem;
  border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: #64748b; cursor: pointer;
}
.view-toggle button.active { background: #fff; color: #0f766e; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

@media print {
  #mc-sidebar, #layout-sidebar, #layout-topbar, header, .list-toolbar, .act-group, .list-pager, #mc-sidebar-overlay { display: none !important; }
  .md\:ml-64, .flex.flex-col.min-h-screen { margin: 0 !important; }
  main { max-width: 100% !important; padding: 0 !important; }
  .mc-card { box-shadow: none !important; border: none !important; }
}


.act-save { background: var(--act-save); }
.act-close { background: #475569; }

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.list-toolbar .tb-left {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex: 1 1 auto; min-width: 0;
}
.list-toolbar .tb-right {
  display: flex; align-items: center; gap: 0.4rem; margin-left: auto;
}
.list-toolbar .mc-input,
.list-toolbar .mc-select { width: auto; min-width: 140px; max-width: 220px; }

.chip-filters { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.chip-filters button {
  border: 1px solid #cbd5e1; background: #fff; color: #475569;
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.65rem;
  border-radius: 999px; cursor: pointer;
}
.chip-filters button.active {
  background: #0f766e; border-color: #0f766e; color: #fff;
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.modal-head .modal-acts { display: inline-flex; gap: 0.4rem; }

.mc-search {
  position: relative;
}
.mc-search-results {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 0.65rem;
  box-shadow: 0 12px 28px rgba(15,23,42,.12); max-height: 220px; overflow: auto;
  margin-top: 4px;
}
.mc-search-results button {
  display: block; width: 100%; text-align: left; padding: 0.55rem 0.75rem;
  border: none; background: transparent; cursor: pointer; font-size: 0.875rem;
}
.mc-search-results button:hover { background: #f1f5f9; }
.mc-search-picked {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.75rem; border-radius: 0.55rem; background: #ecfeff;
  border: 1px solid #a5f3fc; font-size: 0.875rem;
}

.act-check { background: #16a34a; }
.act-phone { background: #0284c7; }
.act-whatsapp { background: #25d366; }
.act-btn-text { width: auto; padding: 0 0.85rem; gap: 0.4rem; }
.act-btn-text .act-label { font-size: 0.8rem; font-weight: 600; }
.act-yeni-lg { height: 44px !important; padding: 0 1.15rem !important; font-size: 0.95rem !important; border-radius: 12px !important; }

.modal-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem;
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid #e2e8f0;
}
.act-cancel-foot { background: #64748b; }
.act-save-foot { background: var(--act-save); }

.mc-btn-kasalar {
  background: #7c3aed; color: #fff; border: none; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 0.55rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,.35);
}
.mc-btn-kasalar:hover { filter: brightness(1.08); }
.mc-btn-hesaplar {
  background: #2563eb; color: #fff; border: none; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 0.55rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.mc-btn-pos {
  background: #ea580c; color: #fff; border: none; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 0.55rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(234,88,12,.35);
}

.list-row-click { cursor: pointer; }
.list-row-click:hover { background: #f8fafc; }

.login-split {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { min-height: 180px; }
}
.login-brand {
  background: linear-gradient(145deg, #0f766e 0%, #0e7490 45%, #1d4ed8 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden;
}
.login-brand::after {
  content: ''; position: absolute; inset: -20% auto auto 40%; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.login-form-pane {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
}
.pw-wrap { position: relative; }
.pw-wrap .mc-input { padding-right: 2.75rem; }
.pw-toggle {
  position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; background: transparent; cursor: pointer;
  color: #64748b; display: inline-flex; align-items: center; justify-content: center;
}
.pw-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dash-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.55rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600;
  border: 1px solid #cbd5e1; cursor: pointer; color: #475569; background: #fff;
}
.dash-chip:hover { background: #f8fafc; }
.dash-chip.active { background: #f1f5f9; border-color: #64748b; color: #0f172a; }

.chart-box { position: relative; height: 180px; width: 100%; max-height: 180px; }
.chart-box canvas { max-height: 180px !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Topbar greeting (dashboard) */
.topbar-greet {
  display: flex; flex-direction: column; line-height: 1.15; min-width: 0;
  padding-left: 0.75rem; margin-left: 0.25rem; border-left: 1px solid #e2e8f0;
}
.topbar-hello { font-size: 0.875rem; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-hello strong { color: #0f172a; font-weight: 700; }
.topbar-tenant { font-size: 0.7rem; color: #94a3b8; white-space: nowrap; }
@media (max-width: 640px) {
  .topbar-greet { display: none; }
}

/* Randevu: view toggle + actions on one row */
.randevu-view-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem; flex-wrap: nowrap;
}
.randevu-view-bar .view-toggle { flex-shrink: 0; }
.randevu-view-bar #tb-right,
.randevu-view-bar .tb-right {
  display: flex; align-items: center; gap: 0.4rem;
  margin-left: auto; flex-shrink: 0;
}

/* Period summary strip (işlemler) */
.islem-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem; margin-bottom: 1rem;
}
.islem-summary .sum-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.islem-summary .sum-label { font-size: 0.7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .02em; }
.islem-summary .sum-value { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-top: 0.15rem; }
.islem-summary .sum-value.neg { color: #b91c1c; }
@media (max-width: 640px) {
  .islem-summary { grid-template-columns: 1fr; }
}
