/**
 * Calendario area aziende.
 */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

body.company-area.co-calendar-page {
    background: #f5faf7;
    background-image: none;
}

.cx {
    --cx-green: #1e4536;
    --cx-brand: #2a5c47;
    --cx-mid: #3d7260;
    --cx-light: #6aab8a;
    --cx-soft: #ecf5ef;
    --cx-sand: #d4956a;
    --cx-clay: #b87262;
    --cx-ink: #1a1a18;
    --cx-muted: #57534e;
    --cx-faint: #78716c;
    --cx-line: rgba(30, 69, 54, 0.12);
    --cx-card: #fff;
    max-width: 1120px;
    color: var(--cx-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

.cx h1,
.cx h2,
.cx h3,
.cx h4,
.cx strong {
    font-family: inherit;
    letter-spacing: -0.03em;
}

.cx-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem 2rem;
    margin-bottom: 1.25rem;
}

.cx-kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cx-faint);
}

.cx-plan {
    padding: 0.12rem 0.45rem;
    border: 1px solid var(--cx-line);
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.cx-plan--pro {
    background: var(--cx-green);
    border-color: var(--cx-green);
    color: #fff;
}

.cx h1 {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--cx-green);
}

.cx-lead,
.cx-quiet,
.cx-stat p,
.cx-hero__meta,
.cx-hero__title,
.cx-item__when,
.cx-item__where {
    margin: 0.35rem 0 0;
    color: var(--cx-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.cx-head__tools,
.cx-filters,
.cx-month__nav,
.cx-item__actions,
.cx-item__meta,
.cx-sync__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.cx-filters,
.cx-month__nav {
    padding: 3px;
    background: var(--cx-soft);
    border-radius: 999px;
}

.cx-filter,
.cx-month__nav a,
.cx-today,
.cx-textlink,
.cx-export,
.cx-btn,
.cx-sync button {
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.cx-filter,
.cx-month__nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--cx-muted);
}

.cx-filter.is-on,
.cx-day.is-selected {
    background: var(--cx-green);
    color: #fff;
}

.cx-export,
.cx-btn,
.cx-sync__row button {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: var(--cx-green);
    color: #fff;
    cursor: pointer;
}

.cx-textlink { color: var(--cx-brand); }
.cx-textlink:hover,
.cx-export:hover,
.cx-btn:hover,
.cx-sync__row button:hover { color: var(--cx-green); }
.cx-export:hover,
.cx-btn:hover,
.cx-sync__row button:hover { background: #17382c; color: #fff; }

.cx-exec {
    display: grid;
    grid-template-columns: minmax(16rem, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.cx-hero,
.cx-stat,
.cx-month,
.cx-agenda,
.cx-sync {
    background: var(--cx-card);
    border: 1px solid var(--cx-line);
    border-radius: 18px;
}

.cx-hero {
    grid-row: span 2;
    grid-column: 1;
    padding: 1.2rem 1.25rem;
    background: var(--cx-soft);
    border-color: transparent;
}

.cx-exec {
    grid-template-columns: minmax(15rem, 1.15fr) repeat(2, minmax(0, 1fr));
}

.cx-stat:nth-child(2) { grid-column: 2; }
.cx-stat:nth-child(3) { grid-column: 3; }
.cx-stat:nth-child(4) { grid-column: 2; }
.cx-stat:nth-child(5) { grid-column: 3; }

.cx-hero__label,
.cx-stat__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cx-faint);
}

.cx-hero__figure {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-top: 0.55rem;
}

.cx-hero__figure strong,
.cx-stat strong,
.cx-item__time strong {
    font-weight: 800;
    color: var(--cx-green);
    font-variant-numeric: tabular-nums;
}

.cx-hero__figure strong { font-size: 2.8rem; line-height: 0.95; }
.cx-hero__figure span { font-weight: 700; color: var(--cx-mid); }
.cx-hero__title { font-weight: 700; color: var(--cx-ink); }

.cx-stat {
    padding: 0.9rem 1rem;
}

.cx-stat strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.55rem;
    line-height: 1;
}

.cx-stat p { font-size: 0.78rem; }
.cx-stat--alert strong { color: var(--cx-clay); }

.cx-board {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.85fr);
    gap: 0.8rem;
    align-items: start;
}

.cx-month,
.cx-agenda { padding: 1rem 1rem 1.1rem; }

.cx-month__nav { margin-bottom: 0.85rem; background: transparent; padding: 0; gap: 0.35rem; }
.cx-month__nav h2 {
    margin: 0 0.35rem;
    min-width: 9rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
}
.cx-month__nav > a:not(.cx-today) {
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: var(--cx-soft);
}
.cx-today {
    margin-left: 0.35rem;
    width: auto;
    padding: 0.35rem 0.75rem;
    background: var(--cx-soft);
}

