/* Toolbar button (components/filter.js .schedule-report) - highlighted when the
   current dashboard has at least one schedule configured (see
   scheduleReport.js UpdateScheduleIndicator/RefreshToolbarIndicator). */
.filter-menu-item.schedule-report.has-schedules i {
    color: #2e7d32;
}

/* "Scheduled reports" modal (components/scheduleReport.js) */

.scheduled-reports-modal .modal-dialog {
    max-width: 800px;
}

.scheduled-reports-modal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
}

/* Header */
.sr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #e3e6ea;
}

.sr-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.sr-title .sr-report-name {
    color: #5ba13a;
}

.sr-subtitle {
    font-size: 12.5px;
    color: #888;
    margin-top: 4px;
}

.sr-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sr-btn-add {
    padding: 9px 18px;
    border: 1px solid #1a7ff5;
    background: #fff;
    color: #1a7ff5;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
}

.sr-btn-add:hover {
    background: #eaf2fe;
}

.sr-btn-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #6c757d;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sr-btn-close:hover {
    background: #f1f3f5;
}

.sr-btn-back {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #222;
}

.sr-btn-back .sr-back-arrow {
    font-size: 18px;
    color: #6c757d;
}

/* List */
.sr-list-wrap {
    padding: 8px 28px 4px;
    max-height: 420px;
    overflow-y: auto;
}

.sr-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a939c;
    padding: 16px 12px 6px;
}

.sr-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sr-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
}

.sr-row:hover {
    background: #f6f8fa;
}

/* Col 1: pause toggle */
.sr-toggle {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 10px;
    background: #cfd6de;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease;
}

.sr-toggle.on {
    background: #1a7ff5;
}

.sr-toggle .sr-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s ease;
}

.sr-toggle.on .sr-toggle-knob {
    left: 16px;
}

/* Col 2: name + recipients */
.sr-info {
    min-width: 0;
}

.sr-info-line1 {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-row.disabled .sr-info-line1 .sr-name {
    color: #999;
}

.sr-info-line1 .sr-meta {
    font-weight: 400;
    color: #888;
}

.sr-info-line2 {
    font-size: 12.5px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Col 3: actions */
.sr-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.sr-actions button {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}

.sr-btn-edit {
    color: #1a7ff5;
}

.sr-btn-edit:hover {
    background: #eaf2fe;
}

.sr-btn-delete {
    color: #e04b4b;
}

.sr-btn-delete:hover {
    background: #fdeeee;
}

.sr-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.sr-btn-confirm-delete {
    background: #e04b4b;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.sr-btn-confirm-delete:hover {
    background: #c93f3f;
}

.sr-btn-cancel-delete {
    background: none;
    border: none;
    color: #555;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.sr-btn-cancel-delete:hover {
    background: #f1f3f5;
}

/* Empty state */
.sr-empty {
    text-align: center;
    padding: 48px 20px;
    color: #666;
    font-size: 14px;
}

.sr-empty .sr-btn-add {
    margin-top: 16px;
}

/* Footer */
.sr-footer {
    display: flex;
    justify-content: flex-end;
    padding: 18px 28px 22px;
    margin-top: 12px;
    border-top: 1px solid #e3e6ea;
}

.sr-btn-footer-close {
    background: #6c757d;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 26px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.sr-btn-footer-close:hover {
    background: #5a6268;
}

.sr-btn-primary {
    background: #1a7ff5;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 26px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.sr-btn-primary:hover {
    background: #1670da;
}

.sr-btn-secondary {
    background: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-right: 8px;
}

.sr-btn-secondary:hover {
    background: #f1f3f5;
}

/* Form (add/edit step) */
.sr-form-body {
    padding: 20px 28px;
}

.sr-filters-summary {
    background: #f6f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.sr-filters-summary-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a939c;
    margin-bottom: 8px;
}

.sr-filters-summary-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 3px 0;
}

.sr-filters-summary-label {
    flex: 0 0 150px;
    color: #666;
}

.sr-filters-summary-value {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.sr-filters-summary-empty {
    font-size: 13px;
    color: #888;
}

.sr-filters-summary-caption {
    font-size: 11.5px;
    color: #999;
    font-style: italic;
    margin-top: 8px;
}
