/* ============================================================
   Trial Management - Styles
   Extends billing system's style.css design language
   Uses same CSS custom properties: --bg-dark, --bg-sidebar,
   --bg-card, --border-color, --text-main, --text-muted,
   --primary, --radius-*, --transition, etc.
   ============================================================ */

/* ------------------------------------------------
   Toolbar
   ------------------------------------------------ */
.trial-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Month Navigation */
.month-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: var(--radius-md);
}

.month-nav-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.month-nav-btn:hover {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.04);
    border-color: var(--border-color);
}

.month-nav-btn:active {
    transform: scale(0.93);
}

.month-today-btn {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-family);
    margin-left: 4px;
}

.month-nav-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 120px;
    text-align: center;
    letter-spacing: -0.3px;
    user-select: none;
}

/* Business Days Selector */
.biz-days-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
}

.biz-days-selector label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.biz-days-selector input[type="number"] {
    width: 56px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: var(--transition);
    -moz-appearance: textfield;
}

.biz-days-selector input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 188, 165, 0.15);
}

.biz-days-unit {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* View months selector */
.view-months-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.view-months-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 188, 165, 0.15);
}

/* ------------------------------------------------
   Calendar / Gantt Panel
   ------------------------------------------------ */
.trial-calendar-panel {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.calendar-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
}

/* Empty state */
.calendar-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 24px;
    color: var(--text-muted);
}

.calendar-empty-state i {
    font-size: 3rem;
    opacity: 0.3;
}

.calendar-empty-state p {
    font-size: 0.95rem;
}

/* Calendar Table - Continuous Scroll Layout */
.calendar-table {
    border-collapse: collapse;
    table-layout: fixed;
}

/* Each day column gets a fixed narrow width for compact display */
.calendar-table th:not(.calendar-corner-cell):not(.month-label-corner),
.calendar-table td:not(.calendar-device-label) {
    min-width: 36px;
    width: 36px;
    max-width: 36px;
}

/* ---- Month label header row ---- */
.month-label-row {
    position: sticky;
    top: 0;
    z-index: 12;
}

.month-label-corner {
    position: sticky;
    left: 0;
    z-index: 25;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    min-width: 140px;
    width: 140px;
    max-width: 180px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 8px;
    vertical-align: middle;
}

.month-header-cell {
    background-color: #f0f4f3;
    border-bottom: 1px solid var(--border-color);
    border-right: 2px solid rgba(88, 188, 165, 0.35);
    padding: 6px 12px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 11;
}

.month-header-cell:last-child {
    border-right: 1px solid var(--border-color);
}

.month-header-label {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* ---- Month boundary (first day of month) ---- */
.calendar-header-cell.month-start {
    border-left: 2px solid rgba(88, 188, 165, 0.35);
}

.calendar-cell.month-start {
    border-left: 2px solid rgba(88, 188, 165, 0.2);
}

/* ---- Header row cells ---- */
.calendar-header-cell {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg-sidebar);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 10px 4px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    user-select: none;
    line-height: 1.35;
}

