/* Patikum Yönetim Paneli — kendi tasarım dili: koyu yeşil yan menü, sıcak krem zemin, sade beyaz kartlar */
:root {
  --pt-primary: #17676b;
  --pt-primary-dark: #0f4a4d;
  --pt-primary-soft: #d7ecea;
  --pt-accent: #c48a35;
  --pt-accent-soft: #f8efe1;
  --pt-side: #0e3a3c;
  --pt-side-2: #144a4c;
  --pt-bg: #f6f4ef;
  --pt-card: #ffffff;
  --pt-text: #1f2937;
  --pt-muted: #6b7280;
  --pt-border: #ece8df;
  --pt-radius: 18px;
  --side-w: 258px;
  --bs-primary: #17676b;
  --bs-primary-rgb: 23, 103, 107;
  --bs-link-color: #17676b;
  --bs-link-color-rgb: 23, 103, 107;
  --bs-link-hover-color: #0f4a4d;
  --bs-body-font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: var(--pt-bg); color: var(--pt-text); font-size: .925rem; }
a { text-decoration: none; }
h1, h2, h3, .display-font { font-family: "Baloo 2", "Nunito", sans-serif; }
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--pt-primary); --bs-btn-border-color: var(--pt-primary); --bs-btn-hover-bg: var(--pt-primary-dark); --bs-btn-hover-border-color: var(--pt-primary-dark); --bs-btn-active-bg: var(--pt-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--pt-primary); --bs-btn-border-color: var(--pt-primary); --bs-btn-hover-bg: var(--pt-primary); --bs-btn-hover-border-color: var(--pt-primary); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--pt-border); --bs-btn-hover-bg: #f3f1ea; }
.text-bg-primary { background-color: var(--pt-primary) !important; }
.text-primary { color: var(--pt-primary) !important; }
.bg-primary { background-color: var(--pt-primary) !important; }
.form-control, .form-select { border-radius: 12px; border-color: #e5e1d8; }
.form-control:focus, .form-select:focus { border-color: #7fc4bf; box-shadow: 0 0 0 .2rem rgba(42, 138, 135, .18); }
.page-link { color: var(--pt-primary); border-radius: 8px; margin: 0 2px; }
.active > .page-link { background: var(--pt-primary); border-color: var(--pt-primary); }

/* ---------- Uygulama iskeleti ---------- */
.pt-shell { display: flex; min-height: 100vh; }
.pt-side { width: var(--side-w); flex-shrink: 0; background: radial-gradient(400px 300px at 0% 0%, #1b5c5e 0%, transparent 70%), var(--pt-side); color: #cfe3df; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 1030; }
.pt-brand { display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1.3rem 1rem; color: #fff; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.55rem; line-height: 1; }
.pt-brand:hover { color: #fff; }
.pt-brand .paw { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); flex-shrink: 0; }
.pt-brand .paw img { width: 46px; height: 46px; border-radius: 50%; }
.pt-brand small { display: block; font-family: "Nunito"; font-size: .68rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #e8c88c; margin-top: 3px; }
.pt-menu { flex: 1; overflow-y: auto; padding: .3rem .8rem 1rem; scrollbar-width: thin; scrollbar-color: #1f5550 transparent; }
.pt-menu .grp { font-size: .66rem; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; color: #86b3ae; padding: 1rem .7rem .4rem; }
.pt-menu .item { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 12px; color: #d6e8e4; font-weight: 700; margin-bottom: 2px; transition: background .15s, color .15s; }
.pt-menu .item > i:first-child { font-size: 1.08rem; width: 20px; text-align: center; opacity: .85; }
.pt-menu .item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.pt-menu .item.active { background: linear-gradient(90deg, rgba(196, 138, 53, .22), rgba(196, 138, 53, .05)); color: #fff; box-shadow: inset 3px 0 0 var(--pt-accent); }
.pt-menu .item.active > i:first-child { color: #e8c88c; opacity: 1; }
.pt-menu .chev { margin-left: auto; font-size: .72rem; transition: transform .2s; opacity: .6; }
.pt-menu .item.collapsed .chev { transform: rotate(-90deg); }
.pt-menu .cnt { margin-left: auto; background: var(--pt-accent); color: #fff; font-size: .66rem; border-radius: 20px; padding: 1px 7px; }
.pt-menu .cnt + .chev { margin-left: .35rem; }
.pt-menu .sub { padding: .15rem 0 .5rem 2.55rem; position: relative; }
.pt-menu .sub::before { content: ""; position: absolute; left: 1.42rem; top: 4px; bottom: 10px; width: 1px; background: #2b625c; }
.pt-menu .sub a { display: block; color: #a9c9c3; font-weight: 600; font-size: .86rem; padding: .32rem .5rem; border-radius: 8px; }
.pt-menu .sub a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.pt-side-site { margin: .6rem .9rem 1rem; padding: .7rem .9rem; border-radius: 14px; background: var(--pt-side-2); color: #d6e8e4; font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.pt-side-site:hover { color: #fff; background: #175650; }
.pt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-head { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .8rem 1.8rem; background: rgba(246, 244, 239, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pt-border); }
.pt-burger { display: none; border: 0; background: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 1.4rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.pt-search { flex: 1; max-width: 520px; position: relative; }
.pt-search input { border-radius: 14px; border: 1px solid var(--pt-border); padding: .6rem 2.6rem .6rem 2.5rem; background: #fff; }
.pt-search > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--pt-muted); }
.pt-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: #f3f1ea; color: var(--pt-muted); border: 1px solid var(--pt-border); font-size: .7rem; }
.pt-icon { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #374151; font-size: 1.15rem; background: #fff; border: 1px solid var(--pt-border); }
.pt-icon:hover { color: var(--pt-primary); border-color: #b6e5dc; }
.pt-icon .dot { position: absolute; top: -5px; right: -5px; background: var(--pt-accent); color: #fff; font-size: .6rem; font-weight: 900; border-radius: 10px; padding: 1px 5px; border: 2px solid var(--pt-bg); }
.pt-me { display: flex; align-items: center; gap: .6rem; padding: .3rem .6rem .3rem .3rem; border-radius: 14px; color: var(--pt-text); background: #fff; border: 1px solid var(--pt-border); }
.pt-me .avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #d6a253, #c48a35); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.pt-me small { display: block; color: var(--pt-muted); font-size: .72rem; }
.pt-drop { border: 0; border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 23, 42, .14); padding: .45rem; }
.pt-drop .dropdown-item { border-radius: 9px; padding: .5rem .75rem; font-weight: 600; }
.pt-content { padding: 0 1.8rem 1.5rem; flex: 1; }
.pt-content > .alert { margin-top: 1.2rem; }
.pt-foot { color: var(--pt-muted); font-size: .78rem; padding: 1rem 1.8rem 1.4rem; }
.pt-backdrop { display: none; }
@media (max-width: 991px) {
  .pt-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 40px rgba(0, 0, 0, .25); }
  body.side-open .pt-side { transform: none; }
  body.side-open .pt-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 1025; }
  .pt-burger { display: grid; place-items: center; }
  .pt-head, .pt-content { padding-left: 1rem; padding-right: 1rem; }
  .pt-search kbd { display: none; }
}
@media (max-width: 575px) { .pt-search { display: none; } }

/* ---------- Kartlar & ortak ---------- */
.card { border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: 0 1px 2px rgba(31, 41, 55, .04); }
.card-header { background: transparent; border-bottom: 1px solid var(--pt-border); font-weight: 800; padding: .95rem 1.15rem; }
.card-footer { border-top-color: var(--pt-border); border-radius: 0 0 var(--pt-radius) var(--pt-radius) !important; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1.1rem; }
.page-head h1 { font-size: 1.65rem; font-weight: 800; margin: 0; line-height: 1.1; }
.page-head .sub { color: var(--pt-muted); font-size: .9rem; }

/* Karşılama alanı */
.hello { position: relative; overflow: hidden; border-radius: 24px; padding: 1.7rem 1.9rem; margin-top: 1.5rem; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(253, 186, 116, .35), transparent 60%), linear-gradient(120deg, #0f4a4d, #17676b 60%, #22807b); }
.hello h1 { font-size: 2rem; font-weight: 800; margin: .15rem 0 .35rem; }
.hello .date { font-weight: 700; color: #a7f3d0; font-size: .85rem; letter-spacing: .3px; }
.hello p { margin: 0; color: #d1fae5; max-width: 520px; }
.hello .chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hello .chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: .45rem .8rem; font-weight: 700; font-size: .85rem; color: #fff; display: flex; align-items: center; gap: .45rem; }
.hello .chip:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hello .chip b { font-size: 1rem; }
.hello .money { position: relative; z-index: 1; display: flex; gap: .75rem; flex-wrap: wrap; }
.hello .money div { background: #fff; color: var(--pt-text); border-radius: 16px; padding: .75rem 1rem; min-width: 150px; }
.hello .money small { color: var(--pt-muted); font-weight: 700; font-size: .75rem; display: block; }
.hello .money b { font-size: 1.15rem; }
.hello .paws { position: absolute; right: -10px; bottom: -30px; font-size: 9rem; opacity: .07; transform: rotate(-18deg); pointer-events: none; }

/* Özet kartları */
.metric { background: #fff; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 1.1rem 1.2rem .6rem; height: 100%; display: flex; flex-direction: column; color: var(--pt-text); transition: transform .15s, box-shadow .15s; }
.metric:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 41, 55, .07); color: var(--pt-text); }
.metric .top { display: flex; align-items: center; justify-content: space-between; }
.metric .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; }
.metric .lbl { color: var(--pt-muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; }
.metric .val { font-family: "Baloo 2", sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin-top: .55rem; }
.metric .delta { font-size: .8rem; font-weight: 700; color: var(--pt-muted); }
.metric .delta .up { color: #059669; }
.metric .spark { height: 46px; margin-top: auto; position: relative; }

/* Hızlı işlemler */
.quick-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.qa { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px dashed #d8d2c5; border-radius: 14px; padding: .55rem .95rem .55rem .55rem; font-weight: 800; color: var(--pt-text); font-size: .86rem; transition: .15s; }
.qa i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.qa:hover { border-style: solid; border-color: var(--pt-primary); color: var(--pt-primary); box-shadow: 0 6px 16px rgba(23, 103, 107, .1); }

/* Panel kutuları (sekme kontrollü) */
.box { background: #fff; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); height: 100%; display: flex; flex-direction: column; }
.box-h { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--pt-border); flex-wrap: wrap; }
.box-h .t { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: .55rem; }
.box-h .t i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.box-h .more { margin-left: auto; font-weight: 800; font-size: .82rem; }
.seg { display: inline-flex; background: #f3f1ea; border-radius: 11px; padding: 3px; gap: 2px; }
.seg .tab { padding: .3rem .7rem; border-radius: 8px; font-weight: 800; font-size: .78rem; color: var(--pt-muted); cursor: pointer; white-space: nowrap; }
.seg .tab.active { background: #fff; color: var(--pt-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg .tab .n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e7e3d9; font-size: .68rem; margin-left: 3px; text-align: center; }
.seg .tab .n.red { background: #fee2e2; color: #b91c1c; }
.box-b { padding: .3rem 1.1rem .8rem; flex: 1; }

/* Renk yardımcıları */
.tint-teal { background: #d7ecea; color: #17676b; }
.tint-orange { background: #f5e8d2; color: #c2410c; }
.tint-pink { background: #fce7f3; color: #be185d; }
.tint-violet { background: #ede9fe; color: #6d28d9; }
.tint-blue { background: #e0f2fe; color: #0369a1; }
.tint-green { background: #dcfce7; color: #15803d; }
.tint-amber { background: #fef3c7; color: #b45309; }
.grad-teal { background: linear-gradient(135deg, #2a8a87, #17676b); }
.grad-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.grad-orange { background: linear-gradient(135deg, #e8c88c, #c48a35); }
.grad-pink { background: linear-gradient(135deg, #f9a8d4, #db2777); }
.grad-blue { background: linear-gradient(135deg, #7dd3fc, #0284c7); }
.grad-green { background: linear-gradient(135deg, #86efac, #16a34a); }

.list-row { display: flex; align-items: center; gap: .8rem; padding: .75rem .2rem; border-bottom: 1px dashed var(--pt-border); }
.list-row:last-child { border-bottom: 0; }
.pet-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; background: #fef3c7; }
.pet-avatar.lg { width: 84px; height: 84px; font-size: 2.6rem; border-radius: 26px; }
.time-pill { width: 58px; text-align: center; border-radius: 12px; background: #f3f1ea; padding: .35rem 0; line-height: 1.15; flex-shrink: 0; }
.time-pill b { display: block; font-size: 1rem; }
.time-pill small { color: var(--pt-muted); font-size: .7rem; font-weight: 700; }
.empty { text-align: center; color: var(--pt-muted); padding: 2rem 1rem; }
.empty i { font-size: 2.2rem; display: block; margin-bottom: .4rem; color: #b8b2a5; }
.empty .emo { font-size: 2.4rem; display: block; margin-bottom: .3rem; }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .75rem; border-color: var(--pt-border); }
.table thead th { font-size: .72rem; text-transform: uppercase; color: var(--pt-muted); font-weight: 800; letter-spacing: .4px; white-space: nowrap; }
.table-hover tbody tr:hover { --bs-table-hover-bg: #faf8f3; }

.kpi { padding: 1rem 1.2rem; border-radius: var(--pt-radius); background: #fff; border: 1px solid var(--pt-border); display: flex; gap: .9rem; align-items: center; height: 100%; }
.kpi .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.kpi .v { font-size: 1.3rem; font-weight: 900; line-height: 1.15; }
.kpi .l { color: var(--pt-muted); font-size: .78rem; font-weight: 800; }

.info-list dt { color: var(--pt-muted); font-weight: 700; font-size: .8rem; }
.info-list dd { font-weight: 600; }
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--pt-border); }
.timeline .item { position: relative; padding-bottom: 1rem; }
.timeline .item::before { content: ""; position: absolute; left: -1.4rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pt-primary); }

.nav-pills .nav-link { color: #4b5563; font-weight: 800; border-radius: 11px; }
.nav-pills .nav-link.active { background: var(--pt-primary); }
.badge-soft { background: var(--pt-primary-soft); color: var(--pt-primary-dark); font-weight: 700; }
.wa-bubble { background: #dcf8c6; border-radius: 14px 14px 14px 3px; padding: .6rem .8rem; white-space: pre-wrap; font-size: .85rem; max-width: 520px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid .d { background: #fff; min-height: 110px; border-radius: 12px; padding: 6px; font-size: .78rem; border: 1px solid var(--pt-border); }
.cal-grid .d.out { opacity: .45; }
.cal-grid .d.today { border: 2px solid var(--pt-accent); }
.cal-grid .d .n { font-weight: 800; }
.cal-grid .ev { display: block; background: var(--pt-primary-soft); color: var(--pt-primary-dark); border-radius: 7px; padding: 1px 6px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cal-grid .ev.talep { background: #fef3c7; color: #92400e; }
.cal-grid .ev.iptal { text-decoration: line-through; opacity: .6; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-weight: 800; color: var(--pt-muted); font-size: .75rem; text-transform: uppercase; margin-bottom: 5px; }
.sale-items td { vertical-align: middle; }
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0; }
.ts-control { border-radius: 12px; min-height: 38px; border-color: #e5e1d8; }
.chart-box { position: relative; height: 260px; }
@media print { .pt-side, .pt-head, .no-print, .pt-foot, #patikum-cat { display: none !important; } body { background: #fff; } .card { box-shadow: none; } .pt-content { padding: 0; } }
@media (max-width: 767px) { .cal-grid .d { min-height: 70px; } .hello { padding: 1.3rem; } .hello h1 { font-size: 1.5rem; } }

.hello .money .eye { align-self: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 1.15rem; }
.hello .money .eye:hover { background: rgba(255,255,255,.26); }
.hide-money .mv { filter: blur(8px); user-select: none; pointer-events: none; }
@media print { .hide-money .mv { visibility: hidden; } }
