/* Event Planning (templates/planning/index.html.twig), after church_events_calendar_clock_hand_slider.html. */
.pl { --pl-ink: #1e293b; --pl-muted: #64748b; --pl-line: #e2e8f0; --pl-blue: #2563eb; color: var(--pl-ink); }
.pl-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.pl-head h1 { margin: 0 0 5px; font-size: 26px; font-weight: 700; }
.pl-head-actions { display: flex; gap: 6px; flex: none; }
.pl-muted, .pl-note { color: var(--pl-muted); }
.pl-note { font-size: 11px; }
.pl-btn { border: 1px solid var(--pl-line); background: #fff; border-radius: 8px; padding: 7px 12px; color: #334155; text-decoration: none; font-size: 13px; line-height: 1.3; cursor: pointer; display: inline-block; }
.pl-btn:hover { border-color: #93c5fd; color: #1e293b; }
.pl-btn.primary { background: var(--pl-blue); color: #fff; border-color: var(--pl-blue); }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 18px; }
.pl-card { background: #fff; border: 1px solid var(--pl-line); border-radius: 12px; margin-bottom: 17px; overflow: hidden; }
.pl-ch { padding: 13px 17px; border-bottom: 1px solid var(--pl-line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl-ch h2 { font-size: 15px; margin: 0; font-weight: 700; }
.pl-body { padding: 16px; }
.pl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pl-month { font-size: 19px; }
.pl-nav { display: flex; gap: 5px; align-items: center; }
.pl-nav button { width: 34px; height: 34px; border: 1px solid var(--pl-line); background: #fff; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.pl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid; vertical-align: -1px; }
.pl-week, .pl-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pl-wk { text-align: center; font-size: 10px; color: var(--pl-muted); padding: 5px; }
.pl-day { min-height: 88px; border: 1px solid transparent; background: #f8fafc; border-radius: 7px; text-align: left; padding: 5px; overflow: hidden; display: block; width: 100%; cursor: pointer; color: inherit; }
.pl-day:hover { border-color: #93c5fd; }
.pl-day.selected { border-color: #1e293b; }
.pl-day.range-start, .pl-day.range-end { outline: 2px solid var(--pl-blue); background: #dbeafe; }
.pl-day.in-range { background: #eff6ff; border-color: #bfdbfe; }
.pl-day.out { opacity: .35; }
.pl-day.today .pl-num { background: var(--pl-blue); color: #fff; border-radius: 10px; padding: 0 5px; }
.pl-num { font-weight: 700; font-size: 12px; }
.pl-pill { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; padding: 3px; margin-top: 3px; border-radius: 3px; }
.pl-more { font-size: 9px; color: var(--pl-muted); }
.pl-mini-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pl-mini { border: 1px solid var(--pl-line); border-radius: 8px; padding: 7px; }
.pl-mini h3 { font-size: 11px; margin: 0 0 5px; font-weight: 700; }
.pl-mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.pl-mw, .pl-md { text-align: center; font-size: 8px; padding: 3px 0; }
.pl-mw { color: #94a3b8; }
.pl-md { border-radius: 3px; }
.pl-md.selected { outline: 1px solid #1e293b; }
.pl-md button { border: 0; background: transparent; font-size: 8px; padding: 0; width: 100%; color: inherit; font-weight: inherit; cursor: pointer; }
.pl-formgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pl-field.full { grid-column: 1 / -1; }
.pl-field label, .pl-label { font-size: 11px; font-weight: 700; color: #475569; margin: 0; }
.pl-field label.required::after { content: " *"; }
.pl-form input:not([type=radio]), .pl-form select, .pl-form textarea { border: 1px solid #cbd5e1; border-radius: 7px; padding: 8px 9px; width: 100%; font-size: 13px; background: #fff; }
.pl-form .is-invalid { border-color: #dc3545 !important; }
.pl-form .invalid-feedback { display: block; font-size: 11px; }
.pl-form textarea { min-height: 60px; }
.pl-time-row { display: none; gap: 4px; }
.pl-js .pl-time-row { display: flex; }
.pl-js .pl-time-input { display: none; }
.pl-time-display { flex: 1; text-align: left; background: #fff; border: 1px solid #cbd5e1; border-radius: 7px; padding: 8px 9px; color: #334155; min-height: 38px; font-size: 13px; cursor: pointer; }
.pl-time-clear { border: 1px solid #cbd5e1; background: #fff; border-radius: 7px; width: 34px; color: var(--pl-muted); cursor: pointer; }
.pl-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.pl-swatch { appearance: none; -webkit-appearance: none; width: 25px; height: 25px; margin: 0; border: 2px solid #fff; outline: 1px solid #cbd5e1; border-radius: 6px; background: var(--swatch); cursor: pointer; }
.pl-swatch.default { outline: 2px dashed #64748b; }
.pl-swatch:checked { outline: 2px solid #1e293b; }
.pl-swatch:focus-visible { outline: 3px solid var(--pl-blue); }
.pl-foot { display: flex; justify-content: flex-end; gap: 7px; margin-top: 12px; }
.pl-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px; padding: 9px 11px; font-size: 12px; margin-bottom: 12px; }
.pl-entry { border: 1px solid var(--pl-line); border-radius: 8px; padding: 9px; margin-bottom: 7px; display: flex; gap: 8px; align-items: flex-start; }
.pl-entry.editing { border-color: #93c5fd; background: #f8fbff; }
.pl-entry-text { flex: 1; min-width: 0; }
.pl-entry .pl-btn { padding: 4px 9px; font-size: 12px; }
.pl-stripe { width: 5px; align-self: stretch; border-radius: 4px; flex: none; }
.pl-entry strong { font-size: 12px; }
.pl-entry small { display: block; color: var(--pl-muted); font-size: 11px; margin-top: 3px; }
.pl-holiday-tag { font-size: 10px; color: #b91c1c; font-weight: 700; flex: none; }
.pl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-stat { background: #f8fafc; border: 1px solid var(--pl-line); padding: 10px; border-radius: 8px; }
.pl-stat b { display: block; font-size: 21px; }
.pl-stat span { font-size: 10px; color: var(--pl-muted); }
.pl-empty { border: 1px dashed var(--pl-line); padding: 16px; text-align: center; color: var(--pl-muted); font-size: 12px; border-radius: 8px; }
.pl-clock-modal { position: fixed; inset: 0; background: #0f172a88; display: none; align-items: center; justify-content: center; z-index: 1080; padding: 16px; }
.pl-clock-modal.open { display: flex; }
.pl-clock-panel { background: #fff; border-radius: 16px; padding: 20px; width: min(360px, 100%); box-shadow: 0 20px 60px #0004; }
.pl-clock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pl-clock-readout { font-size: 30px; font-weight: 700; text-align: center; margin: 10px 0; }
.pl-clock-face { width: 260px; height: 260px; border-radius: 50%; background: #f1f5f9; border: 1px solid #cbd5e1; position: relative; margin: 14px auto; touch-action: none; cursor: grab; user-select: none; }
.pl-clock-face:active { cursor: grabbing; }
.pl-clock-number { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); font-weight: 600; color: #334155; pointer-events: none; }
.pl-clock-number.active { background: var(--pl-blue); color: #fff; }
.pl-clock-center { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--pl-blue); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pl-clock-hand { position: absolute; width: 4px; height: 91px; background: var(--pl-blue); left: calc(50% - 2px); top: 39px; transform-origin: bottom center; border-radius: 4px; pointer-events: none; }
.pl-clock-hand::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--pl-blue); left: 50%; top: -7px; transform: translateX(-50%); box-shadow: 0 1px 4px #0003; }
.pl-clock-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl-clock-actions button { border: 1px solid var(--pl-line); background: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.pl-clock-actions .primary { background: var(--pl-blue); color: #fff; border-color: var(--pl-blue); }
.pl-ampm { display: flex; gap: 5px; }
.pl-ampm button.active { background: #dbeafe; border-color: #60a5fa; }
@media (max-width: 1100px) { .pl-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .pl-head { flex-direction: column; }
    .pl-day { min-height: 58px; padding: 3px; }
    .pl-pill { font-size: 8px; padding: 2px; }
    .pl-mini-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-body { padding: 11px; }
    .pl-formgrid { grid-template-columns: minmax(0, 1fr); }
    .pl-month { font-size: 15px; }
}
