/* ============================================================
   ABOTRIX V24.0.2C-1
   EXECUTIVE CALENDAR, SCHEDULE & SUMMARY
   ============================================================ */

.abotrix-executive-dashboard {
    margin-top: 12px;
}

.abotrix-executive-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 11px;
}

.abotrix-executive-heading span,
.abotrix-executive-heading strong,
.abotrix-executive-heading small {
    display: block;
}

.abotrix-executive-heading span {
    color: #178ba8;
    font-size: 6px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.abotrix-executive-heading strong {
    margin-top: 3px;
    color: #18394b;
    font-size: 12px;
}

.abotrix-executive-heading small {
    color: #859aa5;
    font-size: 6px;
    line-height: 1.5;
    text-align: right;
}

.abotrix-executive-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(250px, 0.85fr);
    gap: 11px;
}

.abotrix-executive-card {
    overflow: hidden;
    border: 1px solid #dce6eb;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 9px 25px rgba(33, 75, 95, 0.035);
}

.abotrix-executive-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px;
    border-bottom: 1px solid #e4ecef;
}

.abotrix-executive-card-header span,
.abotrix-executive-card-header strong,
.abotrix-executive-card-header small {
    display: block;
}

.abotrix-executive-card-header span {
    color: #1c91ac;
    font-size: 6px;
    font-weight: 820;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.abotrix-executive-card-header strong {
    margin-top: 3px;
    color: #1b3c4e;
    font-size: 10px;
}

.abotrix-executive-card-header small {
    color: #8ca0aa;
    font-size: 6px;
    white-space: nowrap;
}

/* Calendar */

.abotrix-executive-calendar-body {
    padding: 13px 15px 15px;
}

.abotrix-executive-calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.abotrix-executive-calendar-month {
    color: #274b5e;
    font-size: 9px;
    font-weight: 800;
}

.abotrix-executive-calendar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.abotrix-executive-calendar-nav button {
    width: 27px;
    height: 27px;
    border: 1px solid #dce7eb;
    border-radius: 7px;
    color: #68818e;
    background: #f8fbfc;
    font: inherit;
    font-size: 8px;
    cursor: pointer;
}

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

.abotrix-executive-calendar-weekday {
    padding: 4px 1px;
    color: #93a4ad;
    font-size: 5px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.abotrix-executive-calendar-day {
    position: relative;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #5d7785;
    background: #fafcfd;
    font-size: 6px;
    cursor: default;
}

.abotrix-executive-calendar-day.is-muted {
    color: #c0cbd0;
    background: transparent;
}

.abotrix-executive-calendar-day.is-today {
    color: #ffffff;
    background: linear-gradient(135deg, #178aa7, #22a9c2);
    box-shadow: 0 7px 16px rgba(24, 146, 174, 0.2);
}

.abotrix-executive-calendar-day.has-events:not(.is-today)::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #46ca98;
}

/* Schedule */

.abotrix-executive-schedule {
    padding: 7px 15px 14px;
}

.abotrix-executive-schedule-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px 12px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    min-height: 54px;
}

.abotrix-executive-schedule-time {
    padding-top: 11px;
    color: #6b8491;
    font-size: 6px;
    font-weight: 780;
    text-align: right;
    white-space: nowrap;
}

.abotrix-executive-schedule-line {
    position: relative;
}

.abotrix-executive-schedule-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #dfebef;
}

.abotrix-executive-schedule-dot {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #8da6b2;
    box-shadow: 0 0 0 1px #cbdce3;
    transform: translateX(-50%);
}

.abotrix-executive-schedule-content {
    margin: 5px 0;
    padding: 9px 10px;
    border: 1px solid #e2eaee;
    border-radius: 9px;
    background: #fbfcfd;
}

.abotrix-executive-schedule-content strong,
.abotrix-executive-schedule-content small {
    display: block;
}

.abotrix-executive-schedule-content strong {
    color: #365563;
    font-size: 7px;
}