.calendar-header-cell .header-date {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.calendar-header-cell .header-dow {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.calendar-header-cell.non-business {
    color: var(--text-muted);
    opacity: 0.7;
}

.calendar-header-cell.sunday .day-name {
    color: #ef4444;
}

.calendar-header-cell.saturday .day-name {
    color: #3b82f6;
}

.calendar-header-cell.today {
    background-color: rgba(88, 188, 165, 0.08);
}

.calendar-header-cell.today .header-date {
    color: var(--primary);
}

/* Corner label cell (top-left) */
.calendar-corner-cell {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
    background-color: var(--bg-sidebar);
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 140px;
    width: 140px;
    max-width: 180px;
    padding: 10px 8px;
}

/* ---- Device label (left column) ---- */
.calendar-device-label {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: var(--bg-sidebar);
    border-right: 2px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    cursor: default;
    transition: var(--transition);
}

.calendar-device-label:hover {
    background-color: rgba(88, 188, 165, 0.03);
}

.device-label-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(88, 188, 165, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.device-label-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.device-label-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-label-serial {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-label-sim {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(88, 188, 165, 0.08);
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 2px;
    width: fit-content;
}

/* ---- Day cells ---- */
.calendar-cell {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    min-height: 56px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background-color: #ffffff;
}

.calendar-cell:hover {
    background-color: rgba(88, 188, 165, 0.04);
}

.calendar-cell.non-business {
    background-color: #f3f4f6;
    cursor: default;
}

.calendar-cell.non-business:hover {
    background-color: #e5e7eb;
}

.calendar-cell.today {
    background-color: rgba(88, 188, 165, 0.08);
    box-shadow: inset 0 0 0 2px rgba(88, 188, 165, 0.3);
}

.calendar-cell.reserved {
    background-color: rgba(255, 153, 0, 0.12);
}

.calendar-cell.reserved:hover {
    background-color: rgba(255, 153, 0, 0.18);
}

.calendar-cell.preview {
    background-color: rgba(255, 153, 0, 0.08);
    border: 1.5px dashed rgba(255, 153, 0, 0.4);
    animation: previewPulse 1.5s ease-in-out infinite;
}

@keyframes previewPulse {
    0%, 100% { background-color: rgba(255, 153, 0, 0.06); }
    50% { background-color: rgba(255, 153, 0, 0.14); }
}

/* ---- Reservation bar (spans multiple cells) ---- */
.reservation-bar {
    position: absolute;
    top: 3px;
    left: 1px;
    height: calc(100% - 6px);
    background: linear-gradient(135deg, #FF9900 0%, #E68A00 50%, #CC7A00 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: pointer;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.reservation-bar:hover {
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.35);
    transform: translateY(-1px);
}

.reservation-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.reservation-edit-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 5;
}

.reservation-bar:hover .reservation-edit-icon {
    opacity: 1;
}

/* ---- Event markers ---- */
.marker-explanation,
.marker-midcheck,
.marker-review {
    position: absolute;
    bottom: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.marker-explanation {
    background-color: #3b82f6;
    left: calc(50% - 14px);
}

.marker-midcheck {
    background-color: #10b981;
    left: calc(50% - 4px);
}

.marker-review {
    background-color: #ef4444;
    left: calc(50% + 6px);
}

/* Device Return Date marker */
.event-marker.marker-return {
    color: #ea580c;
    left: calc(50% + 16px);
}

.marker-dot-return {
    background-color: #ea580c;
}

/* Return period hatching (3 calendar days) */
.calendar-cell.return-period {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(234, 88, 12, 0.15) 3px,
        rgba(234, 88, 12, 0.15) 6px
    ) !important;
}

/* Marker tooltips on hover */
.marker-explanation::after,
.marker-midcheck::after,
.marker-review::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.marker-explanation:hover::after,
.marker-midcheck:hover::after,
.marker-review:hover::after {
    opacity: 1;
}

/* ------------------------------------------------
   Legend Bar
   ------------------------------------------------ */
.trial-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-reserved {
    background: linear-gradient(135deg, #FF9900, #CC7A00);
}

.legend-preview {
    background: rgba(255, 153, 0, 0.15);
    border: 1.5px dashed rgba(255, 153, 0, 0.5);
}

.legend-explanation {
    background-color: #3b82f6;
    border-radius: 50%;
}

.legend-midcheck {
    background-color: #10b981;
    border-radius: 50%;
}

.legend-review {
    background-color: #ef4444;
    border-radius: 50%;
}

/* Legend swatch for return */
.legend-return {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        rgba(234, 88, 12, 0.3) 2px,
        rgba(234, 88, 12, 0.3) 4px
    );
    border: 1px solid rgba(234, 88, 12, 0.4);
}

.legend-weekend {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
}

.legend-today {
    background-color: rgba(88, 188, 165, 0.12);
    box-shadow: inset 0 0 0 1.5px rgba(88, 188, 165, 0.35);
}

/* ------------------------------------------------
   Modal Overrides & Extensions
   (base modal styles live in style.css)
   ------------------------------------------------ */

/* Wider modal variant */
.modal-card-lg {
    width: 700px;
    max-width: 92vw;
}

.modal-card-wide {
    width: 640px;
    max-width: 92vw;
}

/* Device table within modal */
.device-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
}

.device-table-wrapper .data-table td {
    font-size: 0.85rem;
}

/* Action buttons in device table */
.device-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.device-action-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.02);
}

