:root {
--todo-surface:      #fff;
--todo-border:       #e2e8f0;
--todo-radius-lg:    8px;
--todo-shadow:       0 1px 4px rgba(0,0,0,.07);
--todo-transition:   .15s ease;
--todo-text-muted:   #6b7280; --todo-prio-new:     #3b82f6;
--todo-prio-high:    #ef4444;
--todo-prio-normal:  #f59e0b;
--todo-prio-low:     #10b981;
--todo-prio-done:    #C9CDD4;
} .ter-kal-prio-badge {
font-size: .7rem;
font-weight: 700;
padding: 2px 7px;
border-radius: 10px;
text-transform: uppercase;
letter-spacing: .04em;
white-space: nowrap;
}
.prio-badge-new    { background: #dbeafe; color: #1d4ed8; }
.prio-badge-high   { background: #fee2e2; color: #b91c1c; }
.prio-badge-normal { background: #fef3c7; color: #92400e; }
.prio-badge-low    { background: #d1fae5; color: #065f46; }
.prio-badge-done   { background: #f3f4f6; color: #6b7280; }
#ter-kal-todo-event-modal {
position: fixed;
inset: 0;
z-index: 100100; display: flex;
align-items: center;
justify-content: center;
isolation: isolate;
}
#ter-kal-todo-event-modal[hidden] {
display: none;
} .ter-kal-tem-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, .45);
cursor: pointer;
z-index: 0;
} .ter-kal-tem-dialog {
position: relative;
z-index: 1;
background: var(--todo-surface, #fff);
border-radius: var(--todo-radius-lg, 8px);
box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
width: min(540px, 94vw);
max-height: 90vh;
overflow-y: auto;
display: flex;
flex-direction: column;
} .ter-kal-tem-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px 12px;
border-bottom: 1px solid var(--todo-border, #e2e8f0);
gap: 8px;
}
.ter-kal-tem-title {
font-size: 1.05rem;
font-weight: 600;
margin: 0;
display: flex;
align-items: center;
gap: 7px;
}
#ter-kal-todo-event-modal .ter-kal-tem-title .dashicons {
color: var(--todo-prio-new, #3b82f6);
}
.ter-kal-tem-close {
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 4px;
color: var(--todo-text-muted, #6b7280);
line-height: 1;
transition: color var(--todo-transition, .15s ease);
}
.ter-kal-tem-close:hover {
color: #111;
} .ter-kal-tem-body {
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 14px;
} .ter-kal-tem-prio-stripe {
height: 4px;
border-radius: var(--todo-radius-lg, 8px) var(--todo-radius-lg, 8px) 0 0;
width: 100%;
} .ter-kal-tem-body .ter-kal-field {
display: flex;
flex-direction: column;
gap: 4px;
}
.ter-kal-tem-body .ter-kal-field-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
@media (max-width: 480px) {
.ter-kal-tem-body .ter-kal-field-row {
grid-template-columns: 1fr;
}
} .ter-kal-tem-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
justify-content: flex-end;
padding: 12px 20px 16px;
border-top: 1px solid var(--todo-border, #e2e8f0);
}
#ter-kal-todo-event-modal #ter-kal-tem-done-btn {
display: inline-flex;
align-items: center;
gap: 5px;
margin-right: auto;
}
#ter-kal-todo-event-modal #ter-kal-tem-done-btn[hidden] {
display: none !important;
}
#ter-kal-todo-event-modal #ter-kal-tem-done-btn .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
line-height: 1;
margin: 0;
} .ter-kal-tem-status {
font-size: .8rem;
padding: 0 20px 8px;
min-height: 1.2em;
}
.ter-kal-tem-status.is-error  { color: #dc2626; }
.ter-kal-tem-status.is-success { color: #16a34a; }
.ter-kal-tem-status.is-info    { color: var(--todo-text-muted, #6b7280); } .ter-kal-tem-view-row {
display: flex;
flex-direction: column;
gap: 2px;
}
.ter-kal-tem-view-label {
font-size: .75rem;
color: var(--todo-text-muted, #6b7280);
text-transform: uppercase;
letter-spacing: .04em;
}
.ter-kal-tem-view-value {
font-size: .95rem;
}  .ter-kal-is-todo span.time_text {
font-size: 0 !important;
display: inline-flex;
align-items: center;
gap: 0; padding: 0;
border-radius: 0;
margin-bottom: 0;
}
.ter-kal-is-todo span.time_text::before {
content: "\f147";
font-family: dashicons;
font-size: 16px;
margin-right: 3px;
}
.ter-kal-is-todo span.time_text::after {
content: "To-Do";
font-size: 11px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
} .ter-kal-has-todo span.time_text::before,
.fc-timegrid-event.ter-kal-has-todo .title_text::before,
.ter-kal-has-todo .title_text_mmy::before {
content: "\f147";
font-family: dashicons;
font-size: 15px;
line-height: 1;
vertical-align: text-bottom;
margin-right: 3px;
} .ui-dialog-title .ter-kal-dialog-todo-badge {
display: inline-flex;
align-items: center;
gap: 3px;
margin-left: 10px;
padding: 2px 8px;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
line-height: 1.3;
vertical-align: middle;
text-decoration: none;
cursor: pointer;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
transition: filter 0.15s ease, transform 0.15s ease;
}
.ui-dialog-title .ter-kal-dialog-todo-badge:hover,
.ui-dialog-title .ter-kal-dialog-todo-badge:focus {
text-decoration: none;
filter: brightness(0.95);
transform: translateY(-1px);
}
.ui-dialog-title .ter-kal-dialog-todo-badge .dashicons {
font-size: 14px;
width: 14px;
height: 14px;
line-height: 1;
margin: 0;
}  .fc-event.ter-kal-is-todo:not(.fc-list-event) .title_text {
background-color: transparent !important; color: var(--todo-surface, #fff) !important;
}  .fc-event.ter-kal-is-todo.ter-kal-prio-new:not(.fc-list-event) {
background-color: var(--todo-prio-new) !important;
border-color: var(--todo-prio-new) !important;
} .fc-event.ter-kal-is-todo.ter-kal-prio-high:not(.fc-list-event) {
background-color: var(--todo-prio-high) !important;
border-color: var(--todo-prio-high) !important;
} .fc-event.ter-kal-is-todo.ter-kal-prio-normal:not(.fc-list-event) {
background-color: var(--todo-prio-normal) !important;
border-color: var(--todo-prio-normal) !important;
} .fc-event.ter-kal-is-todo.ter-kal-prio-low:not(.fc-list-event) {
background-color: var(--todo-prio-low) !important;
border-color: var(--todo-prio-low) !important;
} .fc-event.ter-kal-is-todo.ter-kal-prio-done {
display: none !important; }