Files
dbx-corm/static/css/cs_records.css
T
king d2fdec5c43 feat: v9.1 업그레이드 — CS 기록 메뉴 + 반품 목록 검색 + 구글 연동 안정화
원본(CS 통합 프로그램 v9.1, 2026.09.03)을 서버판에 병합. 서버용 개조는 유지:
SSO(AuthGuard·SessionMiddleware), /corm 서브경로(root_path·APP_BASE_PATH),
X-Service-Token, /health/db, 환경변수 DB 설정, cafe24/naver 키 환경변수.

- CS 기록 메뉴(routers/cs_records.py, cs_records.js/css): 달력별 기록·완료·복사·
  다음 업무일 이월, 상시 메모(폴더·색), 일정, 엑셀 내려받기/업로드.
  표는 itemcode_db 에 자동 생성(CREATE TABLE IF NOT EXISTS). DB 설정은 원본의
  하드코딩 대신 CS_RECORD_DB_* → POSTGRES_*/ITEMCODE_DB 환경변수.
- New CS 누락·파손·불량·오배송 발주 → CS 기록 자동 저장.
- 반품 신청/입고 목록: 최근 3개월 기본, 전체 보기, 원송장번호 전체 검색.
- google_runtime.py: 구글 호출 시간 제한·전용 작업 슬롯, 설정 시트 스냅샷 캐시
  (예전 10분 인메모리 캐시와 /api/config/refresh 대체), 설정 저장 한 번에 원자적으로.
- 밀크런: 탭을 열 때만 구글 시트 조회.
- 자동발주 메뉴는 원본처럼 막지 않고 그대로 둠, 엑셀 내려받기 링크도 /corm 경로.
- requirements: holidays 추가. tests/test_google_resilience.py(서비스 토큰으로 SSO 통과).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:07:53 +09:00

1602 lines
27 KiB
CSS

