/* Bildirim ayarları — mobil öncelik; masaüstü de okunaklı */
.ztv-push-settings {
    max-width: 640px;
    margin: 0 auto 16px;
    padding: 0 4px 12px;
    box-sizing: border-box;
}
.ztv-push-heading {
    margin: 0 0 8px;
    font-size: 16px;
    color: #3d5c12;
}
.ztv-push-lead {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #555;
}
.ztv-push-premium {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -4px 0 14px;
    padding: 8px 10px;
    border: 1px solid #c9b87a;
    background: #f7f1de;
    color: #3d3418;
    font-size: 12px;
    line-height: 1.4;
    box-sizing: border-box;
}
.ztv-push-premium-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    background: #6b5a1e;
    color: #f7f1de;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}
.ztv-push-premium-text {
    margin: 0;
    flex: 1 1 auto;
}
.ztv-push-card {
    background: #faf8f4;
    border: 1px solid #d8d0c0;
    border-radius: 6px;
    padding: 12px 14px 14px;
    margin-bottom: 12px;
}
.ztv-push-card h5 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #5a8f1a;
}
.ztv-push-sub {
    margin-top: 14px !important;
}
.ztv-push-meta {
    font-size: 12px;
    margin: 0 0 10px;
}
.ztv-push-warn {
    font-size: 11px;
    color: #8a5a00;
    background: #fff3d6;
    padding: 8px;
    border-radius: 4px;
}
.ztv-push-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.ztv-push-actions button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}
.ztv-push-hint {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #666;
}
.ztv-push-btn-primary {
    background: #71d000 !important;
    background: linear-gradient(to bottom, #9fdf3a 0%, #71d000 100%) !important;
    color: #2c4a00 !important;
    border: 1px solid #5a8f1a !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.ztv-push-btn-secondary {
    background: #e8e2d4 !important;
    color: #333 !important;
    border: 1px solid #c9c1a4 !important;
}
.ztv-push-status {
    margin: 10px 0 0;
    font-size: 12px;
    min-height: 1.2em;
}
.ztv-push-status.ok { color: #3d5c12; }
.ztv-push-status.err { color: #8b1a1a; }
.ztv-push-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}
.ztv-push-check input {
    margin-top: 2px;
    flex: 0 0 auto;
}
.ztv-push-check--master {
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #d8d0c0;
}
.ztv-push-types {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}
.ztv-push-plat-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 12px;
    border: 1px solid #d8d0c0;
    border-radius: 4px;
    overflow: hidden;
    background: #fbf8f0;
}
.ztv-push-plat-grid-head,
.ztv-push-plat-grid-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px 64px;
    align-items: center;
    gap: 4px;
    padding: 8px 8px;
    border-bottom: 1px solid #e6dfd0;
}
.ztv-push-plat-grid-row:last-child {
    border-bottom: 0;
}
.ztv-push-plat-grid-head {
    background: #efe8d6;
    font-weight: bold;
    font-size: 12px;
}
.ztv-push-plat-grid-row--master {
    background: #f3eee0;
    font-weight: bold;
}
.ztv-push-plat-grid-label {
    font-size: 12px;
    line-height: 1.3;
    color: #333;
    padding-right: 4px;
}
.ztv-push-plat-col,
.ztv-push-plat-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
    font-size: 11px;
}
.ztv-push-plat-cell input {
    width: 18px;
    height: 18px;
    margin: 0;
}
.ztv-push-plat-cell.is-locked input {
    opacity: 0.4;
}
.ztv-push-mandatory-hint {
    margin-top: 0;
    margin-bottom: 12px;
}
.ztv-push-platform-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
}
.ztv-push-plat-tab {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #c9c1a4;
    background: #f3eee0;
    color: #444;
    cursor: pointer;
    border-radius: 4px;
}
.ztv-push-plat-tab.is-active {
    background: #71b32e;
    border-color: #5a9420;
    color: #fff;
    font-weight: bold;
}
.ztv-push-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 10px;
    font-size: 12px;
}
.ztv-push-field input[type="number"],
.ztv-push-field input[type="time"] {
    max-width: 140px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #c9c1a4;
    border-radius: 4px;
}
.ztv-push-quiet-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ztv-push-btn-danger {
    background: #8a2f1a !important;
    color: #fff !important;
    border: 1px solid #6a2010 !important;
}
.ztv-push-mute-card .ztv-push-mute-add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin: 8px 0 10px;
}
.ztv-push-mute-card .ztv-push-mute-add .ztv-push-field {
    flex: 1 1 160px;
    margin: 0;
}
.ztv-push-mute-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ztv-push-mute-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ztv-push-mute-list li:last-child {
    border-bottom: 0;
}
.ztv-push-mute-name {
    font-weight: 600;
}
.ztv-push-mute-empty {
    opacity: 0.75;
    font-style: italic;
    justify-content: flex-start !important;
}
.ztv-push-mute-remove {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #8a2f1a;
    background: #fff;
    color: #8a2f1a;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    min-height: 30px;
}
.ztv-push-log-card .ztv-push-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.ztv-push-log-card .ztv-push-log-head h5 {
    margin: 0;
}
.ztv-push-log-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #d8d0c0;
    border-radius: 4px;
    background: #fff;
}
.ztv-push-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.ztv-push-log-table th,
.ztv-push-log-table td {
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ece6d8;
    word-break: break-word;
}
.ztv-push-log-table th {
    background: #f3eee3;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 700;
    color: #3d5c12;
}
.ztv-push-log-sent td:nth-child(3) {
    color: #2f6b12;
    font-weight: 700;
}
.ztv-push-log-skipped td:nth-child(3) {
    color: #8a5a00;
}
.ztv-push-log-failed td:nth-child(3),
.ztv-push-log-partial td:nth-child(3) {
    color: #8a2f1a;
    font-weight: 700;
}
.ztv-push-log-empty td {
    color: #777;
    font-style: italic;
}