.cx-weekdays,
.cx-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.cx-weekdays {
    margin-bottom: 4px;
    color: var(--cx-faint);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.cx-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-height: 4.6rem;
    padding: 0.35rem 0.3rem 0.3rem;
    border-radius: 12px;
    background: #f7fbf8;
    color: var(--cx-ink);
    text-decoration: none;
}

.cx-day.is-outside { opacity: 0.38; }
.cx-day.is-today { box-shadow: inset 0 0 0 1.5px var(--cx-brand); }
.cx-day.is-selected { background: var(--cx-green); color: #fff; }
.cx-day__num { font-size: 0.78rem; font-weight: 800; }

.cx-day__chips { display: none; width: 100%; }
.cx-chip,
.cx-day__more {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 0.05rem 0.28rem;
}
.cx-chip--meeting { background: rgba(42, 92, 71, 0.14); color: var(--cx-green); }
.cx-chip--hiring_event { background: rgba(212, 149, 106, 0.28); color: #6b4a32; }
.cx-day.is-selected .cx-chip,
.cx-day.is-selected .cx-day__more { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cx-day__more { color: var(--cx-faint); }

.cx-dots { display: flex; gap: 3px; }
.cx-dots span {
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: var(--cx-brand);
}
.cx-day.is-selected .cx-dots span { background: #fff; }

.cx-agenda__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.cx-agenda h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }

.cx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.cx-item {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--cx-line);
}
.cx-item:first-child { border-top: 0; padding-top: 0; }
.cx-item__time strong { display: block; font-size: 1rem; }
.cx-item__time span { font-size: 0.72rem; color: var(--cx-faint); }
.cx-item h4 { margin: 0.2rem 0 0; font-size: 0.95rem; font-weight: 800; }
.cx-item__when,
.cx-item__where { font-size: 0.78rem; }
.cx-item__where { overflow-wrap: anywhere; }
.cx-item__actions { margin-top: 0.45rem; }

.cx-badge,
.cx-status {
    display: inline-flex;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}
.cx-badge { background: var(--cx-soft); color: var(--cx-green); }
.cx-item--hiring_event .cx-badge { background: rgba(212, 149, 106, 0.22); color: #6b4a32; }
.cx-status { color: var(--cx-muted); }
.cx-item--pending .cx-status,
.cx-item--counter .cx-status { color: var(--cx-clay); }
.cx-item--accepted .cx-status,
.cx-item--scheduled .cx-status,
.cx-item--live .cx-status { color: var(--cx-brand); }

.cx-sync {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 1.25rem;
    margin-top: 0.9rem;
    padding: 1.1rem 1.15rem;
}
.cx-sync h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.cx-sync__box label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cx-faint);
}
.cx-sync input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--cx-line);
    border-radius: 10px;
    background: #f7fbf8;
    color: var(--cx-ink);
    font: inherit;
    font-size: 0.78rem;
}
.cx-sync form { margin-top: 0.7rem; }
.cx-sync form button {
    border: 0;
    background: none;
    color: var(--cx-clay);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}
.cx-sync__copied {
    margin: 0.45rem 0 0;
    color: var(--cx-brand);
    font-size: 0.82rem;
    font-weight: 700;
}

html[data-theme="dark"] .cx,
body.company-pd2-page.pd2-dark .cx {
    --cx-ink: #f5faf7;
    --cx-muted: #c5d1cb;
    --cx-faint: #9ecfb0;
    --cx-line: rgba(158, 207, 176, 0.16);
    --cx-card: #1c2823;
    --cx-soft: rgba(42, 92, 71, 0.35);
}
html[data-theme="dark"] .cx-day,
body.company-pd2-page.pd2-dark .cx-day,
html[data-theme="dark"] .cx-sync input,
body.company-pd2-page.pd2-dark .cx-sync input {
    background: #24352d;
    color: #f5faf7;
}

@media (min-width: 980px) {
    .cx-day { min-height: 5.6rem; }
    .cx-day__chips { display: flex; flex-direction: column; gap: 2px; }
    .cx-dots { display: none; }
}

