/* 短信日报周报 公共样式（在 layui 基础上只做少量布局补充） */
body {
    background: #f2f2f2;
    margin: 0;
    font-size: 14px;
}

.sr-header {
    height: 56px;
    line-height: 56px;
    background: #20222a;
    color: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.sr-brand {
    font-size: 16px;
    font-weight: 600;
    margin-right: 28px;
    white-space: nowrap;
}

.sr-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.sr-nav a {
    color: #c9ccd6;
    padding: 0 14px;
    height: 56px;
    display: inline-block;
    text-decoration: none;
}

.sr-nav a:hover {
    color: #fff;
}

.sr-nav a.active {
    color: #fff;
    background: #009688;
}

.sr-main {
    padding: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.sr-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    padding: 16px;
    margin-bottom: 16px;
}

.sr-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 3px solid #009688;
    line-height: 16px;
}

.sr-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sr-stat {
    flex: 1 1 200px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 14px 16px;
    background: #fbfbfb;
}

.sr-stat .label {
    color: #888;
    font-size: 13px;
}

.sr-stat .value {
    font-size: 22px;
    font-weight: 600;
    margin-top: 6px;
    word-break: break-all;
}

.sr-stat .sub {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.sr-ok { color: #16b777; }
.sr-warn { color: #ff9800; }
.sr-err { color: #f5222d; }
.sr-muted { color: #999; }

.sr-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sr-toolbar .grow { flex: 1; }

.sr-content-box {
    background: #fafafa;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
    font-size: 13px;
    max-height: 300px;
    overflow: auto;
}

.sr-hidden { display: none !important; }

.sr-pager {
    text-align: right;
    margin-top: 12px;
}

.sr-tag {
    display: inline-block;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
    font-size: 12px;
    background: #eef1f6;
    color: #555;
}

.sr-tag.green { background: #e8f7ef; color: #16b777; }
.sr-tag.orange { background: #fff4e6; color: #ff9800; }
.sr-tag.red { background: #fdecec; color: #f5222d; }

.sr-form-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px 16px;
    align-items: center;
}

.sr-form-grid .full {
    grid-column: 1 / -1;
}

.sr-field-label {
    text-align: right;
    color: #666;
}

.sr-field-label em {
    color: #f5222d;
    font-style: normal;
    margin-right: 3px;
}

.sr-help {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

textarea.sr-textarea {
    min-height: 82px;
    resize: vertical;
}

/* 今日情况时间线 */
.sr-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sr-card-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sr-timeline {
    padding-top: 4px;
}

.sr-tl-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.sr-tl-item:last-child {
    border-bottom: none;
}

.sr-tl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c2c2c2;
    margin-top: 7px;
    flex: 0 0 auto;
}

.sr-tl-dot.ok { background: #16b777; }
.sr-tl-dot.warn { background: #ffb800; }
.sr-tl-dot.err { background: #ff5722; }
.sr-tl-dot.muted { background: #c2c2c2; }

.sr-tl-main { flex: 1; }

.sr-tl-title {
    font-weight: 600;
    color: #333;
}

.sr-tl-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    background: #f2f2f2;
    color: #666;
}

.sr-tl-badge.ok { background: #e8f8f0; color: #16b777; }
.sr-tl-badge.warn { background: #fff8e6; color: #d99600; }
.sr-tl-badge.err { background: #ffede8; color: #ff5722; }

.sr-tl-sub {
    color: #777;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.6;
}
