/* Usta Çekirdek — yönetim stilleri */
.usta-wrap { max-width: 1180px; }
.usta-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.usta-intro { font-size: 14px; color: #3c434a; max-width: 820px; }
.usta-form { margin-top: 14px; }

.usta-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #c3c4c7; margin: 16px 0 0; }
.usta-tabs--box { margin: -6px -12px 14px; padding: 0 12px; background: #f6f7f7; }
.usta-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-size: 13px; font-weight: 600; color: #50575e; cursor: pointer; }
.usta-tab:hover { color: #1d2327; }
.usta-tab.is-active { color: #1d2327; border-bottom-color: var(--t, var(--usta-renk, #2271b1)); }
.usta-tab[style*="--t"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--t); margin-right: 6px; vertical-align: 1px; }
.usta-panel { display: none; }
.usta-panel.is-active { display: block; }
.usta-form .usta-panel { background: #fff; border: 1px solid #c3c4c7; border-top: 0; padding: 18px 20px 8px; }

.usta-fields { display: flex; flex-wrap: wrap; gap: 0 18px; }
.usta-field { flex: 1 1 100%; margin-bottom: 16px; min-width: 0; }
.usta-w-half { flex: 1 1 calc(50% - 18px); min-width: 220px; }
.usta-w-third { flex: 1 1 calc(33.33% - 18px); min-width: 180px; }
.usta-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.usta-input { width: 100%; max-width: 100%; }
textarea.usta-input { min-height: 60px; }
.usta-desc { color: #646970; font-size: 12px; margin: 5px 0 0; }
.usta-field-heading { flex: 1 1 100%; margin: 14px 0 8px; padding-top: 14px; border-top: 1px solid #e2e4e7; font-size: 14px; }
.usta-field-headdesc { flex: 1 1 100%; margin: -4px 0 12px; color: #646970; }
.usta-field-info { flex: 1 1 100%; background: #f0f6fc; border-left: 4px solid #72aee6; padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.usta-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.usta-checks { display: flex; flex-wrap: wrap; gap: 6px 0; }
.usta-warn { color: #8a2424; background: #fcf0f1; padding: 6px 8px; border-radius: 4px; font-size: 12px; }

.usta-color { display: flex; align-items: center; gap: 8px; }
.usta-color-pick { width: 40px; height: 32px; padding: 0; border: 1px solid #8c8f94; border-radius: 4px; }
.usta-color-text { width: 110px !important; }

.usta-media { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.usta-media-preview img { width: auto; max-width: 180px; height: 72px; object-fit: contain; background: #f6f7f7; padding: 2px; border-radius: 4px; border: 1px solid #dcdcde; display: block; }
.usta-media .usta-media-url { flex: 1 1 200px; }

.usta-repeater { border: 1px solid #dcdcde; border-radius: 6px; padding: 8px; background: #fbfbfc; }
.usta-row { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; margin-bottom: 8px; }
.usta-row-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.usta-row-toggle { flex: 1; text-align: left; background: none; border: 0; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.usta-row-num { color: #8c8f94; }
.usta-row-actions { display: flex; gap: 10px; font-size: 12px; }
.usta-row-remove { color: #b32d2e !important; }
.usta-row-body { display: none; padding: 12px 14px 0; border-top: 1px solid #f0f0f1; }
.usta-row.is-open .usta-row-body { display: flex; flex-wrap: wrap; gap: 0 18px; }
.usta-row-body > .usta-field { flex: 1 1 100%; }
.usta-row-body > .usta-w-half { flex: 1 1 calc(50% - 18px); }
.usta-row-body > .usta-w-third { flex: 1 1 calc(33.33% - 18px); }
.usta-drag { cursor: move; color: #8c8f94; }

.usta-posts-list, .usta-sections { margin: 0 0 8px; padding: 0; list-style: none; }
.usta-posts-list li, .usta-sections li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dcdcde; border-radius: 4px; padding: 7px 10px; margin-bottom: 4px; }
.usta-posts-list li .usta-posts-remove { margin-left: auto; font-size: 18px; color: #b32d2e; text-decoration: none; }
.usta-posts-add { max-width: 320px; }

.usta-hours th { text-align: left; padding: 4px 12px 4px 0; font-weight: 600; }
.usta-hours td { padding: 4px 12px 4px 0; }

.usta-savebar { position: sticky; bottom: 0; background: rgba(240,240,241,.95); padding: 12px 0; margin-top: 12px; z-index: 5; }

.usta-metabox .usta-panel { padding-top: 4px; }

/* Panolar */
.usta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.usta-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 16px; }
.usta-card b { display: block; font-size: 28px; line-height: 1.1; margin-top: 4px; }
.usta-card small { color: #646970; }
.usta-box { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 16px 18px; margin: 16px 0; }
.usta-box h2 { margin-top: 0; font-size: 16px; }
.usta-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.usta-chart { width: 100%; height: 160px; display: block; }
.usta-table { width: 100%; border-collapse: collapse; }
.usta-table th, .usta-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #f0f0f1; vertical-align: top; }
.usta-table th { font-weight: 600; color: #50575e; font-size: 12px; }
.usta-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f0f0f1; }
.usta-badge--yeni { background: #fcf9e8; color: #7a5c00; }
.usta-badge--arandi { background: #f0f6fc; color: var(--usta-renk-koyu, #135e96); }
.usta-badge--ulasilamadi { background: #fcf0f1; color: #8a2424; }
.usta-badge--musteri { background: #edfaef; color: #1a6d32; }
.usta-check-ok { color: #1a7f37; }
.usta-check-bad { color: #b32d2e; }
.usta-live { display: inline-flex; align-items: center; gap: 6px; }
.usta-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1a7f37; box-shadow: 0 0 0 3px rgba(26,127,55,.2); }

@media (max-width: 782px) {
	.usta-w-half, .usta-w-third, .usta-row-body > .usta-w-half, .usta-row-body > .usta-w-third { flex-basis: 100%; }
	.usta-table { display: block; overflow-x: auto; }
}
.usta-mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.55;white-space:pre}
.usta-w-two-thirds { flex: 1 1 calc(66.66% - 18px); min-width: 240px; }

/* Renk paleti kartları */
.usta-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.usta-pal { position: relative; display: block; border: 1px solid #dcdcde; border-radius: 10px; padding: 8px; background: #fff; cursor: pointer; }
.usta-pal input { position: absolute; opacity: 0; }
.usta-pal-sw { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; height: 38px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.usta-pal-sw i { display: block; }
.usta-pal-name { display: block; margin-top: 6px; font-weight: 600; font-size: 13px; }
.usta-pal:has(input:checked) { border-color: var(--usta-renk, #2271b1); box-shadow: 0 0 0 2px var(--usta-renk, #2271b1); }
.usta-pal:has(input:focus-visible) { outline: 2px solid var(--usta-renk, #2271b1); outline-offset: 2px; }
.usta-help-link{font-size:13px;font-weight:600;margin-left:10px;text-decoration:none;vertical-align:middle}.usta-help-link .dashicons{font-size:18px;width:18px;height:18px;vertical-align:-4px}

/* Küçük kopyala düğmesi (dosya adları) */
.usta-kopya-kucuk{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin-left:4px;padding:1px 4px;border:1px solid #c3c4c7;border-radius:4px;background:#fff;color:#2271b1;cursor:pointer;font-size:11px;line-height:1.6}
.usta-kopya-kucuk:hover,.usta-kopya-kucuk:focus{border-color:#2271b1;background:#f0f6fc}
.usta-kopya-kucuk .dashicons{width:14px;height:14px;font-size:14px}
.usta-kopya-kucuk.is-tamam{color:#1a7f37;border-color:#1a7f37}
