/* WP NianZhu Claude \2014  Tableau annuel */
.wpnz-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #333;
    max-width: 100%;
}

/* \2500 \2500  Contr\F4 les \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500  */
.wpnz-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.wpnz-controls-left, .wpnz-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wpnz-nav-btn {
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}
.wpnz-nav-btn:hover { background: #2c5282; }

.wpnz-year-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

/* Segment type heure */
.wpnz-seg {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}
.wpnz-seg-btn {
    background: #f5f5f5;
    border: none;
    border-right: 1px solid #ccc;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}
.wpnz-seg-btn:last-child { border-right: none; }
.wpnz-seg-btn.active {
    background: #1e3a5f;
    color: #fff;
}
.wpnz-seg-btn:hover:not(.active) { background: #e8edf4; }

/* \2500 \2500  En-t\EA te ann\E9 e \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500  */
.wpnz-year-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.wpnz-year-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
}
.wpnz-year-meta {
    font-size: 12px;
    color: #555;
    text-align: right;
    line-height: 1.8;
}
.wpnz-year-meta span { white-space: nowrap; }

/* \2500 \2500  Grille 4 colonnes \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500  */
.wpnz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 900px) {
    .wpnz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .wpnz-grid { grid-template-columns: 1fr; }
}

/* \2500 \2500  Tableau mensuel \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500  */
.wpnz-month {
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    font-size: 12px;
}
.wpnz-month-header {
    background: #1e3a5f;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 4px 3px;
}
.wpnz-month-jieqi {
    background: #eef2f7;
    padding: 3px 6px;
    font-size: 11px;
    color: #444;
    min-height: 30px;
    line-height: 1.6;
}
.wpnz-month-jieqi .jq-item { white-space: nowrap; }
.wpnz-month-jieqi .jq-sun  { color: #c77a00; }
.wpnz-month-jieqi .jq-moon { color: #555; }

/* Colonnes du tableau */
.wpnz-month table {
    width: 100%;
    border-collapse: collapse;
}
.wpnz-month table th {
    background: #f0f3f8;
    text-align: center;
    padding: 3px 2px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ccc;
}
.wpnz-month table td {
    text-align: center;
    padding: 2px 2px;
    border-bottom: 1px solid #eee;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}
.wpnz-month table td.col-j {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    color: #666;
    width: 20px;
}
.wpnz-month table td.col-mark {
    width: 14px;
    font-size: 11px;
    padding: 2px 1px;
}
.wpnz-mark-jq   { color: #c77a00; }
.wpnz-mark-moon { color: #000; font-size: 13px; }
.wpnz-moon-icon { color: #000; font-style: normal; }

/* Lignes marqu\E9 es */
tr.has-jieqi td { background: #fffbf0; }
tr.has-lunar-start td { background: #f0f4fb; }

/* Loading */
.wpnz-loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}
.wpnz-error {
    color: #c00;
    padding: 10px;
    background: #fff0f0;
    border-radius: 4px;
}

/* \2500 \2500  Localisation / G\E9 ocodage \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500 \2500  */
.wpnz-location-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f8f9fa;
    border: 1px solid #e0e4ea;
    border-radius: 5px;
}
.wpnz-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    align-self: center;
    min-width: 80px;
}
.wpnz-geocode-wrap { position: relative; flex: 1; min-width: 160px; }
.wpnz-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 0 8px;
}
.wpnz-search-icon { color: #888; margin-right: 5px; font-size: 14px; }
.wpnz-city-search {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 0;
    font-size: 13px;
    background: transparent;
}
.wpnz-geocode-spinner { color: #888; font-size: 14px; }
.wpnz-suggestions {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 9999;
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}
.wpnz-suggestions li {
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}
.wpnz-suggestions li:hover, .wpnz-suggestions li.active { background: #eef2f7; }
.wpnz-sugg-name   { font-weight: 600; color: #222; }
.wpnz-sugg-detail { color: #666; font-size: 11px; }
.wpnz-sugg-coords { color: #999; font-size: 10px; font-family: monospace; }
.wpnz-selected-city {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #e8f0fe;
    border-radius: 4px;
    font-size: 12px;
}
.wpnz-clear-city {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1;
}
.wpnz-coords-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wpnz-coord-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}
.wpnz-coord-item em { color: #888; font-style: normal; font-size: 10px; }
.wpnz-coord-input {
    width: 80px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 5px;
    font-size: 11px;
    font-family: monospace;
}
.wpnz-tz-display {
    font-size: 11px;
    color: #444;
    font-family: monospace;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
