﻿/* === Base Card === */

.card-calendar {
    background-color: #efefef;
    border-radius: 5px;
    margin-bottom: 5px;
    margin-left: 1px;
    margin-right: 1px;
}

.time-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: red;
    z-index: 100;
}

.time-dot {
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

/* === DAY VIEW === */

.day-view {
    position: relative;
    display: block;
    flex-direction: column;
    border: 1px solid #ccc;
    height: 100%;
}

.hour-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    font-size: 12px;
    color: #666;
}

.hour-events {
    margin-left: 50px;
    position: relative;
    height: 100%;
}

/* === WEEK VIEW === */

.hour-slot {
    height: 60px;
    border-top: 1px solid #eee;
    position: relative;
    border-bottom: 1px solid #eee;
    padding-left: 60px; /* espaço para o horário */
    min-height: 50px; /* altura mínima para toque em mobile */
}

.week-day-body {
    position: relative;
    height: calc(24 * 60px);
}

.event-item {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.1s;
    position: absolute;
    left: 0;
    right: 10%;
    background: #4285f4;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10pt;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #3f6791;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
    line-height: 1.2;
}

    .event-item:hover {
        transform: scale(1.02);
        z-index: 10;
        position: absolute;
        left: 0;
        right: 10%;
        background: #4285f4;
        color: white;
        border-radius: 4px;
        padding: 2px 6px;
        font-size: 10pt;
        overflow: hidden;
        z-index: 1;
        border: 1px solid #3f6791;
    }


.week-view {
    display: flex;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
}

.week-view-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
}

.week-day-body .hour-slot {
    padding-left: 0;
}

.week-time-column {
    border-right: 1px solid #ccc;
}

.week-day-column {
    border-left: 1px solid #ccc;
}

.week-day-header {
    padding: 8px;
    background: #f0f0f0;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .week-day-header .day-number {
        margin-top: 4px;
        width: 24px;
        height: 24px;
        line-height: 24px;
        border-radius: 50%;
        display: inline-block;
    }

        .week-day-header .day-number.today {
            background: #4285f4;
            color: #fff;
            font-weight: bold;
        }

.empty-header {
    height: 68px;
    background: transparent;
    border: none;
}

/* === MONTH VIEW === */
.month-view {
    /*display: flex;*/
    display: block;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.month-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center; /*addd*/
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.month-grid-header-day {
    text-align: center;
    font-weight: bold;
    padding: 8px 0;
    border-right: 1px solid #ddd;
}

.month-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 120px; /* altura das células do mês */
}

.month-cell {
    border: 1px solid #eee;
    padding: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100px;
    box-sizing: border-box;
}

    .month-cell.other-month {
        background: #fafafa;
        color: #aaa;
    }