.abotrix-executive-schedule-content small {
    margin-top: 3px;
    color: #91a2aa;
    font-size: 6px;
    line-height: 1.4;
}

.abotrix-executive-schedule-item.is-next
.abotrix-executive-schedule-dot {
    background: #32c68f;
    box-shadow:
        0 0 0 1px #8dddbf,
        0 0 0 5px rgba(50, 198, 143, 0.1);
    animation: abotrix-executive-next-pulse 1.8s infinite;
}

.abotrix-executive-schedule-item.is-next
.abotrix-executive-schedule-content {
    border-color: #bce7d5;
    background: #f0faf6;
}

.abotrix-executive-schedule-item.is-next
.abotrix-executive-schedule-content::before {
    content: "Next";
    display: inline-flex;
    margin-bottom: 5px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #278264;
    background: #ddf5ea;
    font-size: 5px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes abotrix-executive-next-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.18);
    }
}

/* Summary */

.abotrix-executive-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
}

.abotrix-executive-summary-item {
    min-height: 83px;
    padding: 11px;
    border: 1px solid #e0e9ed;
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(246, 250, 252, 0.96)
        );
}

.abotrix-executive-summary-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #1688a4;
    background: #e8f6f9;
    font-size: 8px;
}

.abotrix-executive-summary-item strong,
.abotrix-executive-summary-item span,
.abotrix-executive-summary-item small {
    display: block;
}

.abotrix-executive-summary-item strong {
    margin-top: 8px;
    color: #1b3c4f;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.abotrix-executive-summary-item span {
    margin-top: 2px;
    color: #587382;
    font-size: 6px;
    font-weight: 750;
}

.abotrix-executive-summary-item small {
    margin-top: 4px;
    color: #94a4ac;
    font-size: 5px;
    line-height: 1.4;
}

/* Daily focus */

.abotrix-executive-focus {
    margin: 0 14px 14px;
    padding: 12px;
    border: 1px solid #d8e9ef;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef9fb, #f7fcfd);
}

.abotrix-executive-focus span,
.abotrix-executive-focus strong,
.abotrix-executive-focus small {
    display: block;
}

.abotrix-executive-focus span {
    color: #1989a4;
    font-size: 5px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.abotrix-executive-focus strong {
    margin-top: 5px;
    color: #254c5f;
    font-size: 8px;
    line-height: 1.4;
}

.abotrix-executive-focus small {
    margin-top: 4px;
    color: #77909c;
    font-size: 6px;
    line-height: 1.45;
}

/* Preview disclaimer */

.abotrix-executive-preview-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px dashed #d4e3e9;
    border-radius: 9px;
    color: #8297a2;
    background: rgba(249, 252, 253, 0.9);
    font-size: 5px;
}

.abotrix-executive-preview-note i {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #3fc895;
}

/* Refresh animation */

.abotrix-executive-dashboard.is-refreshing
.abotrix-executive-card {
    animation: abotrix-executive-refresh 600ms ease;
}

@keyframes abotrix-executive-refresh {
    0% {
        border-color: #dce6eb;
    }

    45% {
        border-color: #83d3e3;
        box-shadow: 0 0 0 3px rgba(43, 171, 198, 0.07);
    }

    100% {
        border-color: #dce6eb;
    }
}

@media (max-width: 900px) {
    .abotrix-executive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .abotrix-executive-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .abotrix-executive-heading small {
        text-align: left;
    }

    .abotrix-executive-summary-grid {
        grid-template-columns: 1fr;
    }

    .abotrix-executive-schedule-item {
        grid-template-columns: 48px 10px minmax(0, 1fr);
    }

    .abotrix-executive-calendar-day {
        min-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abotrix-executive-schedule-item.is-next
    .abotrix-executive-schedule-dot,
    .abotrix-executive-dashboard.is-refreshing
    .abotrix-executive-card {
        animation: none !important;
    }
}