.cs-record-tab {
min-height: 0;
color: #1f2937;
}
.cs-record-tab.active {
display: block;
overflow: auto;
}
.cs-record-layout {
display: grid;
grid-template-columns: 270px 600px minmax(0, 1fr);
gap: 12px;
height: 100%;
min-height: 0;
min-width: 0;
}
.cs-calendar-card,
.cs-record-card,
.cs-permanent-card {
background: rgba(255, 255, 255, 0.96);
border: 1px solid rgba(203, 213, 224, 0.9);
border-radius: 14px;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}
.cs-calendar-card {
display: flex;
align-self: stretch;
width: 270px;
min-height: 0;
flex-direction: column;
padding: 12px;
}
.cs-calendar-header {
display: grid;
grid-template-columns: 30px 1fr 30px;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.cs-calendar-header h2 {
margin: 0;
color: #1e293b;
font-size: 0.92rem;
text-align: center;
}
.cs-icon-button {
width: 30px;
height: 30px;
border: 1px solid #dbe3ed;
border-radius: 9px;
background: #f8fafc;
color: #334155;
font-size: 1.3rem;
line-height: 1;
cursor: pointer;
}
.cs-icon-button:hover {
background: #e8f1fb;
color: #2563eb;
}
.cs-calendar-weekdays,
.cs-calendar-grid {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 4px;
}
.cs-calendar-weekdays {
margin-bottom: 5px;
color: #64748b;
font-size: 0.86rem;
font-weight: 800;
text-align: center;
}
.cs-calendar-weekdays span:first-child,
.cs-calendar-day.sunday {
color: #dc2626;
}
.cs-calendar-weekdays span:last-child,
.cs-calendar-day.saturday {
color: #2563eb;
}
.cs-calendar-blank,
.cs-calendar-day {
aspect-ratio: 1;
min-width: 0;
}
.cs-calendar-day {
position: relative;
display: grid;
place-items: center;
border: 1px solid transparent;
border-radius: 9px;
background: transparent;
color: #334155;
font-size: 0.86rem;
cursor: pointer;
}
.cs-calendar-day:hover {
background: #eff6ff;
border-color: #bfdbfe;
}
.cs-calendar-day.today {
border-color: #94a3b8;
font-weight: 700;
}
.cs-calendar-day.selected {
background: #2563eb;
border-color: #2563eb;
color: #fff;
font-weight: 700;
}
.cs-calendar-day.holiday:not(.selected) {
background: #fff1f2;
color: #dc2626;
font-weight: 800;
}
.cs-calendar-day.has-record::after {
content: "";
position: absolute;
bottom: 4px;
width: 5px;
height: 5px;
border-radius: 50%;
background: #10b981;
}
.cs-calendar-day.has-incomplete::after {
background: #f97316;
}
.cs-calendar-day.selected::after {
background: #fff;
}
.cs-calendar-schedule-marker {
position: absolute;
top: 3px;
right: 3px;
width: 6px;
height: 6px;
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 50%;
background: #7c3aed;
box-shadow: 0 1px 2px rgba(76, 29, 149, 0.3);
}
.cs-calendar-day.selected .cs-calendar-schedule-marker {
background: #f5d0fe;
border-color: #fff;
}
.cs-calendar-legend {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 19px;
color: #64748b;
font-size: 0.65rem;
}
.cs-calendar-legend span {
display: inline-flex;
align-items: center;
gap: 5px;
}
.cs-legend-dot {
width: 7px;
height: 7px;
border-radius: 50%;
}
.cs-legend-dot.has-record {
background: #10b981;
}
.cs-legend-dot.incomplete {
background: #f97316;
}
.cs-legend-dot.holiday {
background: #dc2626;
}
.cs-legend-dot.schedule {
background: #7c3aed;
}
.cs-schedule-panel {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #e2e8f0;
}
.cs-schedule-primary-actions {
display: grid;
grid-template-columns: minmax(0, 1fr) 40px;
gap: 7px;
}
.cs-schedule-add-button {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
width: 100%;
padding: 10px 12px;
border: 0;
border-radius: 9px;
background: linear-gradient(135deg, #6d28d9, #7c3aed);
box-shadow: 0 5px 12px rgba(109, 40, 217, 0.2);
color: #fff;
font-size: 0.82rem;
font-weight: 800;
cursor: pointer;
}
.cs-schedule-add-button span {
font-size: 1rem;
line-height: 1;
}
.cs-schedule-settings-button {
display: grid;
width: 40px;
min-width: 40px;
place-items: center;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
color: #475569;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
}
.cs-schedule-settings-button:hover {
transform: scale(1.08);
}
.cs-schedule-add-button:hover {
background: linear-gradient(135deg, #5b21b6, #6d28d9);
transform: translateY(-1px);
}
.cs-schedule-list-header {
display: flex;
align-items: center;
justify-content: space-between;
margin: 13px 2px 7px;
}
.cs-schedule-list-header h3 {
margin: 0;
color: #1e293b;
font-size: 0.76rem;
}
.cs-schedule-list-header span {
padding: 2px 7px;
border-radius: 999px;
background: #f1f5f9;
color: #64748b;
font-size: 0.62rem;
font-weight: 700;
}
.cs-schedule-list {
min-height: 0;
flex: 1;
overflow-y: auto;
padding-right: 2px;
scrollbar-width: thin;
scrollbar-color: #c4b5fd transparent;
}
.cs-schedule-empty {
display: flex;
align-items: center;
flex-direction: column;
padding: 18px 8px;
border: 1px dashed #d8b4fe;
border-radius: 9px;
background: #faf5ff;
color: #64748b;
text-align: center;
}
.cs-schedule-empty > span {
margin-bottom: 4px;
font-size: 1.2rem;
}
.cs-schedule-empty strong {
color: #475569;
font-size: 0.7rem;
}
.cs-schedule-empty small {
margin-top: 3px;
font-size: 0.58rem;
}
.cs-schedule-day {
margin-bottom: 8px;
overflow: hidden;
border: 1px solid #e2e8f0;
border-radius: 9px;
background: #fff;
}
.cs-schedule-day.selected {
border-color: #c4b5fd;
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.09);
}
.cs-schedule-day-heading {
display: flex;
align-items: center;
width: 100%;
padding: 7px 8px;
border: 0;
border-bottom: 1px solid #f1f5f9;
background: #f8fafc;
color: #334155;
text-align: left;
cursor: pointer;
}
.cs-schedule-day.selected .cs-schedule-day-heading {
background: #f5f3ff;
}
.cs-schedule-date-number {
display: grid;
flex: 0 0 auto;
width: 29px;
height: 29px;
place-items: center;
border-radius: 8px;
background: #ede9fe;
color: #6d28d9;
font-size: 0.82rem;
font-weight: 900;
}
.cs-schedule-date-details {
display: flex;
min-width: 0;
flex-direction: column;
margin-left: 8px;
}
.cs-schedule-date-details strong {
color: #334155;
font-size: 0.66rem;
}
.cs-schedule-date-details small {
margin-top: 1px;
color: #94a3b8;
font-size: 0.56rem;
}
.cs-schedule-today-badge {
margin-left: auto;
padding: 2px 6px;
border-radius: 999px;
background: #7c3aed;
color: #fff;
font-size: 0.55rem;
font-weight: 800;
}
.cs-schedule-item {
display: grid;
grid-template-columns: 34px 6px minmax(0, 1fr) auto;
align-items: center;
gap: 5px;
min-height: 32px;
padding: 4px 6px;
}
.cs-schedule-item + .cs-schedule-item {
border-top: 1px solid #f1f5f9;
}
.cs-schedule-item:hover {
background: #fcfaff;
}
.cs-schedule-time {
color: #475569;
font-size: 0.6rem;
font-variant-numeric: tabular-nums;
text-align: right;
}
.cs-schedule-time.all-day {
color: #7c3aed;
font-weight: 800;
}
.cs-schedule-list-marker {
width: 5px;
height: 18px;
border-radius: 999px;
background: #8b5cf6;
}
.cs-schedule-title-button {
overflow: hidden;
padding: 4px 2px;
border: 0;
background: transparent;
color: #1e293b;
font-size: 0.76rem;
line-height: 1.35;
text-align: left;
white-space: normal;
word-break: break-word;
cursor: pointer;
}
.cs-schedule-title-button:hover {
color: #6d28d9;
}
.cs-schedule-item-actions {
display: flex;
gap: 1px;
opacity: 0;
transition: opacity 0.12s ease;
}
.cs-schedule-item:hover .cs-schedule-item-actions,
.cs-schedule-item:focus-within .cs-schedule-item-actions,
.cs-schedule-row:hover .cs-schedule-item-actions,
.cs-schedule-row:focus-within .cs-schedule-item-actions {
opacity: 1;
}
.cs-schedule-item-actions button {
display: grid;
width: 22px;
height: 22px;
padding: 3px;
place-items: center;
border: 0;
border-radius: 5px;
background: transparent;
color: #64748b;
cursor: pointer;
}
.cs-schedule-item-actions button:hover {
background: #f1f5f9;
}
.cs-schedule-item-actions button svg {
width: 16px;
height: 16px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.cs-schedule-item-actions button:last-child {
color: #dc2626;
}
.cs-schedule-row {
display: grid;
grid-template-columns: 62px minmax(0, 1fr) 24px;
align-items: stretch;
gap: 8px;
margin-bottom: 7px;
padding: 7px;
border: 1px solid #e2e8f0;
border-radius: 10px;
background: #fff;
transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.cs-schedule-row:hover {
border-color: #c4b5fd;
box-shadow: 0 3px 10px rgba(109, 40, 217, 0.1);
}
.cs-schedule-row.selected {
border-color: #a78bfa;
background: #fdfcff;
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.08);
}
.cs-schedule-date-card {
display: flex;
min-height: 58px;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 4px;
border: 1px solid #ddd6fe;
border-radius: 8px;
background: linear-gradient(145deg, #faf5ff, #ede9fe);
color: #6d28d9;
line-height: 1.05;
cursor: pointer;
}
.cs-schedule-date-card:hover {
border-color: #a78bfa;
background: #ede9fe;
}
.cs-schedule-card-day {
display: flex;
max-width: 100%;
align-items: center;
justify-content: center;
gap: 1px;
font-size: 1.15rem;
font-weight: 900;
letter-spacing: -0.04em;
line-height: 1;
text-align: center;
}
.cs-schedule-card-weekday {
display: flex;
align-items: center;
justify-content: center;
gap: 1px;
margin-top: 6px;
font-size: 0.72rem;
font-weight: 800;
line-height: 1;
}
.cs-schedule-card-day b,
.cs-schedule-card-weekday b {
color: #111827;
font: inherit;
}
.cs-schedule-card-day i,
.cs-schedule-card-weekday i {
color: #94a3b8;
font: inherit;
font-style: normal;
}
.cs-schedule-date-card .saturday {
color: #2563eb;
}
.cs-schedule-date-card .holiday {
color: #dc2626;
}
.cs-schedule-date-card .weekday {
color: #111827;
}
.cs-schedule-date-card strong {
max-width: 100%;
color: inherit;
}
.cs-schedule-date-card span {
color: inherit;
}
.cs-schedule-row-content {
display: grid;
min-width: 0;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto minmax(24px, auto);
align-content: center;
column-gap: 3px;
}
.cs-schedule-row-top {
display: flex;
align-items: center;
gap: 5px;
grid-column: 1;
grid-row: 1;
}
.cs-schedule-row-content .cs-schedule-title-button {
grid-column: 1;
grid-row: 2;
}
.cs-schedule-row > .cs-schedule-item-actions {
display: flex;
align-self: stretch;
align-items: center;
justify-content: space-between;
flex-direction: column;
opacity: 0;
}
.cs-data-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #e2e8f0;
}
.cs-secondary-button,
.cs-primary-button,
.cs-copy-button {
border: 0;
border-radius: 8px;
font-weight: 700;
text-align: center;
cursor: pointer;
transition: background 0.15s ease, transform 0.15s ease;
}
.cs-secondary-button {
padding: 9px 7px;
border: 1px solid #cbd5e1;
background: #f8fafc;
color: #334155;
font-size: 0.76rem;
text-decoration: none;
}
.cs-secondary-button:hover {
background: #eef2f7;
}
.cs-upload-help {
margin-top: 8px;
color: #64748b;
font-size: 0.62rem;
line-height: 1.45;
}
.cs-record-card {
width: 600px;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
.cs-record-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 16px 11px;
border-bottom: 1px solid #e2e8f0;
}
.cs-record-header h1 {
margin: 3px 0 2px;
color: #0f172a;
font-size: 1.25rem;
}
.cs-record-header p {
color: #64748b;
font-size: 0.7rem;
}
.cs-eyebrow {
color: #2563eb;
font-size: 0.64rem;
font-weight: 800;
letter-spacing: 0.05em;
}
.cs-copy-button {
flex: 0 0 auto;
padding: 10px 14px;
background: #e8f1ff;
color: #1d4ed8;
font-size: 0.8rem;
}
.cs-copy-button:hover {
background: #dbeafe;
}
.cs-record-actions {
display: flex;
align-items: center;
gap: 7px;
}
.cs-copy-selected-button {
flex: 0 0 auto;
padding: 10px 12px;
border: 0;
border-radius: 8px;
background: #334155;
color: #fff;
font-size: 0.78rem;
font-weight: 700;
cursor: pointer;
}
.cs-copy-selected-button:hover {
background: #1e293b;
}
.cs-copy-button:disabled,
.cs-primary-button:disabled {
cursor: wait;
opacity: 0.55;
}
.cs-record-status {
position: fixed;
top: 50%;
left: 50%;
z-index: 12000;
min-width: 260px;
max-width: min(520px, calc(100vw - 30px));
padding: 12px 18px;
border: 1px solid #fed7aa;
border-radius: 10px;
background: #fff7ed;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
color: #9a3412;
font-size: 0.75rem;
font-weight: 700;
text-align: center;
transform: translate(-50%, calc(-50% - 12px));
opacity: 0;
transition: opacity 0.15s ease, transform 0.15s ease;
pointer-events: none;
}
.cs-record-status.visible {
transform: translate(-50%, -50%);
opacity: 1;
}
.cs-record-status.success {
background: #ecfdf5;
border-color: #a7f3d0;
color: #047857;
}
.cs-permanent-card {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.cs-permanent-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 18px 16px 14px;
border-bottom: 1px solid #e2e8f0;
}
.cs-permanent-header h2 {
margin: 4px 0;
color: #0f172a;
font-size: 1rem;
}
.cs-permanent-header p {
color: #64748b;
font-size: 0.66rem;
line-height: 1.45;
}
.cs-permanent-composer {
display: flex;
flex-direction: column;
gap: 8px;
margin: 14px;
}
.cs-permanent-composer textarea {
width: 100%;
min-height: 88px;
resize: vertical;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 9px;
background: #f8fafc;
color: #1e293b;
font-size: 0.75rem;
line-height: 1.5;
outline: none;
}
.cs-permanent-composer textarea:focus {
border-color: #60a5fa;
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.16);
}
.cs-permanent-list {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 0 14px 14px;
}
.cs-permanent-item {
position: relative;
margin-bottom: 9px;
padding: 8px 27px 8px 8px;
border: 1px solid #fde68a;
border-radius: 9px;
background: #fffbeb;
}
.cs-permanent-text {
width: 100%;
min-height: 34px;
resize: none;
overflow: hidden;
border: 0;
background: transparent;
color: #3f3a2e;
caret-color: #0f172a;
cursor: text;
font-size: 0.73rem;
line-height: 1.5;
outline: none;
}
.cs-permanent-text:focus {
border-radius: 4px;
background: rgba(255, 255, 255, 0.38);
box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.2);
}
.cs-permanent-icon-button {
position: absolute;
top: 7px;
display: grid;
width: 25px;
height: 25px;
padding: 4px;
place-items: center;
border: 0;
border-radius: 5px;
background: transparent;
color: #a16207;
cursor: pointer;
}
.cs-permanent-icon-button svg {
width: 17px;
height: 17px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.cs-permanent-copy {
left: 7px;
}
.cs-permanent-delete {
right: 7px;
}
.cs-permanent-icon-button:hover {
background: rgba(255, 255, 255, 0.45);
}
.cs-permanent-copy:hover {
color: #2563eb;
}
.cs-permanent-delete:hover {
color: #dc2626;
}
.cs-add-memo-button {
flex: 0 0 auto;
min-width: 112px;
padding: 12px 15px;
border: 0;
border-radius: 9px;
background: #2563eb;
color: #fff;
font-size: 0.86rem;
font-weight: 800;
cursor: pointer;
}
.cs-add-memo-button:hover {
background: #1d4ed8;
}
.cs-folder-toolbar {
display: flex;
align-items: flex-end;
gap: 8px;
padding: 10px 12px 0;
border-bottom: 1px solid #dbe3ed;
}
.cs-folder-tabs {
display: flex;
flex: 1;
min-width: 0;
gap: 3px;
overflow-x: auto;
}
.cs-folder-tab {
flex: 0 0 auto;
padding: 7px 10px;
border: 1px solid #cbd5e1;
border-bottom: 0;
border-radius: 7px 7px 0 0;
background: color-mix(in srgb, var(--folder-color, #cbd5e1) 28%, white);
color: #475569;
font-size: 0.74rem;
cursor: pointer;
}
.cs-folder-tab.active {
background: color-mix(in srgb, var(--folder-color, #fde68a) 72%, white);
color: #334155;
font-weight: 800;
box-shadow: inset 0 3px 0 var(--folder-color, #f59e0b);
}
.cs-folder-count {
margin-left: 4px;
color: #94a3b8;
font-size: 0.58rem;
}
.cs-folder-actions {
display: flex;
flex: 0 0 auto;
gap: 4px;
padding-bottom: 3px;
}
.cs-folder-actions button {
padding: 5px 7px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
color: #475569;
font-size: 0.68rem;
cursor: pointer;
}
.cs-folder-actions button:last-child {
color: #b91c1c;
}
.cs-permanent-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-content: start;
gap: 8px;
padding: 12px;
}
.cs-permanent-column {
display: flex;
min-width: 0;
flex-direction: column;
gap: 8px;
align-self: start;
}
.cs-permanent-list > .cs-empty-state {
grid-column: 1 / -1;
}
.cs-permanent-item {
min-height: 112px;
margin: 0;
padding: 34px 12px 12px;
border: 1px solid color-mix(in srgb, var(--memo-color, #fde68a) 78%, #8a6500);
border-radius: 4px;
background: linear-gradient(
145deg,
color-mix(in srgb, var(--memo-color, #fde68a) 66%, white) 0%,
var(--memo-color, #fde68a) 100%
);
box-shadow: 2px 4px 9px rgba(120, 89, 0, 0.16);
transform: rotate(-0.2deg);
}
.cs-permanent-item:nth-child(even) {
transform: rotate(0.2deg);
}
.cs-permanent-text {
min-height: 80px;
font-size: 0.8rem;
line-height: 1.45;
}
.cs-modal {
position: fixed;
inset: 0;
z-index: 13000;
display: grid;
place-items: center;
padding: 20px;
background: rgba(15, 23, 42, 0.5);
}
.cs-modal[hidden] {
display: none;
}
.cs-modal-dialog {
width: min(520px, calc(100vw - 32px));
padding: 22px;
border: 1px solid #dbe3ed;
border-radius: 14px;
background: #fff;
box-shadow: 0 22px 65px rgba(15, 23, 42, 0.35);
}
.cs-modal-dialog-small {
width: min(390px, calc(100vw - 32px));
}
.cs-modal-dialog h3 {
display: block;
margin: 0 0 16px;
border: 0;
color: #0f172a;
font-size: 1.05rem;
}
.cs-schedule-modal-heading {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.cs-schedule-modal-heading h3 {
margin: 2px 0 0;
}
.cs-schedule-modal-icon {
display: grid;
width: 40px;
height: 40px;
place-items: center;
border-radius: 11px;
background: #ede9fe;
font-size: 1.2rem;
}
.cs-schedule-form-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.cs-schedule-date-row {
grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
align-items: end;
}
.cs-all-day-toggle {
display: inline-flex !important;
min-height: 40px;
margin: 0 0 1px !important;
align-items: center;
gap: 6px;
color: #334155 !important;
font-size: 0.74rem !important;
font-weight: 700 !important;
white-space: nowrap;
cursor: pointer;
}
.cs-all-day-toggle input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.cs-all-day-toggle span {
display: grid;
width: 19px;
height: 19px;
box-sizing: border-box;
place-items: center;
border: 1.5px solid #94a3b8;
border-radius: 5px;
background: #fff;
color: #fff;
transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cs-all-day-toggle input:checked + span {
border-color: #2563eb;
background: #2563eb;
}
.cs-all-day-toggle input:checked + span::after {
content: '✓';
font-size: 0.78rem;
font-weight: 900;
line-height: 1;
}
.cs-all-day-toggle input:focus-visible + span {
outline: 3px solid rgba(37, 99, 235, 0.2);
outline-offset: 2px;
}
.cs-schedule-time-row {
margin-top: 2px;
}
.cs-time-select-group {
display: grid;
grid-template-columns: 1.15fr 0.8fr 0.8fr;
gap: 4px;
}
.cs-modal-dialog .cs-time-select-group select {
min-width: 0;
padding: 10px 3px;
text-align: center;
text-align-last: center;
}
.cs-schedule-time-row.is-all-day {
opacity: 0.48;
}
.cs-schedule-time-row.is-all-day select {
cursor: not-allowed;
}
.cs-data-modal-description {
margin: 0;
color: #475569;
font-size: 0.74rem;
line-height: 1.55;
}
.cs-data-modal .cs-data-actions {
margin-top: 16px;
padding-top: 0;
border-top: 0;
}
.cs-data-modal .cs-secondary-button {
display: flex;
box-sizing: border-box;
width: 100%;
height: 54px;
margin: 0;
align-items: center;
justify-content: center;
padding: 11px 8px;
font-size: 0.82rem;
line-height: 1.2;
}
.cs-data-modal .cs-upload-help {
margin-bottom: 0;
font-size: 0.68rem;
}
#cs-schedule-title,
#cs-memo-content {
font-size: 0.86rem;
}
.cs-optional-label {
margin-left: 3px;
color: #94a3b8;
font-size: 0.6rem;
font-weight: 500;
}
.cs-modal-dialog label {
display: block;
margin: 10px 0 5px;
color: #475569;
font-size: 0.7rem;
font-weight: 700;
}
.cs-modal-dialog input,
.cs-modal-dialog select,
.cs-modal-dialog textarea {
width: 100%;
padding: 10px 11px;
border: 1px solid #cbd5e1;
border-radius: 8px;
background: #fff;
color: #1e293b;
font-size: 0.78rem;
outline: none;
}
.cs-modal-dialog textarea {
resize: vertical;
line-height: 1.5;
}
.cs-modal-dialog input:focus,
.cs-modal-dialog select:focus,
.cs-modal-dialog textarea:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}
.cs-modal-help {
margin-top: 10px;
color: #64748b;
font-size: 0.66rem;
line-height: 1.5;
}
.cs-color-fieldset {
margin: 14px 0 0;
padding: 0;
border: 0;
}
.cs-color-fieldset legend {
margin-bottom: 7px;
color: #475569;
font-size: 0.7rem;
font-weight: 700;
}
.cs-color-palette {
display: grid;
grid-template-columns: repeat(7, 36px);
gap: 8px;
}
.cs-color-choice {
position: relative;
display: block;
width: 36px;
height: 36px;
cursor: pointer;
}
.cs-color-choice input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.cs-color-swatch {
display: block;
width: 36px;
height: 36px;
border: 2px solid rgba(71, 85, 105, 0.22);
border-radius: 50%;
background: var(--swatch-color);
box-shadow: 0 2px 5px rgba(15, 23, 42, 0.13);
transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cs-color-choice input:checked + .cs-color-swatch {
border-color: #1d4ed8;
box-shadow: 0 0 0 3px #dbeafe, 0 2px 5px rgba(15, 23, 42, 0.16);
transform: scale(1.08);
}
.cs-color-choice input:focus-visible + .cs-color-swatch {
outline: 2px solid #2563eb;
outline-offset: 3px;
}
.cs-delete-message {
margin: 0 0 10px;
color: #334155;
font-size: 0.78rem;
}
.cs-memo-delete-preview {
max-height: 150px;
overflow-y: auto;
padding: 12px;
border: 1px solid color-mix(in srgb, var(--memo-color, #fde68a) 78%, #8a6500);
border-radius: 7px;
background: color-mix(in srgb, var(--memo-color, #fde68a) 58%, white);
color: #4b5563;
font-size: 0.72rem;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
}
.cs-schedule-delete-preview {
display: flex;
flex-direction: column;
gap: 5px;
padding: 12px;
border: 1px solid #ddd6fe;
border-radius: 8px;
background: #f5f3ff;
}
.cs-schedule-delete-preview strong {
color: #6d28d9;
font-size: 0.7rem;
}
.cs-schedule-delete-preview span {
color: #334155;
font-size: 0.78rem;
line-height: 1.45;
word-break: break-word;
}
.cs-modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 18px;
}
.cs-modal-actions button {
min-width: 82px;
padding: 9px 14px;
border: 0;
border-radius: 8px;
font-size: 0.8rem;
font-weight: 800;
cursor: pointer;
}
.cs-modal-cancel {
background: #e2e8f0;
color: #334155;
}
.cs-modal-save {
background: #2563eb;
color: #fff;
}
.cs-modal-delete {
background: #dc2626;
color: #fff;
}
.cs-record-composer {
margin: 15px 22px 12px;
padding: 12px;
border: 1px solid #cbd5e1;
border-radius: 10px;
background: #f8fafc;
}
.cs-record-composer textarea {
display: block;
width: 100%;
min-height: 64px;
resize: vertical;
border: 0;
outline: 0;
background: transparent;
color: #1e293b;
font-size: 0.88rem;
line-height: 1.55;
}
.cs-composer-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 8px;
}
.cs-composer-footer span {
color: #94a3b8;
font-size: 0.62rem;
}
.cs-primary-button {
padding: 9px 16px;
background: #2563eb;
color: #fff;
font-size: 0.8rem;
}
.cs-primary-button:hover {
background: #1d4ed8;
}
.cs-record-list {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 1px 16px 14px;
}
.cs-record-item {
display: grid;
grid-template-columns: 20px minmax(0, 1fr) auto;
align-items: start;
gap: 4px;
padding: 1px 2px;
border-bottom: 1px solid #e2e8f0;
}
.cs-record-checkbox {
width: 16px;
height: 16px;
margin-top: 2px;
accent-color: #2563eb;
cursor: pointer;
}
.cs-record-text {
width: 100%;
min-height: 22px;
resize: none;
overflow: hidden;
border: 1px solid transparent;
border-radius: 6px;
background: transparent;
padding: 1px 5px;
color: #1e293b;
font-size: 0.86rem;
line-height: 1.2;
}
.cs-record-text:hover,
.cs-record-text:focus {
border-color: #bfdbfe;
background: #f8fbff;
outline: none;
}
.cs-record-item.completed .cs-record-text {
color: #94a3b8;
text-decoration: line-through;
}
.cs-record-meta {
display: flex;
align-items: center;
gap: 3px;
padding-top: 0;
}
.cs-source-badge {
padding: 3px 6px;
border-radius: 999px;
background: #eef2ff;
color: #4338ca;
font-size: 0.58rem;
white-space: nowrap;
}
.cs-delete-button {
border: 0;
background: transparent;
color: #94a3b8;
font-size: 0.76rem;
cursor: pointer;
}
.cs-delete-button:hover {
color: #dc2626;
}
.cs-complete-button {
border: 0;
border-radius: 5px;
background: #e8f1ff;
color: #1d4ed8;
padding: 3px 6px;
font-size: 0.7rem;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
}
.cs-record-item.completed .cs-complete-button {
background: #e2e8f0;
color: #475569;
}
.cs-empty-state {
display: grid;
place-items: center;
min-height: 180px;
color: #94a3b8;
font-size: 0.78rem;
text-align: center;
}
@media (max-width: 900px) {
.cs-record-tab.active {
overflow-y: auto;
}
.cs-record-layout {
grid-template-columns: 1fr;
height: auto;
min-width: 0;
}
.cs-calendar-card,
.cs-record-card {
min-height: auto;
}
.cs-calendar-card {
align-self: start;
}
.cs-schedule-list {
max-height: 270px;
}
.cs-record-card,
.cs-permanent-card {
width: 100%;
overflow: visible;
}
.cs-record-list,
.cs-permanent-list {
overflow: visible;
}
}
@media (max-width: 560px) {
.cs-record-header {
align-items: flex-start;
flex-direction: column;
}
.cs-copy-button {
width: 100%;
}
.cs-schedule-date-row {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cs-all-day-toggle {
grid-column: 1 / -1;
min-height: 30px;
justify-self: end;
}
}