.jig-schedule-wrap {
    max-width: 1200px;
    margin: 0 auto 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jig-schedule-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.jig-schedule-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.jig-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.8rem;
    margin: 0 4px;
    color: #fff;
}

.jig-pill-work {
    background: #2f855a;
}
.jig-pill-weekend {
    background: #3182ce;
}
.jig-pill-leave {
    background: #d69e2e;
}
.jig-pill-work10 {
    background: #805ad5; /* purple, change if you like */
}
.jig-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.jig-month-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 16px;
}

.jig-month-header {
    margin-bottom: 8px;
}

.jig-month-header h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.jig-month-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #444;
}

.jig-month-summary span {
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 999px;
}

.jig-remaining {
    font-weight: 600;
}

.jig-remaining-pending {
    background-color: #fed7d7;
    color: #c53030;
}

.jig-remaining-complete {
    background-color: #c6f6d5;
    color: #2f855a;
}

/* Calendar table */

.jig-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.jig-calendar th,
.jig-calendar td {
    border: 1px solid #edf2f7;
    text-align: center;
    vertical-align: top;
    padding: 3px;
    height: 42px;
}

.jig-calendar th {
    font-size: 0.7rem;
    font-weight: 600;
    background-color: #f7fafc;
}

.jig-empty {
    background-color: #f9fafb;
}

.jig-weekend-col {
    color: #718096;
}

/* Day cell */

.jig-day {
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.jig-day-inner {
    position: relative;
    height: 100%;
}

.jig-day-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.jig-day-badge {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 1px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* Any work badge (4–10h) */
.jig-badge-work,
.jig-badge-work4,
.jig-badge-work5,
.jig-badge-work6,
.jig-badge-work7,
.jig-badge-work8,
.jig-badge-work9,
.jig-badge-work10 {
    background-color: #38a169 !important; /* green */
    color: #fff !important;
}

/* Leave (5.5h) */
.jig-badge-leave {
    background-color: #d69e2e; /* yellow/orange */
}

.jig-notes-dot {
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: 0.7rem;
    color: #805ad5;
}

.jig-day.jig-weekend {
    background-color: #f7fafc;
}

.jig-day:hover {
    background-color: #edf2f7;
    box-shadow: inset 0 0 0 1px #cbd5e0;
}

/* Modal */

.jig-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    z-index: 9998;
}

.jig-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.jig-modal-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px 14px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(15,23,42,0.25);
    position: relative;
}

.jig-modal-inner h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.jig-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

#jig-modal-form label {
    display: block;
    font-size: 0.8rem;
    margin-top: 6px;
    margin-bottom: 2px;
}

#jig-modal-form select,
#jig-modal-form textarea {
    width: 100%;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    box-sizing: border-box;
}

#jig-modal-form textarea {
    resize: vertical;
}

.jig-modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.jig-btn {
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.jig-btn-primary {
    background-color: #4a69bd;
    color: #ffffff;
}

.jig-btn-outline {
    background-color: #ffffff;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.jig-modal-status-message {
    font-size: 0.8rem;
    margin-top: 6px;
    color: #4a5568;
}
