.wk-wrap {
    max-width: 650px;
    margin: 0 auto;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

/* Onglets hauts */
.wk-tabs {
    display: flex;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 12px;
    gap: 4px;
}
.wk-t-btn {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
}
.wk-t-btn.active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Messages */
.wk-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.wk-msg.ok { background: #dcfce7; color: #166534; }
.wk-msg.warn { background: #fee2e2; color: #991b1b; }

/* Conteneurs blocs */
.wk-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}
.wk-box-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

/* Navigation dateur */
.wk-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.wk-day-nav { display: flex; align-items: center; gap: 6px; }
.wk-btn-nav {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
}
.wk-input-date {
    padding: 6px 10px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
.wk-btn-csv {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.wk-import-strip {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}
.wk-import-form { display: flex; align-items: center; gap: 6px; }

/* Traitements */
.wk-med-line {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}
.wk-med-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.wk-med-name { font-size: 14px; margin-bottom: 6px; }
.wk-prises-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wk-prise-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
}
.wk-prise-item.done {
    background: #dbeafe;
    border-color: #3b82f6;
    font-weight: 700;
}
.wk-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}
.wk-time {
    width: 75px;
    padding: 4px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: center;
}

/* Badges de statut des médicaments */
.wk-badge-ok {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}
.wk-badge-pause {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}
.wk-btn-pause {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.wk-btn-resume {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.wk-med-admin-card.paused {
    opacity: 0.75;
    background: #f8fafc;
}

/* Alimentation */
.wk-pills-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.wk-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.wk-pill.sel {
    background: #10b981;
    color: #fff;
    border-color: #059669;
}
.wk-pill input { display: none; }
.wk-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}
.wk-chip.sel {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    font-weight: 700;
}
.wk-chip input { display: none; }

/* Formulaires & boutons */
.wk-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.wk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wk-txt {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.wk-btn-save {
    background: #2563eb;
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
}
.wk-btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
.wk-btn-sm {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.wk-btn-del {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.wk-btn-edit {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

/* Vomissements & suppression ✕ */
.wk-vomi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wk-vomi-tag {
    background: #fee2e2;
    color: #b91c1c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
.wk-vomi-del-btn {
    background: none;
    border: none;
    color: #991b1b;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
    padding: 0 4px;
    line-height: 1;
    border-radius: 3px;
    vertical-align: middle;
}
.wk-vomi-del-btn:hover {
    background: #fca5a5;
    color: #450a0a;
}
.wk-vomi-quick-form { display: flex; gap: 6px; align-items: center; }

/* Tableaux & listes */
.wk-table-wrap { overflow-x: auto; }
.wk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wk-table th, .wk-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.wk-table th { background: #f8fafc; color: #475569; font-weight: 700; }
.wk-table tr.highlight { background: #eff6ff; }
.wk-link-btn {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
}
.wk-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.wk-muted { font-size: 12px; color: #94a3b8; }
.wk-med-admin-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.wk-veto-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}
.wk-doc-pill {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #bae6fd;
}