.device-action-btn.delete:hover {
    color: var(--danger);
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.04);
}

/* SIM badge in table */
.sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.sim-badge.active {
    background-color: rgba(88, 188, 165, 0.1);
    color: var(--primary);
}

.sim-badge.inactive {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}

/* Checkbox label style */
.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding-top: 24px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Required mark */
.required-mark {
    color: var(--danger);
    font-weight: 700;
}

/* Danger outline button */
.btn-danger-outline {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-danger-outline:hover {
    background-color: rgba(239, 68, 68, 0.06);
    border-color: var(--danger);
}

/* Reservation modal footer */
.reservation-modal-footer {
    justify-content: flex-start;
}

/* ------------------------------------------------
   Period Display (read-only)
   ------------------------------------------------ */
.period-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: rgba(88, 188, 165, 0.04);
    border: 1px solid rgba(88, 188, 165, 0.15);
    border-radius: var(--radius-md);
    min-height: 44px;
}

.period-dates {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.2px;
}

.period-duration {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background-color: rgba(88, 188, 165, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Marker dots in form labels */
.marker-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.marker-dot-explanation { background-color: #3b82f6; }
.marker-dot-midcheck { background-color: #10b981; }
.marker-dot-review { background-color: #ef4444; }

/* ------------------------------------------------
   ZOHO Deal Search Dropdown
   ------------------------------------------------ */
.zoho-deal-search-wrapper {
    position: relative;
}

.zoho-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.zoho-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.zoho-search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.zoho-search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 188, 165, 0.15);
}

.zoho-clear-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.zoho-clear-btn:hover {
    color: var(--text-main);
}

/* Dropdown panel */
.zoho-deal-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 200;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.zoho-dropdown-list {
    overflow-y: auto;
    flex: 1;
}

.zoho-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background-color 0.12s ease;
}

.zoho-dropdown-item:hover {
    background-color: rgba(88, 188, 165, 0.05);
}

.zoho-dropdown-item:last-child {
    border-bottom: none;
}

.zoho-dropdown-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.zoho-dropdown-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.zoho-dropdown-loading,
.zoho-dropdown-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ------------------------------------------------
   Toast (extends style.css .toast)
   ------------------------------------------------ */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1100px) {
    .trial-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }
}

@media (max-width: 860px) {
    /* Collapse sidebar */
    .sidebar {
        width: 64px;
        padding: 16px 8px;
        overflow: hidden;
    }

    .logo-text,
    .nav-item span,
    .sidebar-footer .env-info,
    .sidebar-footer .copyright {
        display: none;
    }

    .logo-area {
        justify-content: center;
        margin-bottom: 24px;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .nav-item i {
        margin: 0;
    }

    .main-content {
        padding: 24px 16px;
        gap: 20px;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    .modal-card,
    .modal-card-lg,
    .modal-card-wide {
        width: 95vw;
        max-height: 90vh;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .month-nav-label {
        font-size: 0.95rem;
        min-width: 90px;
    }

    .trial-legend {
        gap: 12px;
        padding: 10px 14px;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .calendar-device-label {
        min-width: 120px;
        padding: 8px 10px;
    }

    .device-label-icon {
        display: none;
    }
}

/* ------------------------------------------------
   Utility Animations
   ------------------------------------------------ */
@keyframes trialFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.trial-calendar-panel,
.trial-toolbar,
.trial-legend {
    animation: trialFadeIn 0.35s ease both;
}

.trial-toolbar { animation-delay: 0.05s; }
.trial-calendar-panel { animation-delay: 0.12s; }
.trial-legend { animation-delay: 0.18s; }
