/* CRM hayvan formu ve açılır pencere (site) */
/* Ödeme sayfası Bootstrap kullanmıyor; genişlik hesabı her yerde aynı olsun */
.crm-pm, .crm-pm *, .crm-pf, .crm-pf * { box-sizing: border-box; }
.crm-pf-intro { color: #707070; font-size: 13px; margin: 0 0 12px; }
.crm-pf-pet { margin-bottom: 6px; }
.crm-pf-pet + .crm-pf-pet { border-top: 1px dashed #ddd; padding-top: 12px; margin-top: 6px; }
.crm-pf-pet-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; color: #333; margin-bottom: 8px; }
.crm-pf-remove, .crm-pf-add { background: none; border: 0; padding: 0; color: #1773b0; font-size: 13px; cursor: pointer; text-decoration: underline; }
.crm-pf-remove { color: #c0392b; }
.crm-pf-add { margin: 4px 0 6px; }
.crm-pf label small { font-weight: normal; color: #999; }

/* Üyelik sayfası (Bootstrap) uyumları */
.crm-pf-bs .has-error .form-control { border-color: #c0392b; }
.crm-pf-bs .text-danger { color: #c0392b; font-size: 12px; margin-top: 4px; }
.crm-pf-bs .checkbox { padding-left: 0; margin-top: 0; }
.crm-pf-bs .checkbox label { padding-left: 0; display: inline-flex; align-items: center; gap: 8px; }
.crm-pf-bs .checkbox input[type="checkbox"] { position: static; margin: 0; }

/* Ödeme sayfası (sc-field) uyumları */
.crm-pf-sc .crm-pf-sc-field input[type="date"] { padding-top: 20px; }
.crm-pf-sc .crm-pf-sc-field input[type="date"] + label { top: 8px; transform: none; font-size: 11px; color: #707070; }
.crm-pf-sc .sc-check { margin-bottom: 12px; }

/* Pencere ve Hayvanlarım sayfası */
.crm-pf-row { display: grid; gap: 10px 12px; margin-bottom: 10px; }
.crm-pf-cols-2 { grid-template-columns: 1fr 1fr; }
.crm-pf-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.crm-pf-field label { display: block; font-size: 12px; font-weight: 600; color: #444; margin: 0 0 4px; }
.crm-pf-field .crm-pf-req { color: #c0392b; }
.crm-pf-field input, .crm-pf-field select { width: 100%; height: 42px; padding: 8px 11px; border: 1px solid #d1d1d1; border-radius: 8px; font-size: 14px; background: #fff; color: #1a1a1a; font-family: inherit; box-shadow: none; outline: none; transition: border-color .15s; }
.crm-pf-field input:focus, .crm-pf-field select:focus { border-color: #111; box-shadow: 0 0 0 1px #111; }
.crm-pf-field .crm-pf-error { display: none; color: #c0392b; font-size: 12px; margin-top: 3px; }
.crm-pf-field.has-error input, .crm-pf-field.has-error select { border-color: #c0392b; }
.crm-pf-field.has-error .crm-pf-error { display: block; }
.crm-pf-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: normal; color: #444; margin: 0 0 12px; cursor: pointer; }
.crm-pf-check input { width: 16px; height: 16px; margin: 0; accent-color: #111; }

.crm-pm { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.crm-pm-box { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; padding: 28px 28px 22px; color: #1a1a1a; font-size: 14px; line-height: 1.45; text-align: left; }
.crm-pm-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; color: #999; cursor: pointer; padding: 4px; }
.crm-pm-close:hover { color: #111; }
.crm-pm-icon { width: 52px; height: 52px; border-radius: 50%; background: #f3f3f3; color: #111; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.crm-pm-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #111; }
.crm-pm-info { color: #555; margin: 0 0 18px; }
.crm-pm-alert { display: none; background: #fdecea; color: #a33a37; border-radius: 8px; padding: 9px 12px; margin: 4px 0 12px; font-size: 13px; }
.crm-pm-buttons { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.crm-pm-btn { background: #111; color: #fff; border: 0; border-radius: 8px; padding: 12px 26px; font-size: 14px; font-weight: 600; cursor: pointer; }
.crm-pm-btn:hover { background: #333; }
.crm-pm-btn[disabled] { opacity: .6; cursor: default; }
.crm-pm-link { background: none; border: 0; padding: 0; color: #666; font-size: 14px; cursor: pointer; text-decoration: underline; }
.crm-pm-done { text-align: center; font-size: 16px; font-weight: 600; color: #2b7a47; padding: 30px 0 10px; }
html.crm-pm-open, html.crm-pm-open body { overflow: hidden; }

@media (max-width: 600px) {
	.crm-pf-cols-2, .crm-pf-cols-3 { grid-template-columns: 1fr; }
	.crm-pm { padding: 0; align-items: flex-end; }
	.crm-pm-box { border-radius: 14px 14px 0 0; max-height: 94vh; padding: 22px 16px 18px; }
	.crm-pm-buttons { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}

/* Hayvanlarım sayfası */
.crm-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.crm-pet-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); padding: 18px; display: flex; gap: 14px; border: 2px solid transparent; }
.crm-pet-card.active { border-color: #111; }
.crm-pet-avatar { width: 46px; height: 46px; border-radius: 50%; background: #f3f3f3; color: #111; display: flex; align-items: center; justify-content: center; flex: none; font-size: 20px; }
.crm-pet-card h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.crm-pet-card .crm-pet-meta { color: #666; font-size: 13px; }
.crm-pet-card .crm-pet-note { margin-top: 6px; font-size: 12px; color: #94680c; background: #fcf2dc; border-radius: 6px; padding: 3px 8px; display: inline-block; }
.crm-pet-actions { margin-top: 10px; display: flex; gap: 14px; font-size: 13px; }
.crm-pet-actions a, .crm-pet-actions button { background: none; border: 0; padding: 0; color: #1773b0; cursor: pointer; text-decoration: underline; font-size: 13px; }
.crm-pet-actions button { color: #c0392b; }
.crm-pet-empty { color: #666; background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.crm-pet-form-box .crm-pm-buttons { margin-top: 14px; }