@media screen and (max-width: 980px) {
    html.ztv-m .ztv-push-settings {
        padding: 0 2px 16px;
    }
    html.ztv-m .ztv-push-actions button {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }
    html.ztv-m .ztv-push-check {
        min-height: 36px;
        align-items: center;
    }
    html.ztv-m .ztv-push-platform-tabs {
        gap: 8px;
        margin-bottom: 14px;
    }
    html.ztv-m .ztv-push-plat-tab {
        min-height: 42px;
        font-size: 14px;
    }
    html.ztv-m .ztv-push-plat-grid-head,
    html.ztv-m .ztv-push-plat-grid-row {
        grid-template-columns: minmax(0, 1fr) 52px 60px;
        padding: 10px 8px;
        min-height: 40px;
    }
    html.ztv-m .ztv-push-plat-grid-label {
        font-size: 13px;
    }
    html.ztv-m .ztv-push-plat-cell input {
        width: 20px;
        height: 20px;
    }
    html.ztv-m .ztv-push-premium {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }
    html.ztv-m .ztv-push-mute-add {
        flex-direction: column;
        align-items: stretch;
    }
    html.ztv-m .ztv-push-mute-add .green {
        width: 100%;
        min-height: 40px;
    }
    html.ztv-m .ztv-push-mute-list li {
        min-height: 40px;
        padding: 8px 0;
    }
    html.ztv-m .ztv-push-mute-remove {
        min-height: 36px;
        padding: 6px 12px;
    }

    /* Login sonrası: Ana ekrana ekle bandı (yalnızca mobil + PWA yok) */
    html.ztv-m .ztv-pwa-install-banner {
        position: sticky;
        top: 0;
        z-index: 10120;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 8px;
        background: linear-gradient(180deg, #4a7214 0%, #3d5c12 100%);
        border-bottom: 1px solid #2f4a0e;
        color: #f7f4ea;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    }
    html.ztv-m .ztv-pwa-banner-icon {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #fff;
        object-fit: cover;
    }
    html.ztv-m .ztv-pwa-banner-body {
        flex: 1 1 140px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    html.ztv-m .ztv-pwa-banner-title {
        font-size: 13px;
        line-height: 1.25;
        font-weight: 700;
    }
    html.ztv-m .ztv-pwa-banner-text {
        font-size: 11px;
        line-height: 1.35;
        opacity: 0.92;
    }
    html.ztv-m .ztv-pwa-banner-actions {
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        gap: 6px;
        margin-left: auto;
    }
    html.ztv-m .ztv-pwa-banner-btn {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        border-radius: 5px;
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        cursor: pointer;
        min-height: 34px;
    }
    html.ztv-m .ztv-pwa-banner-btn--ok {
        background: #f0e6c8;
        color: #2f4a0e;
    }
    html.ztv-m .ztv-pwa-banner-btn--cancel {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.35);
    }
    html.ztv-m .ztv-pwa-banner-ios {
        flex: 1 1 100%;
        margin: 0;
        padding: 6px 8px;
        font-size: 11px;
        line-height: 1.4;
        background: rgba(0, 0, 0, 0.18);
        border-radius: 4px;
        color: #fff8e6;
    }
}

/* Masaüstünde banner yok */
.ztv-pwa-install-banner {
    display: none;
}
