/* v1.3.240 — 승인 시안 기반 운영 달력 전용 UI. 다른 화면에는 적용하지 않는다. */
[data-view="calendar"]{--cal-blue:#1473e6;--cal-line:#e3eaf2;--cal-text:#14233b;--cal-muted:#718096;--cal-card:#fff;--cal-bg:#f4f7fb}
[data-view="calendar"]>.calendar-v13240-shell{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:12px;align-items:stretch}
.calendar-v13240-main{display:grid;grid-template-rows:auto auto auto minmax(560px,1fr);gap:10px;min-width:0}
.calendar-v13240-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px!important;padding:0!important;background:transparent!important;border:0!important}
.calendar-v13240-kpis .cal-kpi{min-height:92px;margin:0!important;padding:13px 14px!important;border:1px solid var(--cal-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 2px 8px rgba(39,63,91,.06)!important;display:flex!important;flex-direction:column;justify-content:center;gap:5px}
.calendar-v13240-kpis .cal-kpi span{font-size:12px!important;font-weight:800;color:#66758a}.calendar-v13240-kpis .cal-kpi strong{font-size:25px!important;line-height:1;color:#122542!important}.calendar-v13240-kpis .cal-kpi small{font-size:10px;color:#8c99a8;font-weight:700}
.calendar-v13240-kpis .cal-kpi.warn strong{color:#e48800!important}.calendar-v13240-kpis .cal-kpi.bad strong{color:#e13243!important}.calendar-v13240-kpis .cal-kpi.ok strong{color:#19945a!important}
.calendar-v13240-toolbar{display:flex;align-items:center;gap:7px;padding:8px 9px;background:#fff;border:1px solid var(--cal-line);border-radius:10px;box-shadow:0 2px 8px rgba(39,63,91,.05);min-width:0}
.calendar-v13240-move{display:flex;align-items:center;gap:5px}.calendar-v13240-move button{height:32px;min-width:32px;padding:0 10px;border:1px solid #dfe7ef;border-radius:7px;background:#fff;color:#4f637b;font-weight:900}
.calendar-v13240-month select{height:32px;min-width:132px;border:0;background:transparent;font-size:18px;font-weight:900;color:#17304f;padding:0 6px}
.calendar-v13240-select{display:flex;align-items:center;gap:4px;margin:0!important}.calendar-v13240-select>span{display:none}.calendar-v13240-select select{height:32px;min-width:118px;border:1px solid #dfe7ef;border-radius:7px;background:#fff;color:#425875;padding:0 9px;font-size:11px;font-weight:700}
.calendar-v13240-view-switch{display:flex;border:1px solid #dfe7ef;border-radius:7px;overflow:hidden;margin-left:auto}.calendar-v13240-view-switch button{height:30px;min-width:34px;border:0;border-right:1px solid #e5ebf2;background:#fff;color:#69798d;font-size:11px;font-weight:800}.calendar-v13240-view-switch button:last-child{border-right:0}.calendar-v13240-view-switch button.active{background:#eaf3ff;color:#1473e6}.calendar-v13240-view-switch button:disabled{opacity:.45;cursor:default}
.calendar-v13240-search input{height:32px;width:210px;border:1px solid #dfe7ef;border-radius:7px;padding:0 10px;font-size:11px}
.calendar-v13240-filters{display:flex;align-items:center;gap:9px;overflow-x:auto;padding:1px 2px 3px;scrollbar-width:thin}.cal-filter{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;color:#43566e;white-space:nowrap;cursor:pointer}.cal-filter input{position:absolute;opacity:0;pointer-events:none}.cal-filter span{width:17px;height:17px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:900;opacity:.35}.cal-filter input:checked+span{opacity:1}.cal-filter.all span{background:#1473e6}.cal-filter.fuel span{background:#2678ea}.cal-filter.goods span{background:#b45be6}.cal-filter.delivery span{background:#27bdb8}.cal-filter.closing span{background:#f04e5a}.cal-filter.tank span{background:#2dbc75}.cal-filter.price span{background:#ffb515}.cal-filter.cash span{background:#f18cb2}.cal-filter.stock span{background:#f18b3c}.cal-filter.carwash span{background:#55b9ed}.cal-filter.report span{background:#6f86a6}.cal-filter.ocr span{background:#8a5bd7}.cal-filter.failure span{background:#f23c4d}
.calendar-v13240-calendar-card{background:#fff;border:1px solid var(--cal-line);border-radius:10px;box-shadow:0 2px 8px rgba(39,63,91,.06);overflow:hidden;display:grid;grid-template-rows:34px minmax(520px,1fr)}
.calendar-v13240-weekdays{display:grid!important;grid-template-columns:repeat(7,1fr)!important;height:auto!important;min-height:34px!important;margin:0!important;background:#fbfcfe;border-bottom:1px solid #e2e9f1}.calendar-v13240-weekdays>div{display:flex;align-items:center;justify-content:center;height:auto!important;padding:0!important;border-left:1px solid #eef2f6;background:transparent!important;font-size:11px!important;font-weight:900;color:#425571!important}.calendar-v13240-weekdays>div:first-child{border-left:0;color:#e4424c!important}.calendar-v13240-weekdays>div:last-child{color:#1875e8!important}
.calendar-v13240-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-rows:minmax(105px,1fr)!important;height:auto!important;min-height:0!important;gap:0!important;overflow:visible!important;background:#fff!important;border:0!important;border-radius:0!important}
.calendar-v13240-grid .calendar-pad,.calendar-v13240-grid .calendar-day{min-height:105px!important;height:auto!important;border:0!important;border-right:1px solid #e7edf4!important;border-bottom:1px solid #e7edf4!important;border-radius:0!important;background:#fff!important;padding:7px 7px 5px!important;box-shadow:none!important;overflow:hidden!important;text-align:left!important;color:var(--cal-text)!important;display:block!important}
.calendar-v13240-grid>*:nth-child(7n){border-right:0!important}.calendar-v13240-grid .calendar-pad{background:#fafbfd!important}.calendar-v13240-grid .calendar-day:hover{background:#fbfdff!important}.calendar-v13240-grid .calendar-day.today{box-shadow:inset 0 0 0 2px #1473e6!important}
.calendar-v13240-grid .day-head{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:24px!important;margin:0 0 3px!important}.calendar-v13240-grid .day-head strong{font-size:11px!important;color:#27415f!important}.calendar-v13240-grid .calendar-day.sun .day-head strong{color:#ef3949!important}.calendar-v13240-grid .calendar-day.sat .day-head strong{color:#1473e6!important}.calendar-v13240-grid .calendar-day.today .day-head strong{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;background:#1473e6;color:#fff!important;font-size:12px!important}
.cal-unified-events{display:grid;gap:3px}.cal-unified-event{height:20px;border-radius:5px;display:flex;align-items:center;gap:5px;padding:0 6px;font-size:9px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3b4e66}.cal-unified-event i{width:7px;height:7px;border-radius:50%;flex:0 0 auto}.cal-unified-event.fuel{background:#dff0ff}.cal-unified-event.fuel i{background:#2582e9}.cal-unified-event.goods{background:#f1e3fb}.cal-unified-event.goods i{background:#ab55dd}.cal-unified-event.delivery{background:#dff7f4}.cal-unified-event.delivery i{background:#1ab8ac}.cal-unified-event.closing{background:#ffe1e5}.cal-unified-event.closing i{background:#f14253}.cal-unified-event.tank{background:#e3f8eb}.cal-unified-event.tank i{background:#27b76b}.cal-unified-event.price{background:#fff2c9}.cal-unified-event.price i{background:#f5ac00}.cal-unified-event.cash{background:#ffe7ef}.cal-unified-event.cash i{background:#ee82ab}.cal-unified-event.stock{background:#ffeadb}.cal-unified-event.stock i{background:#f18a34}.cal-unified-event.carwash{background:#e1f3fd}.cal-unified-event.carwash i{background:#50afe0}.cal-unified-event.report{background:#e7ecf3}.cal-unified-event.report i{background:#667f9f}.cal-unified-event.ocr{background:#eee5fb}.cal-unified-event.ocr i{background:#8a5bd7}.cal-unified-event.failure{background:#ffe0e4;color:#d7283a}.cal-unified-event.failure i{background:#ed2f45}.cal-unified-more{font-size:9px;color:#2580e7;font-weight:900;margin-top:3px}
.calendar-v13240-side{display:grid;grid-template-rows:minmax(270px,1.45fr) minmax(160px,.8fr) minmax(145px,.72fr) minmax(165px,.85fr);gap:10px;min-height:0}.calendar-v13240-panel{background:#fff;border:1px solid var(--cal-line);border-radius:10px;box-shadow:0 2px 8px rgba(39,63,91,.06);padding:12px 13px;overflow:auto}.calendar-v13240-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.calendar-v13240-panel-head strong{font-size:13px;color:#17304f}.calendar-v13240-panel-head button{border:0;background:transparent;color:#61748d;font-size:9px;font-weight:800;cursor:pointer}.calendar-v13240-agenda,.calendar-v13240-side-list{display:grid;gap:6px}.cal-side-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:36px}.cal-side-row time{font-size:10px;color:#6b7b8d}.cal-side-row b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-side-row small{display:block;font-size:8.5px;color:#8492a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-side-status{font-size:8px;font-weight:900;border-radius:10px;padding:3px 6px;background:#edf5ff;color:#2c70c8}.cal-side-status.problem{background:#fff0f1;color:#e13749}.cal-side-status.done{background:#e8f8ef;color:#22965a}.calendar-v13240-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;font-size:9px;font-weight:800;color:#53657a}.calendar-v13240-legend span{display:flex;align-items:center;gap:6px}.calendar-v13240-legend i{width:8px;height:8px;border-radius:50%}
.calendar-v13240-detail{margin-top:12px}.calendar-v13240-detail .card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.cal-detail-card{border:1px solid #e1e8f0;border-radius:9px;background:#fff;padding:12px}.cal-detail-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.cal-detail-card header strong{font-size:12px}.cal-detail-card p{margin:3px 0;font-size:11px;color:#53657a}.cal-detail-card small{font-size:9px;color:#8492a4}.cal-detail-card .cat{font-size:9px;font-weight:900;border-radius:10px;padding:3px 7px;background:#eef3f9;color:#42607d}
.calendar-v13240-tools{margin-top:10px!important}
[data-view="calendar"] .cal-tip{max-width:360px!important}
@media(max-width:1200px){[data-view="calendar"]>.calendar-v13240-shell{grid-template-columns:1fr}.calendar-v13240-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.calendar-v13240-toolbar{flex-wrap:wrap}.calendar-v13240-view-switch{margin-left:0}.calendar-v13240-search{margin-left:auto}.calendar-v13240-main{grid-template-rows:auto auto auto auto}}
@media(max-width:760px){[data-view="calendar"]>.calendar-v13240-shell{display:block}.calendar-v13240-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.calendar-v13240-kpis .cal-kpi:last-child{grid-column:span 2}.calendar-v13240-toolbar{gap:6px}.calendar-v13240-month select{min-width:120px;font-size:16px}.calendar-v13240-select select{min-width:110px}.calendar-v13240-search{width:100%;margin-left:0}.calendar-v13240-search input{width:100%}.calendar-v13240-view-switch{display:none}.calendar-v13240-calendar-card{overflow-x:auto}.calendar-v13240-weekdays,.calendar-v13240-grid{min-width:720px}.calendar-v13240-side{display:grid;grid-template-columns:1fr;margin-top:10px}.calendar-v13240-panel{max-height:320px}}
/* v1.3.269 — 예전 달력 압축 규칙([data-view=calendar] .cal-kpi{height:36px!important})이 시안 카드(92px)를 눌러 '오늘 기준' 같은 설명이 잘리고 숫자가 겹쳤다. 시안 규칙이 이기게 한다 */
[data-view="calendar"] .calendar-v13240-kpis .cal-kpi{height:auto!important;min-height:92px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:5px!important;padding:13px 14px!important;border-left-width:1px!important;grid-template-columns:none!important}
[data-view="calendar"] .calendar-v13240-kpis .cal-kpi span{font-size:12px!important;white-space:normal!important;line-height:1.2}
[data-view="calendar"] .calendar-v13240-kpis .cal-kpi strong{font-size:25px!important;text-align:left!important;overflow:visible!important;white-space:nowrap!important}
[data-view="calendar"] .calendar-v13240-kpis .cal-kpi small{white-space:normal!important}
/* 1500px 이하(왼쪽 메뉴 때문에 본문이 좁다): 도구 줄이 옆으로 넘쳐 검색칸·보기 단추가 잘렸다 → 줄바꿈 */
@media(max-width:1500px){
  .calendar-v13240-toolbar{flex-wrap:wrap}
  .calendar-v13240-search{flex:1 1 220px;min-width:0}
  .calendar-v13240-search input{width:100%;box-sizing:border-box}
}
@media(min-width:761px) and (max-width:1500px){.calendar-v13240-filters{flex-wrap:wrap;overflow-x:hidden;row-gap:6px}}
.cal-filter{position:relative}  /* 보이지 않는 체크칸(폭 100%)이 칸 밖으로 퍼져 폰·태블릿에서 본문이 옆으로 1300~1500px 까지 밀리던 것 */

/* v1.3.270 — 폰·태블릿: 이전/다음 달 단추 가로 44px(손가락) */
@media (max-width:820px){html body .calendar-v13240-move button{min-width:44px}}