@media (max-width: 980px) {
    .cx-head,
    .cx-exec,
    .cx-board,
    .cx-sync {
        display: flex;
        flex-direction: column;
    }
    .cx h1 { font-size: 1.85rem; }
    .cx-hero__figure strong { font-size: 2.3rem; }
    .cx-day { min-height: 2.8rem; align-items: center; padding: 0.25rem; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.company-area.co-calendar-page .co-main.cd-page {
    max-width: 1080px;
}

.co-cal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.co-cal__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.co-cal__month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-cal__month {
    margin: 0;
    min-width: 11rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--cd-ink, #0f172a);
}

.co-cal__nav-btn,
.co-cal__today,
.co-cal__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--cd-border, rgba(15, 23, 42, 0.08));
    background: var(--cd-surface, #fff);
    color: var(--cd-ink-soft, #334155);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.co-cal__nav-btn {
    width: 36px;
    padding: 0;
}

.co-cal__filter.is-active,
.co-cal__day.is-selected {
    background: var(--bw-verde, #2a5c47);
    border-color: var(--bw-verde, #2a5c47);
    color: #fff;
}

.co-cal__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.co-cal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.co-cal__grid-wrap,
.co-cal__agenda,
.co-cal-sync {
    background: var(--cd-surface, #fff);
    border: 1px solid var(--cd-border, rgba(15, 23, 42, 0.08));
    border-radius: 16px;
    padding: 16px;
}

.co-cal__weekdays,
.co-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.co-cal__weekdays {
    margin-bottom: 6px;
    color: var(--cd-ink-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.co-cal__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--cd-ink, #0f172a);
    background: var(--cd-surface-muted, #f8fafc);
}

.co-cal__day.is-outside {
    opacity: 0.45;
}

.co-cal__day.is-today {
    box-shadow: inset 0 0 0 2px var(--bw-verde, #2a5c47);
}

.co-cal__day-num {
    font-size: 0.875rem;
    font-weight: 700;
}

.co-cal__dots {
    display: flex;
    gap: 3px;
}

.co-cal__dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--bw-verde, #2a5c47);
}

.co-cal__day.is-selected .co-cal__dots span {
    background: #fff;
}

.co-cal__agenda-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.co-cal__agenda-head h3 {
    margin: 0;
    font-size: 1rem;
}

.co-cal__agenda-head a,
.co-cal__item-actions a {
    color: var(--bw-verde, #2a5c47);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.co-cal__empty {
    margin: 0;
    color: var(--cd-ink-muted, #64748b);
    line-height: 1.5;
}

.co-cal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-cal__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--cd-surface-muted, #f8fafc);
    border: 1px solid var(--cd-border, rgba(15, 23, 42, 0.08));
}

.co-cal__item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 4px;
}

.co-cal__badge,
.co-cal__status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.co-cal__badge {
    background: color-mix(in srgb, var(--bw-verde, #2a5c47) 14%, transparent);
    color: var(--cd-ink, #1e4536);
}

.co-cal__status {
    background: var(--cd-surface, #fff);
    color: var(--cd-ink-soft, #334155);
}

.co-cal__item--pending .co-cal__status,
.co-cal__item--counter .co-cal__status {
    background: #fffbeb;
    color: #92400e;
}

.co-cal__item--accepted .co-cal__status,
.co-cal__item--scheduled .co-cal__status,
.co-cal__item--live .co-cal__status {
    background: #ecfdf3;
    color: #166534;
}

.co-cal__item-title {
    margin: 0;
    font-size: 1rem;
}

.co-cal__item-when,
.co-cal__item-where {
    margin: 2px 0 0;
    color: var(--cd-ink-muted, #64748b);
    font-size: 0.875rem;
}

.co-cal__item-where {
    overflow-wrap: anywhere;
}

.co-cal__item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.co-cal-sync {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 20px;
    margin-top: 20px;
}

.co-cal-sync__copy h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
}

.co-cal-sync__copy p,
.co-cal-sync__steps {
    margin: 0;
    color: var(--cd-ink-soft, #334155);
    line-height: 1.55;
}

.co-cal-sync__steps {
    margin-top: 12px;
    padding-left: 1.2rem;
}

.co-cal-sync__note {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--cd-ink-muted, #64748b);
}

.co-cal-sync__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.co-cal-sync__row {
    display: flex;
    gap: 8px;
}

.co-cal-sync__input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--cd-border-strong, rgba(15, 23, 42, 0.16));
    background: var(--cd-surface-muted, #f8fafc);
    color: var(--cd-ink, #0f172a);
    font-size: 0.8125rem;
}

.co-cal-sync__copied {
    margin: 8px 0 0;
    color: var(--bw-verde-dark, #1e4536);
    font-size: 0.875rem;
    font-weight: 600;
}

.co-cal-sync__rotate {
    margin-top: 12px;
}

@media (max-width: 860px) {
    .co-cal__layout,
    .co-cal-sync {
        grid-template-columns: 1fr;
    }

    .co-cal__day {
        min-height: 48px;
    }

    .co-cal__month {
        min-width: 0;
        font-size: 1.05rem;
    }
}