.month-cell-date {
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.month-cell-events {
    overflow-y: auto;
    flex-grow: 1;
}

.month-event-item {
    transition: transform 0.1s;
    background: #4285f4;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 4px;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .month-event-item:hover {
        transform: scale(1.02);
        background: #4285f4;
        color: white;
        border-radius: 4px;
        font-size: 11px;
        padding: 2px 4px;
        margin-top: 2px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

/* Responsivo */
@media (max-width: 768px) {
    .month-grid-header {
        grid-template-columns: repeat(7, minmax(30px, 1fr));
        font-size: 12px;
    }

    .month-grid-body {
        grid-template-columns: repeat(7, minmax(50px, 1fr));
    }

    .month-cell {
        min-height: 70px;
        padding: 3px;
    }

    .month-cell-date {
        font-size: 10px;
    }

    .month-event-item {
        font-size: 8px;
        padding: 1px 3px;
    }
}

@media (max-width: 480px) {
    .month-grid-header {
        grid-template-columns: repeat(7, 1fr);
        font-size: 10px;
    }

    .month-grid-body {
        grid-template-columns: repeat(7, 1fr);
    }

    .month-cell {
        min-height: 50px;
        padding: 2px;
    }

    .month-cell-date {
        font-size: 8px;
    }

    .month-event-item {
        font-size: 7px;
    }
}


/* === CALENDAR HEADER === */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

    .calendar-header .header-left,
    .calendar-header .header-center,
    .calendar-header .header-right {
        display: flex;
        align-items: center;
    }

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

/* Ajusta espaçamento entre botões */
.calendar-header .btn-calendar {
    margin: 0 5px;
}

/* Centro: título e botões prev/next */
.calendar-header .header-center {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-width: 200px; /* evita quebrar feio */
}

.calendar-header .selected-month {
    margin: 0 10px;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
}

/* Direita: grupo de botões */
.calendar-header .header-right .btn-group .btn {
    margin-left: 5px;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch; /* faz cada bloco ocupar toda a largura */
    }

        .calendar-header .header-left,
        .calendar-header .header-center,
        .calendar-header .header-right {
            justify-content: center;
            width: 100%;
        }

        .calendar-header .selected-month {
            font-size: 0.9rem;
            word-break: break-word; /* quebra se for muito longo */
        }

        .calendar-header .btn-group {
            flex-wrap: wrap;
            justify-content: center;
        }

            .calendar-header .btn-group .btn {
                margin: 5px;
            }
}

.header-center {
    gap: 10px;
    font-weight: bold;
    font-size: 16px;
}

.btn-calendar {
    background: none;
    border: none;
    padding: 6px 12px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

    .btn-calendar:hover {
        background: #f0f0f0;
    }

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-month {
    min-width: 120px;
    text-align: center;
    text-transform: capitalize;
}


/* Responsividade para telas menores */
@media (max-width: 768px) {
    .hour-slot {
        padding-left: 45px;
        min-height: 40px;
    }

    .hour-label {
        width: 40px;
        font-size: 10px;
    }

    .event-card {
        font-size: 10px; /* se quiser diminuir o texto dos eventos */
    }
}

.calendar-board-toolbar,
.calendar-board-tag-creator {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
}

.calendar-board-toolbar strong {
    color: #111827;
    display: block;
    font-size: 15px;
}

.calendar-board-toolbar span {
    color: #667085;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.calendar-board-toolbar-actions,
.calendar-board-tag-creator {
    flex-wrap: wrap;
}

.calendar-board-input,
.calendar-board-title-input,
.calendar-board-select {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    color: #111827;
    font-size: 13px;
    min-height: 34px;
    outline: none;
    padding: 7px 10px;
}

.calendar-board-input:focus,
.calendar-board-title-input:focus,
.calendar-board-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.calendar-board-action {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    color: #111827;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
}

.calendar-board-action-primary {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.calendar-board-view {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-auto-columns: minmax(280px, 320px);
    grid-auto-flow: column;
    grid-template-columns: none;
    min-height: 520px;
    overflow-x: auto;
    padding: 18px;
}

.calendar-board-column {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    padding: 10px;
}

.calendar-board-column-over {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .24);
}

.calendar-board-column-loading {
    min-height: 180px;
}

.calendar-board-header {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-board-title {
    background: transparent;
    border: 0;
    color: #111827;
    flex: 1;
    font-size: 14px;
    font-weight: 900;
    min-width: 0;
    overflow: hidden;
    padding: 4px 2px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-board-title-input {
    flex: 1;
    min-width: 0;
}

.calendar-board-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.calendar-board-header-actions span {
    background: #e5e7eb;
    border-radius: 999px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    min-width: 24px;
    padding: 2px 7px;
    text-align: center;
}

.calendar-board-header-actions button {
    align-items: center;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    color: #475467;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.calendar-board-items {
    align-content: start;
    display: grid;
    flex: 1;
    gap: 10px;
}

.calendar-board-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    cursor: grab;
    display: grid;
    gap: 9px;
    padding: 12px;
    position: relative;
}

.calendar-board-card:active {
    cursor: grabbing;
}

.calendar-board-card-dragging {
    cursor: grabbing;
    opacity: .62;
    transform: rotate(1deg) scale(.99);
}

.calendar-board-drag-handle {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    color: #667085;
    cursor: grab;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 28px;
}

.calendar-board-drag-handle:active {
    cursor: grabbing;
}

.calendar-board-card-main {
    background: transparent;
    border: 0;
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 8px 34px 0 0;
    text-align: left;
}

.calendar-board-card-main strong {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-board-card-main small,
.calendar-board-card-main span {
    color: #667085;
    font-size: 12px;
}

.calendar-board-card-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-board-card-flags span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #475467;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 5px;
    padding: 4px 8px;
}

.calendar-board-tags,
.calendar-board-card-actions,
.calendar-board-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.calendar-board-tag {
    align-items: center;
    background: color-mix(in srgb, var(--tag-color) 18%, #fff);
    border: 1px solid color-mix(in srgb, var(--tag-color) 45%, #d0d5dd);
    border-radius: 999px;
    color: #111827;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
}

.calendar-board-select {
    flex: 1 1 150px;
    min-width: 0;
}

.calendar-board-file-button {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    color: #1d4ed8;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 38px;
}

.calendar-board-file-button input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
}

.calendar-board-files a {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    color: #344054;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
    padding: 6px 8px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-board-color {
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    height: 34px;
    padding: 2px;
    width: 42px;
}

@media (max-width: 768px) {
    .calendar-board-toolbar,
    .calendar-board-tag-creator {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-board-toolbar-actions {
        display: grid;
        gap: 8px;
    }
}

/* === OMNIPLAN MODERN CALENDAR === */

.agenda-shell {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: calc(100vh - 140px);
    overflow: hidden;
}

.calendar-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: block;
    padding: 0;
}

.calendar-header-top,
.calendar-command-row,
.calendar-view-tabs {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 18px;
}

.calendar-command-row {
    border-top: 1px solid #f1f5f9;
    padding-bottom: 8px;
    padding-top: 8px;
}

.calendar-title-group {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.calendar-title-group h4 {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.calendar-title-group small {
    color: #6b7280;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.calendar-product-icon {
    align-items: center;
    background: #bbf7d0;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #166534;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.calendar-actions,
.calendar-date-nav {
    align-items: center;
    display: flex;
    gap: 8px;
}

.calendar-add-button,
.btn-calendar,
.calendar-tab,
.scale-pill {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #111827;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
}

.calendar-add-button {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.btn-calendar-light {
    background: #f9fafb;
}

.icon-btn {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 34px;
}

.calendar-search {
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    color: #6b7280;
    display: flex;
    gap: 8px;
    margin: 0;
    max-width: 360px;
    min-height: 34px;
    padding: 0 11px;
    width: 100%;
}

.calendar-search input {
    background: transparent;
    border: 0;
    color: #111827;
    font-size: 13px;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.selected-month {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    min-width: 150px;
    text-align: center;
    text-transform: capitalize;
}

.calendar-view-tabs {
    border-top: 1px solid #f1f5f9;
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0;
}

.calendar-tab {
    border-color: transparent;
    border-radius: 0;
    color: #4b5563;
    min-height: 40px;
    padding: 9px 11px 11px;
    position: relative;
}

.calendar-tab.active {
    color: #111827;
}

.calendar-tab.active::after {
    background: #111827;
    bottom: 0;
    content: "";
    height: 2px;
    left: 10px;
    position: absolute;
    right: 10px;
}

.calendar-scale-switch {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    padding: 8px 18px;
}

.scale-pill {
    background: transparent;
    border-color: transparent;
    color: #4b5563;
    min-height: 30px;
    padding: 5px 10px;
}

.scale-pill.active {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.month-view,
.week-view-grid,
.day-view,
.calendar-list-view,
.calendar-board-view,
.calendar-timeline-view {
    background: #fff;
}

.month-grid-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.month-grid-header-day {
    border-right: 1px solid #f1f5f9;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    padding: 16px 14px;
    text-align: left;
}

.month-grid-body {
    grid-auto-rows: minmax(132px, 1fr);
}

.month-cell {
    background: #fff;
    border: 0;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    min-height: 132px;
    padding: 12px;
}

.month-cell:hover {
    background: #f8fafc;
}

.month-cell.other-month {
    background: #fbfdff;
    color: #9ca3af;
}

.month-cell.is-today {
    background: #f0fdf4;
}

.month-cell-date {
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.month-cell-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

.month-event-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    color: #111827;
    display: grid;
    gap: 8px;
    grid-template-columns: 4px minmax(0, 1fr) 16px;
    min-height: 54px;
    padding: 8px;
    text-align: left;
    width: 100%;
}

.month-event-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.event-color-strip {
    border-radius: 999px;
    height: 100%;
    min-height: 30px;
    width: 4px;
}

.event-card-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.event-card-content strong {
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card-content small {
    align-items: center;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 7px;
}

.event-more-icon {
    color: #6b7280;
}

.month-more-events {
    background: transparent;
    border: 0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.event-item {
    border: 0;
    border-left: 4px solid rgba(255, 255, 255, 0.55);
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.event-item-content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.event-item-content strong,
.event-item-content span {
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-item-content span {
    font-size: 11px;
    font-weight: 700;
    opacity: .9;
}

.event-item-icon {
    color: rgba(255, 255, 255, .9);
    flex: 0 0 auto;
    font-size: 12px;
    margin-top: 1px;
}

.event-item-short {
    padding-bottom: 6px;
    padding-top: 6px;
}

.week-view-grid {
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
}

.week-day-header {
    background: #fff;
    border-color: #e5e7eb;
    color: #374151;
    font-size: 12px;
}

.hour-slot {
    border-color: #eef2f7;
}

.calendar-list-view,
.calendar-timeline-view {
    padding: 18px;
}

.calendar-list-group {
    display: grid;
    gap: 16px;
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 14px 0;
}

.calendar-list-date {
    display: grid;
    gap: 2px;
}

.calendar-list-date strong {
    color: #111827;
    font-size: 28px;
    line-height: 1;
}

.calendar-list-date span,
.calendar-list-item small,
.calendar-list-meta {
    color: #6b7280;
    font-size: 12px;
}

.calendar-list-items {
    display: grid;
    gap: 10px;
}

.calendar-list-item {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    display: grid;
    gap: 12px;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 12px;
    text-align: left;
}

.calendar-list-item:hover,
.calendar-board-card:hover,
.calendar-timeline-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.calendar-color-dot {
    border-radius: 999px;
    height: 10px;
    width: 10px;
}

.calendar-list-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.calendar-list-main strong,
.calendar-board-card strong,
.timeline-content strong {
    color: #111827;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-list-meta {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    white-space: nowrap;
}

.calendar-board-view {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    overflow-x: auto;
    padding: 18px;
}

.calendar-board-column {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 420px;
    padding: 12px;
}

.calendar-board-header {
    align-items: center;
    color: #111827;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-board-header span {
    background: #e5e7eb;
    border-radius: 999px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    padding: 2px 7px;
    text-align: center;
}

.calendar-board-items {
    display: grid;
    gap: 10px;
}

.calendar-board-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    display: grid;
    gap: 8px;
    padding: 12px;
    position: relative;
    text-align: left;
}

.calendar-card-accent {
    border-radius: 999px;
    height: 3px;
    left: 12px;
    position: absolute;
    right: 12px;
    top: 8px;
}

.calendar-board-card strong {
    margin-top: 8px;
}

.calendar-board-card small,
.calendar-board-card span {
    color: #6b7280;
    font-size: 12px;
}

.calendar-board-card .calendar-board-card-flags span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #475467;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 5px;
    padding: 4px 8px;
}

.calendar-board-empty,
.calendar-empty-state {
    color: #6b7280;
    font-size: 13px;
    padding: 18px;
    text-align: center;
}

.calendar-empty-state {
    align-items: center;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-height: 220px;
}

.calendar-empty-state i {
    color: #9ca3af;
    font-size: 24px;
}

.calendar-empty-state strong {
    color: #111827;
}

.calendar-timeline-view {
    display: grid;
    gap: 0;
}

.calendar-timeline-item {
    align-items: center;
    background: #fff;
    border: 0;
    border-left: 1px solid #e5e7eb;
    display: grid;
    gap: 14px;
    grid-template-columns: 18px 58px minmax(0, 1fr) auto;
    margin-left: 18px;
    padding: 14px 0 14px 18px;
    position: relative;
    text-align: left;
}

.timeline-marker {
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #d1d5db;
    height: 14px;
    left: -7px;
    position: absolute;
    width: 14px;
}

.timeline-date {
    display: grid;
    text-align: center;
}

.timeline-date strong {
    color: #111827;
    font-size: 22px;
    line-height: 1;
}

.timeline-date small,
.timeline-content small,
.timeline-content span {
    color: #6b7280;
    font-size: 12px;
}

.timeline-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.timeline-chip {
    background: #f3f4f6;
    border-radius: 999px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .calendar-header-top,
    .calendar-command-row {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-actions,
    .calendar-date-nav {
        justify-content: space-between;
    }

    .calendar-search {
        max-width: none;
    }

    .calendar-board-view {
        grid-template-columns: repeat(4, minmax(240px, 260px));
    }

    .calendar-list-group,
    .calendar-list-item,
    .calendar-timeline-item {
        grid-template-columns: 1fr;
    }

    .calendar-list-meta,
    .timeline-chip {
        justify-content: flex-start;
        white-space: normal;
    }
}
