/* Shared month-strip styles — used by agenda.php and crm_compartilhado.php */

.crm-month-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 10px;
    padding: 5px 8px;
    margin-bottom: 12px;
    white-space: nowrap;
}
.crm-month-strip::-webkit-scrollbar { display: none; }

/* Scoped overrides: left fills space, right takes only what it needs */
.crm-month-strip > .crm-cal-header-left {
    flex: 1 1 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.crm-month-strip > .crm-cal-header-left::-webkit-scrollbar { display: none; }
.crm-month-strip > .crm-cal-header-right {
    flex: 0 0 auto;
    margin-left: 8px;
}

/* Three-column native calendar header (agenda.php / relatagenda.php) */
.crm-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    gap: 0.5em;
}
.crm-cal-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.crm-cal-header-center {
    flex-shrink: 0;
    padding: 0 1.5rem;
    text-align: center;
}
.crm-cal-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.crm-cal-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
    color: var(--bs-body-color);
    white-space: nowrap;
}

/* Support both <a> and <button> for year navigation arrows */
.crm-year-btn {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--bs-body-color, #6b7280);
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .15s;
    /* button reset */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.crm-year-btn:hover {
    background: var(--bs-tertiary-bg, #f3f4f6);
    color: var(--bs-emphasis-color, #111827);
}

.crm-year-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-body-color, #374151);
    padding: 4px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.crm-strip-divider {
    width: 1px;
    height: 22px;
    background: var(--bs-border-color, #e5e7eb);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Support both <a> and <button> for month pills */
.crm-month-pill {
    padding: 5px 4px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-body-color, #6b7280);
    text-decoration: none;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    transition: background .15s, color .15s;
    /* button reset */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}
.crm-month-pill:hover {
    background: var(--bs-tertiary-bg, #f3f4f6);
    color: var(--bs-emphasis-color, #111827);
}
.crm-month-pill.active {
    background: #2563eb;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(37,99,235,.35);
}
/* Desktop: increase strip font sizes for legibility (mobile keeps the base 12/14px) */
/* Mobile: remove strip borders to prevent horizontal scroll */
@media (max-width: 1279px) {
    .crm-month-strip {
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.crm-month-pill.global-pill { margin-left: 4px; }

.crm-artist-badge {
    margin-left: auto;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #065f46;
}

.fc-toolbar-title { font-weight: 700; }
