/**
 * 页面专属样式：shift-schedule
 * 作用域：body.page-shift-schedule
 * 2026-11-11 新增（S3 日子与家庭）。只在该页面加载。
 * 新增同类样式请写进本文件，不要退回 components.css。
 */
/* ===== 页面样式：shift-schedule（2026-11-11 新增） ===== */
body.page-shift-schedule .container {
    margin: 0 auto;
    padding: 2.5rem 2rem 1rem;
}

body.page-shift-schedule .page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.page-shift-schedule .page-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

body.page-shift-schedule .card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-sm);
}

body.page-shift-schedule .section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

body.page-shift-schedule .form-block {
    margin-bottom: 1.25rem;
}

body.page-shift-schedule .block-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

body.page-shift-schedule .people-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

body.page-shift-schedule .person-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

body.page-shift-schedule .person-row input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-dark);
}

body.page-shift-schedule .person-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 40, 30, 0.08);
}

body.page-shift-schedule .person-del {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.page-shift-schedule .person-del:hover {
    color: var(--primary);
    border-color: var(--primary);
}

body.page-shift-schedule .btn-ghost {
    padding: 0.55rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.page-shift-schedule .btn-ghost:hover {
    background: rgba(192, 40, 30, 0.05);
}

body.page-shift-schedule .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

body.page-shift-schedule .form-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.page-shift-schedule .form-item label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

body.page-shift-schedule .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

body.page-shift-schedule .input-wrap input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-dark);
    transition: border-color 0.25s, box-shadow 0.25s;
}

body.page-shift-schedule .input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 40, 30, 0.08);
}

body.page-shift-schedule .mode-toggle {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

body.page-shift-schedule .mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.page-shift-schedule .mode-pill input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

body.page-shift-schedule .mode-pill:has(input:checked) {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

body.page-shift-schedule .weekly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

body.page-shift-schedule .weekly-grid[hidden] {
    display: none;
}

body.page-shift-schedule .weekly-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

body.page-shift-schedule .weekly-item label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

body.page-shift-schedule .weekly-item select {
    flex: 1;
    max-width: 9rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text-dark);
}

body.page-shift-schedule .checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

body.page-shift-schedule .checkbox-line input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

body.page-shift-schedule .btn {
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

body.page-shift-schedule .btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

body.page-shift-schedule .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px var(--shadow-md);
}

body.page-shift-schedule .btn-primary:active {
    transform: scale(0.98);
}

body.page-shift-schedule .btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

body.page-shift-schedule .btn-secondary:hover:not(:disabled) {
    color: var(--primary);
    border-color: var(--primary);
}

body.page-shift-schedule .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.page-shift-schedule .error-tip {
    display: none;
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 0.6rem;
    text-align: center;
}

body.page-shift-schedule .error-tip.visible {
    display: block;
}

body.page-shift-schedule .result-panel {
    display: none;
}

body.page-shift-schedule .result-panel.visible {
    display: block;
}

body.page-shift-schedule .range-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0.6rem 0.9rem;
    background: rgba(184, 132, 46, 0.08);
    border-radius: 8px;
}

body.page-shift-schedule .table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

body.page-shift-schedule .schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

body.page-shift-schedule .schedule-table th {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.7rem 0.6rem;
    text-align: left;
    white-space: nowrap;
}

body.page-shift-schedule .schedule-table td {
    padding: 0.6rem 0.6rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-dark);
}

body.page-shift-schedule .schedule-table .col-idx {
    width: 3rem;
    color: var(--text-light);
    text-align: center;
}

body.page-shift-schedule .schedule-table .col-week {
    width: 4rem;
}

body.page-shift-schedule .schedule-table .col-person {
    font-weight: 600;
    color: var(--primary);
}

body.page-shift-schedule .schedule-table tr.row-rest td {
    color: var(--text-light);
}

body.page-shift-schedule .schedule-table tr.row-rest .col-person {
    color: var(--text-light);
    font-weight: 400;
}

body.page-shift-schedule .count-summary {
    margin-top: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.7rem 0.9rem;
    background: rgba(192, 40, 30, 0.04);
    border-radius: 8px;
}

body.page-shift-schedule .actions-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

body.page-shift-schedule .actions-row .btn {
    flex: 1;
}

body.page-shift-schedule .info-box {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-light);
    background: rgba(184, 132, 46, 0.08);
    border-left: 3px solid var(--secondary);
    border-radius: 0 8px 8px 0;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}

body.page-shift-schedule .copy-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%) translateY(1rem);
    background: var(--text-dark);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
}

body.page-shift-schedule .copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
